Interface DuplicateAttributeValuesError
- All Superinterfaces:
ErrorObject
The CombinationUnique AttributeConstraintEnum was violated.
Example to create an instance using the builder pattern
DuplicateAttributeValuesError duplicateAttributeValuesError = DuplicateAttributeValuesError.builder()
.message("{message}")
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DuplicateAttributeValuesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DuplicateAttributeValuesErrorbuilder(DuplicateAttributeValuesError template) create builder for DuplicateAttributeValuesError instancecopyDeep()deepCopy(DuplicateAttributeValuesError template) factory method to create a deep copy of DuplicateAttributeValuesErrorof()factory methodof(DuplicateAttributeValuesError template) factory method to create a shallow copy DuplicateAttributeValuesErrorvoidsetAttributes(Attribute... attributes) set attributesvoidsetAttributes(List<Attribute> attributes) set attributesstatic com.fasterxml.jackson.core.type.TypeReference<DuplicateAttributeValuesError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
DUPLICATE_ATTRIBUTE_VALUES
discriminator value for DuplicateAttributeValuesError- See Also:
-
-
Method Details
-
getAttributes
- Returns:
- attributes
-
setAttributes
set attributes- Parameters:
attributes- values to be set
-
setAttributes
set attributes- Parameters:
attributes- values to be set
-
of
factory method- Returns:
- instance of DuplicateAttributeValuesError
-
of
factory method to create a shallow copy DuplicateAttributeValuesError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DuplicateAttributeValuesError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static DuplicateAttributeValuesError deepCopy(@Nullable DuplicateAttributeValuesError template) factory method to create a deep copy of DuplicateAttributeValuesError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DuplicateAttributeValuesError- Returns:
- builder
-
builder
create builder for DuplicateAttributeValuesError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDuplicateAttributeValuesError
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
-