Class ProductPresentWithDifferentVariantSelectionErrorImpl
- All Implemented Interfaces:
ErrorObject
,ProductPresentWithDifferentVariantSelectionError
,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.ProductPresentWithDifferentVariantSelectionError
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."Product is already present with the following different $variantSelections."
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
setMessage
(String message) "Product is already present with the following different $variantSelections."
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.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.error.ProductPresentWithDifferentVariantSelectionError
withProductPresentWithDifferentVariantSelectionError
-
Constructor Details
-
ProductPresentWithDifferentVariantSelectionErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceProductPresentWithDifferentVariantSelectionError
- Returns:
- code
-
getMessage
"Product is already present with the following different $variantSelections."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceProductPresentWithDifferentVariantSelectionError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getProduct
Reference to the Product for which the error was returned.
- Specified by:
getProduct
in interfaceProductPresentWithDifferentVariantSelectionError
- Returns:
- product
-
getExistingVariantSelection
Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Specified by:
getExistingVariantSelection
in interfaceProductPresentWithDifferentVariantSelectionError
- Returns:
- existingVariantSelection
-
setMessage
Description copied from interface:ProductPresentWithDifferentVariantSelectionError
"Product is already present with the following different $variantSelections."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceProductPresentWithDifferentVariantSelectionError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setProduct
Description copied from interface:ProductPresentWithDifferentVariantSelectionError
Reference to the Product for which the error was returned.
- Specified by:
setProduct
in interfaceProductPresentWithDifferentVariantSelectionError
- Parameters:
product
- value to be set
-
setExistingVariantSelection
Description copied from interface:ProductPresentWithDifferentVariantSelectionError
Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Specified by:
setExistingVariantSelection
in interfaceProductPresentWithDifferentVariantSelectionError
- Parameters:
existingVariantSelection
- value to be set
-
equals
-
hashCode
-