Class ProductSelectionSetVariantExclusionActionBuilder
- All Implemented Interfaces:
Builder<ProductSelectionSetVariantExclusionAction>
Example to create an instance using the builder pattern
ProductSelectionSetVariantExclusionAction productSelectionSetVariantExclusionAction = ProductSelectionSetVariantExclusionAction.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionSetVariantExclusionAction with checking for non-null required valuesbuilds ProductSelectionSetVariantExclusionAction without checking for non-null required valuesResourceIdentifier of the ProductDetermines which Variants of the previously excluded Product are to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.of()
factory method for an instance of ProductSelectionSetVariantExclusionActionBuilderof
(ProductSelectionSetVariantExclusionAction template) create builder for ProductSelectionSetVariantExclusionAction instanceproduct
(ProductResourceIdentifier product) ResourceIdentifier of the ProductResourceIdentifier of the ProductvariantExclusion
(ProductVariantExclusion variantExclusion) Determines which Variants of the previously excluded Product are to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.Determines which Variants of the previously excluded Product are to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.ResourceIdentifier of the ProductDetermines which Variants of the previously excluded Product are to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.
-
Constructor Details
-
ProductSelectionSetVariantExclusionActionBuilder
public ProductSelectionSetVariantExclusionActionBuilder()
-
-
Method Details
-
product
public ProductSelectionSetVariantExclusionActionBuilder product(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifierBuilder> builder) ResourceIdentifier of the Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionSetVariantExclusionActionBuilder withProduct(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifier> builder) ResourceIdentifier of the Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
ResourceIdentifier of the Product
- Parameters:
product
- value to be set- Returns:
- Builder
-
variantExclusion
public ProductSelectionSetVariantExclusionActionBuilder variantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Determines which Variants of the previously excluded Product are to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode. Leave it empty to unset an existing Variant Exclusion.- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public ProductSelectionSetVariantExclusionActionBuilder withVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Determines which Variants of the previously excluded Product are to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode. Leave it empty to unset an existing Variant Exclusion.- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
public ProductSelectionSetVariantExclusionActionBuilder variantExclusion(@Nullable ProductVariantExclusion variantExclusion) Determines which Variants of the previously excluded Product are to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode. Leave it empty to unset an existing Variant Exclusion.- Parameters:
variantExclusion
- value to be set- Returns:
- Builder
-
getProduct
ResourceIdentifier of the Product
- Returns:
- product
-
getVariantExclusion
Determines which Variants of the previously excluded Product are to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode. Leave it empty to unset an existing Variant Exclusion.- Returns:
- variantExclusion
-
build
builds ProductSelectionSetVariantExclusionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionSetVariantExclusionAction>
- Returns:
- ProductSelectionSetVariantExclusionAction
-
buildUnchecked
builds ProductSelectionSetVariantExclusionAction without checking for non-null required values- Returns:
- ProductSelectionSetVariantExclusionAction
-
of
factory method for an instance of ProductSelectionSetVariantExclusionActionBuilder- Returns:
- builder
-
of
public static ProductSelectionSetVariantExclusionActionBuilder of(ProductSelectionSetVariantExclusionAction template) create builder for ProductSelectionSetVariantExclusionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-