Class EnumValuesMustMatchErrorBuilder
java.lang.Object
com.commercetools.api.models.error.EnumValuesMustMatchErrorBuilder
- All Implemented Interfaces:
Builder<EnumValuesMustMatchError>
public class EnumValuesMustMatchErrorBuilder
extends Object
implements Builder<EnumValuesMustMatchError>
EnumValuesMustMatchErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EnumValuesMustMatchError enumValuesMustMatchError = EnumValuesMustMatchError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds EnumValuesMustMatchError with checking for non-null required valuesbuilds EnumValuesMustMatchError without checking for non-null required values"The given values must be equal to the existing enum values."
Error-specific additional fields."The given values must be equal to the existing enum values."
of()
factory method for an instance of EnumValuesMustMatchErrorBuilderof
(EnumValuesMustMatchError template) create builder for EnumValuesMustMatchError instanceError-specific additional fields.
-
Constructor Details
-
EnumValuesMustMatchErrorBuilder
public EnumValuesMustMatchErrorBuilder()
-
-
Method Details
-
message
"The given values must be equal to the existing enum values."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getMessage
"The given values must be equal to the existing enum values."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds EnumValuesMustMatchError with checking for non-null required values- Specified by:
build
in interfaceBuilder<EnumValuesMustMatchError>
- Returns:
- EnumValuesMustMatchError
-
buildUnchecked
builds EnumValuesMustMatchError without checking for non-null required values- Returns:
- EnumValuesMustMatchError
-
of
factory method for an instance of EnumValuesMustMatchErrorBuilder- Returns:
- builder
-
of
create builder for EnumValuesMustMatchError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-