Class ProductVariantSelectionBuilder
java.lang.Object
com.commercetools.history.models.common.ProductVariantSelectionBuilder
- All Implemented Interfaces:
Builder<ProductVariantSelection>
public class ProductVariantSelectionBuilder
extends Object
implements Builder<ProductVariantSelection>
ProductVariantSelectionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantSelection productVariantSelection = ProductVariantSelection.builder()
.type(ProductVariantSelectionTypeEnum.INCLUSION)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductVariantSelection with checking for non-null required valuesbuilds ProductVariantSelection without checking for non-null required valuesgetType()Determines whether the SKUs are to be included in, or excluded from, the Product Selection.of()factory method for an instance of ProductVariantSelectionBuilderof(ProductVariantSelection template) create builder for ProductVariantSelection instanceDetermines whether the SKUs are to be included in, or excluded from, the Product Selection.
-
Constructor Details
-
ProductVariantSelectionBuilder
public ProductVariantSelectionBuilder()
-
-
Method Details
-
type
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.
- Parameters:
type- value to be set- Returns:
- Builder
-
getType
Determines whether the SKUs are to be included in, or excluded from, the Product Selection.
- Returns:
- type
-
build
builds ProductVariantSelection with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductVariantSelection>- Returns:
- ProductVariantSelection
-
buildUnchecked
builds ProductVariantSelection without checking for non-null required values- Returns:
- ProductVariantSelection
-
of
factory method for an instance of ProductVariantSelectionBuilder- Returns:
- builder
-
of
create builder for ProductVariantSelection instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-