Interface EnumValuesMustMatchError
- All Superinterfaces:
ErrorObject
Returned when during an order update of AttributeEnumType or AttributeLocalizedEnumType the new enum values do not match the existing ones.
The error is returned as a failed response to the Change the order of EnumValues and Change the order of LocalizedEnumValues update actions.
Example to create an instance using the builder pattern
EnumValuesMustMatchError enumValuesMustMatchError = EnumValuesMustMatchError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for EnumValuesMustMatchError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for EnumValuesMustMatchErrorbuilder
(EnumValuesMustMatchError template) create builder for EnumValuesMustMatchError instancestatic EnumValuesMustMatchError
deepCopy
(EnumValuesMustMatchError template) factory method to create a deep copy of EnumValuesMustMatchError@NotNull String
getCode()
Error identifier.@NotNull String
"The given values must be equal to the existing enum values."
static EnumValuesMustMatchError
of()
factory methodstatic EnumValuesMustMatchError
of
(EnumValuesMustMatchError template) factory method to create a shallow copy EnumValuesMustMatchErrorvoid
setMessage
(String message) "The given values must be equal to the existing enum values."
static com.fasterxml.jackson.core.type.TypeReference<EnumValuesMustMatchError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
ENUM_VALUES_MUST_MATCH
discriminator value for EnumValuesMustMatchError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The given values must be equal to the existing enum values."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"The given values must be equal to the existing enum values."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of EnumValuesMustMatchError
-
of
factory method to create a shallow copy EnumValuesMustMatchError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of EnumValuesMustMatchError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EnumValuesMustMatchError- Returns:
- builder
-
builder
create builder for EnumValuesMustMatchError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withEnumValuesMustMatchError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-