Class ProductAssignmentMissingErrorImpl
- All Implemented Interfaces:
ErrorObject
,ProductAssignmentMissingError
,io.vrap.rmf.base.client.ModelBase
Returned when a Product is not assigned to the Product Selection. The error is returned as a failed response either to the Set Variant Selection or to the Set Variant Exclusion 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.ProductAssignmentMissingError
PRODUCT_ASSIGNMENT_MISSING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.For Product Selection of mode Individual, the message is:"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
Reference to the Product for which the error was returned.int
hashCode()
void
setMessage
(String message) For Product Selection of mode Individual, the message is:"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
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.ProductAssignmentMissingError
withProductAssignmentMissingError
-
Constructor Details
-
ProductAssignmentMissingErrorImpl
public ProductAssignmentMissingErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceProductAssignmentMissingError
- Returns:
- code
-
getMessage
For Product Selection of mode Individual, the message is:
"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceProductAssignmentMissingError
- 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 interfaceProductAssignmentMissingError
- Returns:
- product
-
setMessage
Description copied from interface:ProductAssignmentMissingError
For Product Selection of mode Individual, the message is:
"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceProductAssignmentMissingError
- 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:ProductAssignmentMissingError
Reference to the Product for which the error was returned.
- Specified by:
setProduct
in interfaceProductAssignmentMissingError
- Parameters:
product
- value to be set
-
equals
-
hashCode
-