Interface ProductSelectionAssignment
Given the mode of Product Selection, this assignment refers to, it may contain:
variantSelectionfield for a Product Selection withIndividualProductSelectionMode.variantExclusionfield for a Product Selection withIndividualExclusionProductSelectionMode.
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 instancecopyDeep()static ProductSelectionAssignmentdeepCopy(ProductSelectionAssignment template) factory method to create a deep copy of ProductSelectionAssignment@NotNull @Valid ProductReferenceReference to a Product that is assigned to the ProductSelection.@NotNull @Valid ProductSelectionReferenceReference to the Product Selection that this assignment is part of.@Valid ProductVariantExclusionDefines which particular Variants of the Product are excluded from the Product Selection.@Valid ProductVariantSelectionDefines which particular Variants of the Product are included in the Product Selection.static ProductSelectionAssignmentof()factory methodstatic ProductSelectionAssignmentof(ProductSelectionAssignment template) factory method to create a shallow copy ProductSelectionAssignmentvoidsetProduct(ProductReference product) Reference to a Product that is assigned to the ProductSelection.voidsetProductSelection(ProductSelectionReference productSelection) Reference to the Product Selection that this assignment is part of.voidsetVariantExclusion(ProductVariantExclusion variantExclusion) Defines which particular Variants of the Product are excluded from the Product Selection.voidsetVariantSelection(ProductVariantSelection variantSelection) Defines which particular Variants of the Product are included in the Product Selection.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionAssignment>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
Defines which particular Variants of the Product are included in the Product Selection. If undefined all Variants of the referenced Product are included.
This field is only available for assignments to a Product Selection with
IndividualProductSelectionMode. The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.- Returns:
- variantSelection
-
getVariantExclusion
Defines which particular Variants of the Product are excluded from the Product Selection. If undefined all Variants of the referenced Product are excluded.
This field is only available for assignments to a Product Selection with
IndividualExclusionProductSelectionMode. 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
Defines which particular Variants of the Product are included in the Product Selection. If undefined all Variants of the referenced Product are included.
This field is only available for assignments to a Product Selection with
IndividualProductSelectionMode. 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 particular Variants of the Product are excluded from the Product Selection. If undefined all Variants of the referenced Product are excluded.
This field is only available for assignments to a Product Selection with
IndividualExclusionProductSelectionMode. 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
-
copyDeep
ProductSelectionAssignment copyDeep() -
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
-