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