Class ProductSelectionAssignmentBuilder
- All Implemented Interfaces:
Builder<ProductSelectionAssignment>
Example to create an instance using the builder pattern
ProductSelectionAssignment productSelectionAssignment = ProductSelectionAssignment.builder()
.product(productBuilder -> productBuilder)
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionAssignment with checking for non-null required valuesbuilds ProductSelectionAssignment without checking for non-null required valuesReference 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.of()
factory method for an instance of ProductSelectionAssignmentBuilderof
(ProductSelectionAssignment template) create builder for ProductSelectionAssignment instanceproduct
(ProductReference product) Reference to a Product that is assigned to the ProductSelection.Reference to a Product that is assigned to the ProductSelection.productSelection
(ProductSelectionReference productSelection) Reference to the Product Selection that this assignment is part of.productSelection
(Function<ProductSelectionReferenceBuilder, ProductSelectionReferenceBuilder> builder) Reference to the Product Selection that this assignment is part of.variantExclusion
(ProductVariantExclusion variantExclusion) Defines which Variants of the Product will be excluded from the Product Selection.Defines which Variants of the Product will be excluded from the Product Selection.variantSelection
(ProductVariantSelection variantSelection) Define which Variants of the added Product will be included in the Product Selection.variantSelection
(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) Define which Variants of the added Product will be included in the Product Selection.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.
-
Constructor Details
-
ProductSelectionAssignmentBuilder
public ProductSelectionAssignmentBuilder()
-
-
Method Details
-
product
public ProductSelectionAssignmentBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to a Product that is assigned to the ProductSelection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionAssignmentBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to a Product that is assigned to the ProductSelection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to a Product that is assigned to the ProductSelection.
- Parameters:
product
- value to be set- Returns:
- Builder
-
productSelection
public ProductSelectionAssignmentBuilder productSelection(Function<ProductSelectionReferenceBuilder, ProductSelectionReferenceBuilder> builder) Reference to the Product Selection that this assignment is part of.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public ProductSelectionAssignmentBuilder withProductSelection(Function<ProductSelectionReferenceBuilder, ProductSelectionReference> builder) Reference to the Product Selection that this assignment is part of.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
productSelection
public ProductSelectionAssignmentBuilder productSelection(ProductSelectionReference productSelection) Reference to the Product Selection that this assignment is part of.
- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
variantSelection
public ProductSelectionAssignmentBuilder variantSelection(@Nullable ProductVariantSelection variantSelection) 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- Returns:
- Builder
-
variantSelection
public ProductSelectionAssignmentBuilder variantSelection(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) 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:
builder
- function to build the variantSelection value- Returns:
- Builder
-
variantExclusion
public ProductSelectionAssignmentBuilder variantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) 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:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public ProductSelectionAssignmentBuilder withVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) 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:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
public ProductSelectionAssignmentBuilder variantExclusion(@Nullable ProductVariantExclusion variantExclusion) 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- Returns:
- Builder
-
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
-
build
builds ProductSelectionAssignment with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionAssignment>
- Returns:
- ProductSelectionAssignment
-
buildUnchecked
builds ProductSelectionAssignment without checking for non-null required values- Returns:
- ProductSelectionAssignment
-
of
factory method for an instance of ProductSelectionAssignmentBuilder- Returns:
- builder
-
of
create builder for ProductSelectionAssignment instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-