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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AttributeNameDoesNotExistError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AttributeNameDoesNotExistErrorbuilder(AttributeNameDoesNotExistError template) create builder for AttributeNameDoesNotExistError instancecopyDeep()deepCopy(AttributeNameDoesNotExistError template) factory method to create a deep copy of AttributeNameDoesNotExistError@NotNull StringgetCode()Error identifier.@NotNull StringNon-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 AttributeNameDoesNotExistErrorvoidsetInvalidAttributeName(String invalidAttributeName) Non-existent Attribute name.voidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"Attribute definition for $attributeName does not exist on type $typeName."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
getInvalidAttributeName
Non-existent Attribute name.
- Returns:
- invalidAttributeName
-
setMessage
"Attribute definition for $attributeName does not exist on type $typeName."- Specified by:
setMessagein 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
-
copyDeep
AttributeNameDoesNotExistError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-