Class ProductSelectionSetVariantSelectionActionImpl
- All Implemented Interfaces:
ProductSelectionSetVariantSelectionAction
,ProductSelectionUpdateAction
,ResourceUpdateAction<ProductSelectionUpdateAction>
,io.vrap.rmf.base.client.ModelBase
Updates the Product Variant Selection of an existing Product Selection Assignment. A ProductVariantSelection can only be set if the Product has already been included in the Product Selection with Individual
ProductSelectionMode.
If the specified Product is not assigned to the Product Selection, a ProductAssignmentMissing 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.ProductSelectionSetVariantSelectionAction
SET_VARIANT_SELECTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ResourceIdentifier of the ProductDetermines which Variants of the previously added Product are to be included in, or excluded from, the Product Selection.int
hashCode()
void
setProduct
(ProductResourceIdentifier product) ResourceIdentifier of the Productvoid
setVariantSelection
(ProductVariantSelection variantSelection) Determines which Variants of the previously added Product are to be included in, or 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.ProductSelectionSetVariantSelectionAction
withProductSelectionSetVariantSelectionAction
Methods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
withProductSelectionUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSelectionSetVariantSelectionActionImpl
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 interfaceProductSelectionSetVariantSelectionAction
- Returns:
- product
-
getVariantSelection
Determines which Variants of the previously added Product are to be included in, or excluded from, the Product Selection. Leave it empty to unset an existing Variant Selection.
- Specified by:
getVariantSelection
in interfaceProductSelectionSetVariantSelectionAction
- Returns:
- variantSelection
-
setProduct
Description copied from interface:ProductSelectionSetVariantSelectionAction
ResourceIdentifier of the Product
- Specified by:
setProduct
in interfaceProductSelectionSetVariantSelectionAction
- Parameters:
product
- value to be set
-
setVariantSelection
Description copied from interface:ProductSelectionSetVariantSelectionAction
Determines which Variants of the previously added Product are to be included in, or excluded from, the Product Selection. Leave it empty to unset an existing Variant Selection.
- Specified by:
setVariantSelection
in interfaceProductSelectionSetVariantSelectionAction
- Parameters:
variantSelection
- value to be set
-
equals
-
hashCode
-