Class ProductSelectionAddProductActionImpl
java.lang.Object
com.commercetools.api.models.product_selection.ProductSelectionAddProductActionImpl
- All Implemented Interfaces:
ProductSelectionAddProductAction
,ProductSelectionUpdateAction
,ResourceUpdateAction<ProductSelectionUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductSelectionAddProductActionImpl
extends Object
implements ProductSelectionAddProductAction, io.vrap.rmf.base.client.ModelBase
Adds a Product to the Product Selection.
If the specified Product is already assigned to the Product Selection, but the existing Product Selection has a different Product Variant Selection, a ProductPresentWithDifferentVariantSelection error is returned.
-
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.product_selection.ProductSelectionAddProductAction
ADD_PRODUCT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ResourceIdentifier of the ProductDefines which Variants of the Product will be included in the Product Selection.int
hashCode()
void
setProduct
(ProductResourceIdentifier product) ResourceIdentifier of the Productvoid
setVariantSelection
(ProductVariantSelection variantSelection) Defines which Variants of the Product will be included in the Product Selection.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionAddProductAction
withProductSelectionAddProductAction
Methods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
withProductSelectionUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSelectionAddProductActionImpl
public ProductSelectionAddProductActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductSelectionUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductSelectionUpdateAction>
- Returns:
- action
-
getProduct
ResourceIdentifier of the Product
- Specified by:
getProduct
in interfaceProductSelectionAddProductAction
- Returns:
- product
-
getVariantSelection
Defines which Variants of the Product will be included in the Product Selection. If not supplied all Variants are deemed to be included.
- Specified by:
getVariantSelection
in interfaceProductSelectionAddProductAction
- Returns:
- variantSelection
-
setProduct
Description copied from interface:ProductSelectionAddProductAction
ResourceIdentifier of the Product
- Specified by:
setProduct
in interfaceProductSelectionAddProductAction
- Parameters:
product
- value to be set
-
setVariantSelection
Description copied from interface:ProductSelectionAddProductAction
Defines which Variants of the Product will be included in the Product Selection. If not supplied all Variants are deemed to be included.
- Specified by:
setVariantSelection
in interfaceProductSelectionAddProductAction
- Parameters:
variantSelection
- value to be set
-
equals
-
hashCode
-