Interface GraphQLDuplicateAttributeValueError
- All Superinterfaces:
GraphQLErrorObject
Returned when the Unique
AttributeConstraint criteria are not met during an Update Product request.
Example to create an instance using the builder pattern
GraphQLDuplicateAttributeValueError graphQLDuplicateAttributeValueError = GraphQLDuplicateAttributeValueError.builder()
.attribute(attributeBuilder -> attributeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLDuplicateAttributeValueError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLDuplicateAttributeValueErrorbuilder
(GraphQLDuplicateAttributeValueError template) create builder for GraphQLDuplicateAttributeValueError instancedeepCopy
(GraphQLDuplicateAttributeValueError template) factory method to create a deep copy of GraphQLDuplicateAttributeValueError@NotNull @Valid Attribute
Conflicting Attributes.@NotNull String
getCode()
Error identifier.of()
factory methodof
(GraphQLDuplicateAttributeValueError template) factory method to create a shallow copy GraphQLDuplicateAttributeValueErrorvoid
setAttribute
(Attribute attribute) Conflicting Attributes.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateAttributeValueError>
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
-
DUPLICATE_ATTRIBUTE_VALUE
discriminator value for GraphQLDuplicateAttributeValueError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getAttribute
Conflicting Attributes.
- Returns:
- attribute
-
setAttribute
Conflicting Attributes.
- Parameters:
attribute
- value to be set
-
of
factory method- Returns:
- instance of GraphQLDuplicateAttributeValueError
-
of
factory method to create a shallow copy GraphQLDuplicateAttributeValueError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLDuplicateAttributeValueError deepCopy(@Nullable GraphQLDuplicateAttributeValueError template) factory method to create a deep copy of GraphQLDuplicateAttributeValueError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLDuplicateAttributeValueError- Returns:
- builder
-
builder
static GraphQLDuplicateAttributeValueErrorBuilder builder(GraphQLDuplicateAttributeValueError template) create builder for GraphQLDuplicateAttributeValueError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLDuplicateAttributeValueError
default <T> T withGraphQLDuplicateAttributeValueError(Function<GraphQLDuplicateAttributeValueError, 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<GraphQLDuplicateAttributeValueError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-