Class GraphQLDuplicateVariantValuesErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateVariantValuesErrorImpl
- All Implemented Interfaces:
GraphQLDuplicateVariantValuesError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLDuplicateVariantValuesErrorImpl
extends Object
implements GraphQLDuplicateVariantValuesError, io.vrap.rmf.base.client.ModelBase
Returned when a Product Variant value conflicts with an existing one during an Update Product request.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.GraphQLDuplicateVariantValuesError
DUPLICATE_VARIANT_VALUES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.int
hashCode()
void
Error-specific additional fields.void
setVariantValues
(VariantValues variantValues) Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.GraphQLDuplicateVariantValuesError
withGraphQLDuplicateVariantValuesError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLDuplicateVariantValuesErrorImpl
public GraphQLDuplicateVariantValuesErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLDuplicateVariantValuesError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getVariantValues
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Specified by:
getVariantValues
in interfaceGraphQLDuplicateVariantValuesError
- Returns:
- variantValues
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setVariantValues
Description copied from interface:GraphQLDuplicateVariantValuesError
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Specified by:
setVariantValues
in interfaceGraphQLDuplicateVariantValuesError
- Parameters:
variantValues
- value to be set
-
equals
-
hashCode
public int hashCode()
-