Interface AttributeNameDoesNotExistError
- All Superinterfaces:
ErrorObject
Returned when an AttributeDefinition does not exist for an Attribute name
.
The error is returned as a failed response to the Change AttributeDefinition Name update action.
Example to create an instance using the builder pattern
AttributeNameDoesNotExistError attributeNameDoesNotExistError = AttributeNameDoesNotExistError.builder()
.message("{message}")
.invalidAttributeName("{invalidAttributeName}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AttributeNameDoesNotExistError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AttributeNameDoesNotExistErrorbuilder
(AttributeNameDoesNotExistError template) create builder for AttributeNameDoesNotExistError instancedeepCopy
(AttributeNameDoesNotExistError template) factory method to create a deep copy of AttributeNameDoesNotExistError@NotNull String
getCode()
Error identifier.@NotNull String
Non-existent Attribute name.@NotNull String
"Attribute definition for $attributeName does not exist on type $typeName."
of()
factory methodof
(AttributeNameDoesNotExistError template) factory method to create a shallow copy AttributeNameDoesNotExistErrorvoid
setInvalidAttributeName
(String invalidAttributeName) Non-existent Attribute name.void
setMessage
(String message) "Attribute definition for $attributeName does not exist on type $typeName."
static com.fasterxml.jackson.core.type.TypeReference<AttributeNameDoesNotExistError>
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
-
ATTRIBUTE_NAME_DOES_NOT_EXIST
discriminator value for AttributeNameDoesNotExistError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Attribute definition for $attributeName does not exist on type $typeName."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getInvalidAttributeName
Non-existent Attribute name.
- Returns:
- invalidAttributeName
-
setMessage
"Attribute definition for $attributeName does not exist on type $typeName."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setInvalidAttributeName
Non-existent Attribute name.
- Parameters:
invalidAttributeName
- value to be set
-
of
factory method- Returns:
- instance of AttributeNameDoesNotExistError
-
of
factory method to create a shallow copy AttributeNameDoesNotExistError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AttributeNameDoesNotExistError deepCopy(@Nullable AttributeNameDoesNotExistError template) factory method to create a deep copy of AttributeNameDoesNotExistError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeNameDoesNotExistError- Returns:
- builder
-
builder
create builder for AttributeNameDoesNotExistError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeNameDoesNotExistError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<AttributeNameDoesNotExistError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-