Class AssignedProductReferenceBuilder
- All Implemented Interfaces:
Builder<AssignedProductReference>
Example to create an instance using the builder pattern
AssignedProductReference assignedProductReference = AssignedProductReference.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssignedProductReference with checking for non-null required valuesbuilds AssignedProductReference without checking for non-null required valuesReference to a Product that is assigned to the Product Selection.The Variants of the Product that are excluded from the Product Selection.The Variants of the Product that are included from the Product Selection.of()
factory method for an instance of AssignedProductReferenceBuilderof
(AssignedProductReference template) create builder for AssignedProductReference instanceproduct
(ProductReference product) Reference to a Product that is assigned to the Product Selection.Reference to a Product that is assigned to the Product Selection.variantExclusion
(ProductVariantExclusion variantExclusion) The Variants of the Product that are excluded from the Product Selection.The Variants of the Product that are excluded from the Product Selection.variantSelection
(ProductVariantSelection variantSelection) The Variants of the Product that are included from the Product Selection.variantSelection
(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) The Variants of the Product that are included from the Product Selection.Reference to a Product that is assigned to the Product Selection.The Variants of the Product that are excluded from the Product Selection.
-
Constructor Details
-
AssignedProductReferenceBuilder
public AssignedProductReferenceBuilder()
-
-
Method Details
-
product
public AssignedProductReferenceBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to a Product that is assigned to the Product Selection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public AssignedProductReferenceBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to a Product that is assigned to the Product Selection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to a Product that is assigned to the Product Selection.
- Parameters:
product
- value to be set- Returns:
- Builder
-
variantSelection
public AssignedProductReferenceBuilder variantSelection(@Nullable ProductVariantSelection variantSelection) The Variants of the Product that are included from the Product Selection.
This field may exist only in Product Selections with
Individual
ProductSelectionMode. In absence of this field, all Variants are deemed to be included.- Parameters:
variantSelection
- value to be set- Returns:
- Builder
-
variantSelection
public AssignedProductReferenceBuilder variantSelection(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) The Variants of the Product that are included from the Product Selection.
This field may exist only in Product Selections with
Individual
ProductSelectionMode. In absence of this field, all Variants are deemed to be included.- Parameters:
builder
- function to build the variantSelection value- Returns:
- Builder
-
variantExclusion
public AssignedProductReferenceBuilder variantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) The Variants of the Product that are excluded from the Product Selection.
This field may exist only in Product Selections with
IndividualExclusion
ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public AssignedProductReferenceBuilder withVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) The Variants of the Product that are excluded from the Product Selection.
This field may exist only in Product Selections with
IndividualExclusion
ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
public AssignedProductReferenceBuilder variantExclusion(@Nullable ProductVariantExclusion variantExclusion) The Variants of the Product that are excluded from the Product Selection.
This field may exist only in Product Selections with
IndividualExclusion
ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.- Parameters:
variantExclusion
- value to be set- Returns:
- Builder
-
getProduct
Reference to a Product that is assigned to the Product Selection.
- Returns:
- product
-
getVariantSelection
The Variants of the Product that are included from the Product Selection.
This field may exist only in Product Selections with
Individual
ProductSelectionMode. In absence of this field, all Variants are deemed to be included.- Returns:
- variantSelection
-
getVariantExclusion
The Variants of the Product that are excluded from the Product Selection.
This field may exist only in Product Selections with
IndividualExclusion
ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.- Returns:
- variantExclusion
-
build
builds AssignedProductReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssignedProductReference>
- Returns:
- AssignedProductReference
-
buildUnchecked
builds AssignedProductReference without checking for non-null required values- Returns:
- AssignedProductReference
-
of
factory method for an instance of AssignedProductReferenceBuilder- Returns:
- builder
-
of
create builder for AssignedProductReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-