Interface EnumKeyAlreadyExistsError
- All Superinterfaces:
ErrorObject
Returned when an AttributeEnumType or AttributeLocalizedEnumType contains a key that already exists.
Example to create an instance using the builder pattern
EnumKeyAlreadyExistsError enumKeyAlreadyExistsError = EnumKeyAlreadyExistsError.builder()
.message("{message}")
.conflictingEnumKey("{conflictingEnumKey}")
.conflictingAttributeName("{conflictingAttributeName}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for EnumKeyAlreadyExistsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for EnumKeyAlreadyExistsErrorbuilder(EnumKeyAlreadyExistsError template) create builder for EnumKeyAlreadyExistsError instancecopyDeep()static EnumKeyAlreadyExistsErrordeepCopy(EnumKeyAlreadyExistsError template) factory method to create a deep copy of EnumKeyAlreadyExistsError@NotNull StringgetCode()Error identifier.@NotNull StringName of the conflicting Attribute.@NotNull StringConflicting enum key.@NotNull String"The $attributeName attribute definition already contains an enum value with the key $enumKey."static EnumKeyAlreadyExistsErrorof()factory methodstatic EnumKeyAlreadyExistsErrorof(EnumKeyAlreadyExistsError template) factory method to create a shallow copy EnumKeyAlreadyExistsErrorvoidsetConflictingAttributeName(String conflictingAttributeName) Name of the conflicting Attribute.voidsetConflictingEnumKey(String conflictingEnumKey) Conflicting enum key.voidsetMessage(String message) "The $attributeName attribute definition already contains an enum value with the key $enumKey."static com.fasterxml.jackson.core.type.TypeReference<EnumKeyAlreadyExistsError>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_KEY_ALREADY_EXISTS
discriminator value for EnumKeyAlreadyExistsError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"The $attributeName attribute definition already contains an enum value with the key $enumKey."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
getConflictingEnumKey
Conflicting enum key.
- Returns:
- conflictingEnumKey
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Returns:
- conflictingAttributeName
-
setMessage
"The $attributeName attribute definition already contains an enum value with the key $enumKey."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
setConflictingEnumKey
Conflicting enum key.
- Parameters:
conflictingEnumKey- value to be set
-
setConflictingAttributeName
Name of the conflicting Attribute.
- Parameters:
conflictingAttributeName- value to be set
-
of
factory method- Returns:
- instance of EnumKeyAlreadyExistsError
-
of
factory method to create a shallow copy EnumKeyAlreadyExistsError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
EnumKeyAlreadyExistsError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of EnumKeyAlreadyExistsError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EnumKeyAlreadyExistsError- Returns:
- builder
-
builder
create builder for EnumKeyAlreadyExistsError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withEnumKeyAlreadyExistsError
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
-