Interface DuplicateVariantValuesError
- All Superinterfaces:
ErrorObject
The given combination of values of a Product Variant conflicts with an existing one. Every Product Variant must have a distinct combination of SKU, prices, and custom attribute values.
Example to create an instance using the builder pattern
DuplicateVariantValuesError duplicateVariantValuesError = DuplicateVariantValuesError.builder()
.message("{message}")
.variantValues(variantValuesBuilder -> variantValuesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DuplicateVariantValuesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DuplicateVariantValuesErrorbuilder
(DuplicateVariantValuesError template) create builder for DuplicateVariantValuesError instancestatic DuplicateVariantValuesError
deepCopy
(DuplicateVariantValuesError template) factory method to create a deep copy of DuplicateVariantValuesError@NotNull @Valid VariantValues
The offending variant values.static DuplicateVariantValuesError
of()
factory methodstatic DuplicateVariantValuesError
of
(DuplicateVariantValuesError template) factory method to create a shallow copy DuplicateVariantValuesErrorvoid
setVariantValues
(VariantValues variantValues) The offending variant values.static com.fasterxml.jackson.core.type.TypeReference<DuplicateVariantValuesError>
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_VARIANT_VALUES
discriminator value for DuplicateVariantValuesError- See Also:
-
-
Method Details
-
getVariantValues
The offending variant values.
- Returns:
- variantValues
-
setVariantValues
The offending variant values.
- Parameters:
variantValues
- value to be set
-
of
factory method- Returns:
- instance of DuplicateVariantValuesError
-
of
factory method to create a shallow copy DuplicateVariantValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DuplicateVariantValuesError deepCopy(@Nullable DuplicateVariantValuesError template) factory method to create a deep copy of DuplicateVariantValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DuplicateVariantValuesError- Returns:
- builder
-
builder
create builder for DuplicateVariantValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDuplicateVariantValuesError
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
-