Interface ProductSelectionAssignment
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.
Example to create an instance using the builder pattern
ProductSelectionAssignment productSelectionAssignment = ProductSelectionAssignment.builder()
.product(productBuilder -> productBuilder)
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionAssignmentbuilder
(ProductSelectionAssignment template) create builder for ProductSelectionAssignment instancestatic ProductSelectionAssignment
deepCopy
(ProductSelectionAssignment template) factory method to create a deep copy of ProductSelectionAssignment@NotNull @Valid ProductReference
Reference to a Product that is assigned to the ProductSelection.@NotNull @Valid ProductSelectionReference
Reference to the Product Selection that this assignment is part of.@Valid ProductVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection.@Valid ProductVariantSelection
Define which Variants of the added Product will be included in the Product Selection.static ProductSelectionAssignment
of()
factory methodstatic ProductSelectionAssignment
of
(ProductSelectionAssignment template) factory method to create a shallow copy ProductSelectionAssignmentvoid
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.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionAssignment>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getProduct
Reference to a Product that is assigned to the ProductSelection.
- Returns:
- product
-
getProductSelection
Reference to the Product Selection that this assignment is part of.
- 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.- 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.- Returns:
- variantExclusion
-
setProduct
Reference to a Product that is assigned to the ProductSelection.
- Parameters:
product
- value to be set
-
setProductSelection
Reference to the Product Selection that this assignment is part of.
- Parameters:
productSelection
- value to be set
-
setVariantSelection
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.- Parameters:
variantSelection
- value to be set
-
setVariantExclusion
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.- Parameters:
variantExclusion
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionAssignment
-
of
factory method to create a shallow copy ProductSelectionAssignment- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSelectionAssignment- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionAssignment- Returns:
- builder
-
builder
create builder for ProductSelectionAssignment instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionAssignment
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-