Interface GraphQLAttributeNameDoesNotExistError
- All Superinterfaces:
GraphQLErrorObject
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
GraphQLAttributeNameDoesNotExistError graphQLAttributeNameDoesNotExistError = GraphQLAttributeNameDoesNotExistError.builder()
.invalidAttributeName("{invalidAttributeName}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLAttributeNameDoesNotExistError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLAttributeNameDoesNotExistErrorbuilder
(GraphQLAttributeNameDoesNotExistError template) create builder for GraphQLAttributeNameDoesNotExistError instancefactory method to create a deep copy of GraphQLAttributeNameDoesNotExistError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull String
Non-existent Attribute name.of()
factory methodof
(GraphQLAttributeNameDoesNotExistError template) factory method to create a shallow copy GraphQLAttributeNameDoesNotExistErrorvoid
setInvalidAttributeName
(String invalidAttributeName) Non-existent Attribute name.static com.fasterxml.jackson.core.type.TypeReference<GraphQLAttributeNameDoesNotExistError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
ATTRIBUTE_NAME_DOES_NOT_EXIST
discriminator value for GraphQLAttributeNameDoesNotExistError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getInvalidAttributeName
Non-existent Attribute name.
- Returns:
- invalidAttributeName
-
setInvalidAttributeName
Non-existent Attribute name.
- Parameters:
invalidAttributeName
- value to be set
-
of
factory method- Returns:
- instance of GraphQLAttributeNameDoesNotExistError
-
of
factory method to create a shallow copy GraphQLAttributeNameDoesNotExistError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLAttributeNameDoesNotExistError deepCopy(@Nullable GraphQLAttributeNameDoesNotExistError template) factory method to create a deep copy of GraphQLAttributeNameDoesNotExistError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAttributeNameDoesNotExistError- Returns:
- builder
-
builder
static GraphQLAttributeNameDoesNotExistErrorBuilder builder(GraphQLAttributeNameDoesNotExistError template) create builder for GraphQLAttributeNameDoesNotExistError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAttributeNameDoesNotExistError
default <T> T withGraphQLAttributeNameDoesNotExistError(Function<GraphQLAttributeNameDoesNotExistError, T> helper) 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<GraphQLAttributeNameDoesNotExistError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-