Class GraphQLProductPresentWithDifferentVariantSelectionErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLProductPresentWithDifferentVariantSelectionErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLProductPresentWithDifferentVariantSelectionError
,io.vrap.rmf.base.client.ModelBase
public class GraphQLProductPresentWithDifferentVariantSelectionErrorImpl
extends Object
implements GraphQLProductPresentWithDifferentVariantSelectionError, io.vrap.rmf.base.client.ModelBase
Returned when a Product is already assigned to a Product Selection, but the Product Selection has either a different Product Variant Selection or a different Product Variant Exclusion.
The error is returned as a failed response either to the Add Product or to the Exclude Product update action.
-
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.GraphQLProductPresentWithDifferentVariantSelectionError
PRODUCT_PRESENT_WITH_DIFFERENT_VARIANT_SELECTION
-
Constructor Summary
ConstructorDescriptioncreate empty instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Existing Product Variant Selection or Exclusion for the Product in the Product Selection.Reference to the Product for which the error was returned.int
hashCode()
void
setExistingVariantSelection
(ProductVariantSelection existingVariantSelection) Existing Product Variant Selection or Exclusion for the Product in the Product Selection.void
setProduct
(ProductReference product) Reference to the Product for which the error was returned.void
Error-specific additional fields.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.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLProductPresentWithDifferentVariantSelectionError
withGraphQLProductPresentWithDifferentVariantSelectionError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLProductPresentWithDifferentVariantSelectionErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLProductPresentWithDifferentVariantSelectionError
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getProduct
Reference to the Product for which the error was returned.
- Specified by:
getProduct
in interfaceGraphQLProductPresentWithDifferentVariantSelectionError
- Returns:
- product
-
getExistingVariantSelection
Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Specified by:
getExistingVariantSelection
in interfaceGraphQLProductPresentWithDifferentVariantSelectionError
- Returns:
- existingVariantSelection
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setProduct
Description copied from interface:GraphQLProductPresentWithDifferentVariantSelectionError
Reference to the Product for which the error was returned.
- Specified by:
setProduct
in interfaceGraphQLProductPresentWithDifferentVariantSelectionError
- Parameters:
product
- value to be set
-
setExistingVariantSelection
Description copied from interface:GraphQLProductPresentWithDifferentVariantSelectionError
Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Specified by:
setExistingVariantSelection
in interfaceGraphQLProductPresentWithDifferentVariantSelectionError
- Parameters:
existingVariantSelection
- value to be set
-
equals
-
hashCode
-