Class AssignedProductSelectionBuilder
- All Implemented Interfaces:
Builder<AssignedProductSelection>
Example to create an instance using the builder pattern
AssignedProductSelection assignedProductSelection = AssignedProductSelection.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssignedProductSelection with checking for non-null required valuesbuilds AssignedProductSelection without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) this assignment was initially created.Date and time (UTC) this assignment was initially created.Reference to the Product Selection that this assignment is part of.Defines which Variants of the Product will be excluded from the Product Selection.Defines which Variants of the Product will be included in the Product Selection.of()
factory method for an instance of AssignedProductSelectionBuilderof
(AssignedProductSelection template) create builder for AssignedProductSelection instanceproductSelection
(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) Defines which Variants of the Product will be included in the Product Selection.variantSelection
(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) Defines which Variants of the Product will be included in the Product Selection.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
-
AssignedProductSelectionBuilder
public AssignedProductSelectionBuilder()
-
-
Method Details
-
productSelection
public AssignedProductSelectionBuilder 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 AssignedProductSelectionBuilder 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
Reference to the Product Selection that this assignment is part of.
- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
variantSelection
public AssignedProductSelectionBuilder variantSelection(@Nullable ProductVariantSelection variantSelection) Defines which Variants of the Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode.- Parameters:
variantSelection
- value to be set- Returns:
- Builder
-
variantSelection
public AssignedProductSelectionBuilder variantSelection(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) Defines which Variants of the Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode.- Parameters:
builder
- function to build the variantSelection value- Returns:
- Builder
-
variantExclusion
public AssignedProductSelectionBuilder 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.- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public AssignedProductSelectionBuilder 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.- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
public AssignedProductSelectionBuilder 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.- Parameters:
variantExclusion
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) this assignment was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
getProductSelection
Reference to the Product Selection that this assignment is part of.
- Returns:
- productSelection
-
getVariantSelection
Defines which Variants of the Product will be included in the Product Selection.
This field is only available for assignments to a Product Selection with
Individual
ProductSelectionMode.- 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.- Returns:
- variantExclusion
-
getCreatedAt
Date and time (UTC) this assignment was initially created.
- Returns:
- createdAt
-
build
builds AssignedProductSelection with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssignedProductSelection>
- Returns:
- AssignedProductSelection
-
buildUnchecked
builds AssignedProductSelection without checking for non-null required values- Returns:
- AssignedProductSelection
-
of
factory method for an instance of AssignedProductSelectionBuilder- Returns:
- builder
-
of
create builder for AssignedProductSelection instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-