Class ProductSelectionAssignmentImpl
- All Implemented Interfaces:
ProductSelectionAssignment
,io.vrap.rmf.base.client.ModelBase
Given the mode of Product Selection, this assignment refers to, it may contain:
variantSelection
field for a Product Selection withIndividual
ProductSelectionMode.variantExclusion
field for a Product Selection withIndividualExclusion
ProductSelectionMode.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Reference to a Product that is assigned to the ProductSelection.Reference to the Product Selection that this assignment is part of.Defines which Variants of the Product will be excluded from the Product Selection.Define which Variants of the added Product will be included in the Product Selection.int
hashCode()
void
setProduct
(ProductReference product) Reference to a Product that is assigned to the ProductSelection.void
setProductSelection
(ProductSelectionReference productSelection) Reference to the Product Selection that this assignment is part of.void
setVariantExclusion
(ProductVariantExclusion variantExclusion) Defines which Variants of the Product will be excluded from the Product Selection.void
setVariantSelection
(ProductVariantSelection variantSelection) Define which Variants of the added 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.ProductSelectionAssignment
withProductSelectionAssignment
-
Constructor Details
-
ProductSelectionAssignmentImpl
public ProductSelectionAssignmentImpl()create empty instance
-
-
Method Details
-
getProduct
Reference to a Product that is assigned to the ProductSelection.
- Specified by:
getProduct
in interfaceProductSelectionAssignment
- Returns:
- product
-
getProductSelection
Reference to the Product Selection that this assignment is part of.
- Specified by:
getProductSelection
in interfaceProductSelectionAssignment
- Returns:
- productSelection
-
getVariantSelection
Define which Variants of the added Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode. The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.- Specified by:
getVariantSelection
in interfaceProductSelectionAssignment
- Returns:
- variantSelection
-
getVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection.
This field is only available for assignments to a Product Selection with
IndividualExclusion
ProductSelectionMode. The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.- Specified by:
getVariantExclusion
in interfaceProductSelectionAssignment
- Returns:
- variantExclusion
-
setProduct
Description copied from interface:ProductSelectionAssignment
Reference to a Product that is assigned to the ProductSelection.
- Specified by:
setProduct
in interfaceProductSelectionAssignment
- Parameters:
product
- value to be set
-
setProductSelection
Description copied from interface:ProductSelectionAssignment
Reference to the Product Selection that this assignment is part of.
- Specified by:
setProductSelection
in interfaceProductSelectionAssignment
- Parameters:
productSelection
- value to be set
-
setVariantSelection
Description copied from interface:ProductSelectionAssignment
Define which Variants of the added Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode. The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.- Specified by:
setVariantSelection
in interfaceProductSelectionAssignment
- Parameters:
variantSelection
- value to be set
-
setVariantExclusion
Description copied from interface:ProductSelectionAssignment
Defines which Variants of the Product will be excluded from the Product Selection.
This field is only available for assignments to a Product Selection with
IndividualExclusion
ProductSelectionMode. The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.- Specified by:
setVariantExclusion
in interfaceProductSelectionAssignment
- Parameters:
variantExclusion
- value to be set
-
equals
-
hashCode
public int hashCode()
-