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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLDuplicateVariantValuesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLDuplicateVariantValuesErrorbuilder(GraphQLDuplicateVariantValuesError template) create builder for GraphQLDuplicateVariantValuesError instancecopyDeep()deepCopy(GraphQLDuplicateVariantValuesError template) factory method to create a deep copy of GraphQLDuplicateVariantValuesError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull @Valid VariantValuesEvery 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 GraphQLDuplicateVariantValuesErrorvoidsetVariantValues(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> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLDuplicateVariantValuesError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-