Interface DuplicateAttributeValueError
- All Superinterfaces:
ErrorObject
The Unique
AttributeConstraintEnum was violated.
Example to create an instance using the builder pattern
DuplicateAttributeValueError duplicateAttributeValueError = DuplicateAttributeValueError.builder()
.message("{message}")
.attribute(attributeBuilder -> attributeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DuplicateAttributeValueError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DuplicateAttributeValueErrorbuilder
(DuplicateAttributeValueError template) create builder for DuplicateAttributeValueError instancestatic DuplicateAttributeValueError
deepCopy
(DuplicateAttributeValueError template) factory method to create a deep copy of DuplicateAttributeValueError@NotNull @Valid Attribute
The attribute in conflict.static DuplicateAttributeValueError
of()
factory methodstatic DuplicateAttributeValueError
of
(DuplicateAttributeValueError template) factory method to create a shallow copy DuplicateAttributeValueErrorvoid
setAttribute
(Attribute attribute) The attribute in conflict.static com.fasterxml.jackson.core.type.TypeReference<DuplicateAttributeValueError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
DUPLICATE_ATTRIBUTE_VALUE
discriminator value for DuplicateAttributeValueError- See Also:
-
-
Method Details
-
getAttribute
The attribute in conflict.
- Returns:
- attribute
-
setAttribute
The attribute in conflict.
- Parameters:
attribute
- value to be set
-
of
factory method- Returns:
- instance of DuplicateAttributeValueError
-
of
factory method to create a shallow copy DuplicateAttributeValueError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DuplicateAttributeValueError deepCopy(@Nullable DuplicateAttributeValueError template) factory method to create a deep copy of DuplicateAttributeValueError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DuplicateAttributeValueError- Returns:
- builder
-
builder
create builder for DuplicateAttributeValueError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDuplicateAttributeValueError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-