Class ProductVariantExclusionBuilder
java.lang.Object
com.commercetools.api.models.product_selection.ProductVariantExclusionBuilder
- All Implemented Interfaces:
Builder<ProductVariantExclusion>
public class ProductVariantExclusionBuilder
extends Object
implements Builder<ProductVariantExclusion>
ProductVariantExclusionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantExclusion productVariantExclusion = ProductVariantExclusion.builder()
.plusSkus(skusBuilder -> skusBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductVariantExclusion with checking for non-null required valuesbuilds ProductVariantExclusion without checking for non-null required valuesgetSkus()
Non-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.of()
factory method for an instance of ProductVariantExclusionBuilderof
(ProductVariantExclusion template) create builder for ProductVariantExclusion instanceNon-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.Non-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.Non-empty array of SKUs representing Product Variants to be included in the Product Selection withIndividualExclusion
ProductSelectionMode.
-
Constructor Details
-
ProductVariantExclusionBuilder
public ProductVariantExclusionBuilder()
-
-
Method Details
-
skus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Parameters:
skus
- value to be set- Returns:
- Builder
-
skus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Parameters:
skus
- value to be set- Returns:
- Builder
-
plusSkus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Parameters:
skus
- value to be set- Returns:
- Builder
-
getSkus
Non-empty array of SKUs representing Product Variants to be included in the Product Selection with
IndividualExclusion
ProductSelectionMode.- Returns:
- skus
-
build
builds ProductVariantExclusion with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantExclusion>
- Returns:
- ProductVariantExclusion
-
buildUnchecked
builds ProductVariantExclusion without checking for non-null required values- Returns:
- ProductVariantExclusion
-
of
factory method for an instance of ProductVariantExclusionBuilder- Returns:
- builder
-
of
create builder for ProductVariantExclusion instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-