Class ProductSelectionExcludeProductActionBuilder
java.lang.Object
com.commercetools.api.models.product_selection.ProductSelectionExcludeProductActionBuilder
- All Implemented Interfaces:
Builder<ProductSelectionExcludeProductAction>
public class ProductSelectionExcludeProductActionBuilder
extends Object
implements Builder<ProductSelectionExcludeProductAction>
ProductSelectionExcludeProductActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionExcludeProductAction productSelectionExcludeProductAction = ProductSelectionExcludeProductAction.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionExcludeProductAction with checking for non-null required valuesbuilds ProductSelectionExcludeProductAction without checking for non-null required valuesResourceIdentifier of the ProductDefines which Variants of the Product will be excluded from the Product Selection.of()
factory method for an instance of ProductSelectionExcludeProductActionBuilderof
(ProductSelectionExcludeProductAction template) create builder for ProductSelectionExcludeProductAction instanceproduct
(ProductResourceIdentifier product) ResourceIdentifier of the ProductResourceIdentifier of the ProductvariantExclusion
(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.ResourceIdentifier of the ProductDefines which Variants of the Product will be excluded from the Product Selection.
-
Constructor Details
-
ProductSelectionExcludeProductActionBuilder
public ProductSelectionExcludeProductActionBuilder()
-
-
Method Details
-
product
public ProductSelectionExcludeProductActionBuilder product(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifierBuilder> builder) ResourceIdentifier of the Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionExcludeProductActionBuilder 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 ProductSelectionExcludeProductActionBuilder variantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public ProductSelectionExcludeProductActionBuilder withVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
public ProductSelectionExcludeProductActionBuilder variantExclusion(@Nullable ProductVariantExclusion variantExclusion) Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
- Parameters:
variantExclusion
- value to be set- Returns:
- Builder
-
getProduct
ResourceIdentifier of the Product
- Returns:
- product
-
getVariantExclusion
Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
- Returns:
- variantExclusion
-
build
builds ProductSelectionExcludeProductAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionExcludeProductAction>
- Returns:
- ProductSelectionExcludeProductAction
-
buildUnchecked
builds ProductSelectionExcludeProductAction without checking for non-null required values- Returns:
- ProductSelectionExcludeProductAction
-
of
factory method for an instance of ProductSelectionExcludeProductActionBuilder- Returns:
- builder
-
of
public static ProductSelectionExcludeProductActionBuilder of(ProductSelectionExcludeProductAction template) create builder for ProductSelectionExcludeProductAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-