Interface GraphQLDuplicateAttributeValuesError
- All Superinterfaces:
GraphQLErrorObject
Returned when the CombinationUnique
AttributeConstraint criteria are not met during an Update Product request.
Example to create an instance using the builder pattern
GraphQLDuplicateAttributeValuesError graphQLDuplicateAttributeValuesError = GraphQLDuplicateAttributeValuesError.builder()
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLDuplicateAttributeValuesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLDuplicateAttributeValuesErrorbuilder
(GraphQLDuplicateAttributeValuesError template) create builder for GraphQLDuplicateAttributeValuesError instancedeepCopy
(GraphQLDuplicateAttributeValuesError template) factory method to create a deep copy of GraphQLDuplicateAttributeValuesErrorConflicting Attributes.@NotNull String
getCode()
Error identifier.of()
factory methodof
(GraphQLDuplicateAttributeValuesError template) factory method to create a shallow copy GraphQLDuplicateAttributeValuesErrorvoid
setAttributes
(Attribute... attributes) Conflicting Attributes.void
setAttributes
(List<Attribute> attributes) Conflicting Attributes.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateAttributeValuesError>
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_VALUES
discriminator value for GraphQLDuplicateAttributeValuesError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getAttributes
Conflicting Attributes.
- Returns:
- attributes
-
setAttributes
Conflicting Attributes.
- Parameters:
attributes
- values to be set
-
setAttributes
Conflicting Attributes.
- Parameters:
attributes
- values to be set
-
of
factory method- Returns:
- instance of GraphQLDuplicateAttributeValuesError
-
of
factory method to create a shallow copy GraphQLDuplicateAttributeValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLDuplicateAttributeValuesError deepCopy(@Nullable GraphQLDuplicateAttributeValuesError template) factory method to create a deep copy of GraphQLDuplicateAttributeValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLDuplicateAttributeValuesError- Returns:
- builder
-
builder
static GraphQLDuplicateAttributeValuesErrorBuilder builder(GraphQLDuplicateAttributeValuesError template) create builder for GraphQLDuplicateAttributeValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLDuplicateAttributeValuesError
default <T> T withGraphQLDuplicateAttributeValuesError(Function<GraphQLDuplicateAttributeValuesError, 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<GraphQLDuplicateAttributeValuesError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-