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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLDuplicateAttributeValueError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLDuplicateAttributeValueErrorbuilder(GraphQLDuplicateAttributeValueError template) create builder for GraphQLDuplicateAttributeValueError instancecopyDeep()deepCopy(GraphQLDuplicateAttributeValueError template) factory method to create a deep copy of GraphQLDuplicateAttributeValueError@NotNull @Valid AttributeConflicting Attributes.@NotNull StringgetCode()One of the error codes that is listed on the Errors page.of()factory methodof(GraphQLDuplicateAttributeValueError template) factory method to create a shallow copy GraphQLDuplicateAttributeValueErrorvoidsetAttribute(Attribute attribute) Conflicting Attributes.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateAttributeValueError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLDuplicateAttributeValueError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-