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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for EnumValuesMustMatchError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for EnumValuesMustMatchErrorbuilder(EnumValuesMustMatchError template) create builder for EnumValuesMustMatchError instancecopyDeep()static EnumValuesMustMatchErrordeepCopy(EnumValuesMustMatchError template) factory method to create a deep copy of EnumValuesMustMatchError@NotNull StringgetCode()Error identifier.@NotNull String"The given values must be equal to the existing enum values."static EnumValuesMustMatchErrorof()factory methodstatic EnumValuesMustMatchErrorof(EnumValuesMustMatchError template) factory method to create a shallow copy EnumValuesMustMatchErrorvoidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"The given values must be equal to the existing enum values."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"The given values must be equal to the existing enum values."- Specified by:
setMessagein 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
-
copyDeep
EnumValuesMustMatchError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-