Class ProductSelectionExcludeProductActionImpl
java.lang.Object
com.commercetools.api.models.product_selection.ProductSelectionExcludeProductActionImpl
- All Implemented Interfaces:
ProductSelectionExcludeProductAction
,ProductSelectionUpdateAction
,ResourceUpdateAction<ProductSelectionUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductSelectionExcludeProductActionImpl
extends Object
implements ProductSelectionExcludeProductAction, io.vrap.rmf.base.client.ModelBase
Excludes a Product from a Product Selection with IndividualExclusion
ProductSelectionMode.
If the specified Product is already assigned to the Product Selection, but the existing Product Selection has a different Product Variant Exclusion, 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.ProductSelectionExcludeProductAction
EXCLUDE_PRODUCT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ResourceIdentifier of the ProductDefines which Variants of the Product will be excluded from the Product Selection.int
hashCode()
void
setProduct
(ProductResourceIdentifier product) ResourceIdentifier of the Productvoid
setVariantExclusion
(ProductVariantExclusion variantExclusion) Defines which Variants of the Product will be excluded from 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.ProductSelectionExcludeProductAction
withProductSelectionExcludeProductAction
Methods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
withProductSelectionUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSelectionExcludeProductActionImpl
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 interfaceProductSelectionExcludeProductAction
- Returns:
- product
-
getVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
- Specified by:
getVariantExclusion
in interfaceProductSelectionExcludeProductAction
- Returns:
- variantExclusion
-
setProduct
Description copied from interface:ProductSelectionExcludeProductAction
ResourceIdentifier of the Product
- Specified by:
setProduct
in interfaceProductSelectionExcludeProductAction
- Parameters:
product
- value to be set
-
setVariantExclusion
Description copied from interface:ProductSelectionExcludeProductAction
Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
- Specified by:
setVariantExclusion
in interfaceProductSelectionExcludeProductAction
- Parameters:
variantExclusion
- value to be set
-
equals
-
hashCode
-