Interface GraphQLDuplicateVariantValuesError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Product Variant value conflicts with an existing one during an Update Product request.
Example to create an instance using the builder pattern
GraphQLDuplicateVariantValuesError graphQLDuplicateVariantValuesError = GraphQLDuplicateVariantValuesError.builder()
.variantValues(variantValuesBuilder -> variantValuesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLDuplicateVariantValuesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLDuplicateVariantValuesErrorbuilder
(GraphQLDuplicateVariantValuesError template) create builder for GraphQLDuplicateVariantValuesError instancedeepCopy
(GraphQLDuplicateVariantValuesError template) factory method to create a deep copy of GraphQLDuplicateVariantValuesError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull @Valid VariantValues
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.of()
factory methodof
(GraphQLDuplicateVariantValuesError template) factory method to create a shallow copy GraphQLDuplicateVariantValuesErrorvoid
setVariantValues
(VariantValues variantValues) Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateVariantValuesError>
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_VARIANT_VALUES
discriminator value for GraphQLDuplicateVariantValuesError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getVariantValues
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Returns:
- variantValues
-
setVariantValues
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Parameters:
variantValues
- value to be set
-
of
factory method- Returns:
- instance of GraphQLDuplicateVariantValuesError
-
of
factory method to create a shallow copy GraphQLDuplicateVariantValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLDuplicateVariantValuesError deepCopy(@Nullable GraphQLDuplicateVariantValuesError template) factory method to create a deep copy of GraphQLDuplicateVariantValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLDuplicateVariantValuesError- Returns:
- builder
-
builder
static GraphQLDuplicateVariantValuesErrorBuilder builder(GraphQLDuplicateVariantValuesError template) create builder for GraphQLDuplicateVariantValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLDuplicateVariantValuesError
default <T> T withGraphQLDuplicateVariantValuesError(Function<GraphQLDuplicateVariantValuesError, 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<GraphQLDuplicateVariantValuesError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-