Class ProductSelectionSettingDraftBuilder
java.lang.Object
com.commercetools.api.models.store.ProductSelectionSettingDraftBuilder
- All Implemented Interfaces:
Builder<ProductSelectionSettingDraft>
public class ProductSelectionSettingDraftBuilder
extends Object
implements Builder<ProductSelectionSettingDraft>
ProductSelectionSettingDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionSettingDraft productSelectionSettingDraft = ProductSelectionSettingDraft.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet totrueif all Products assigned to the Product Selection should become part of the Store's assortment.build()builds ProductSelectionSettingDraft with checking for non-null required valuesbuilds ProductSelectionSettingDraft without checking for non-null required valuesSet totrueif all Products assigned to the Product Selection should become part of the Store's assortment.Resource Identifier of a ProductSelection.of()factory method for an instance of ProductSelectionSettingDraftBuilderof(ProductSelectionSettingDraft template) create builder for ProductSelectionSettingDraft instanceproductSelection(ProductSelectionResourceIdentifier productSelection) Resource Identifier of a ProductSelection.productSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifierBuilder> builder) Resource Identifier of a ProductSelection.withProductSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifier> builder) Resource Identifier of a ProductSelection.
-
Constructor Details
-
ProductSelectionSettingDraftBuilder
public ProductSelectionSettingDraftBuilder()
-
-
Method Details
-
productSelection
public ProductSelectionSettingDraftBuilder productSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifierBuilder> builder) Resource Identifier of a ProductSelection.
- Parameters:
builder- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public ProductSelectionSettingDraftBuilder withProductSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifier> builder) Resource Identifier of a ProductSelection.
- Parameters:
builder- function to build the productSelection value- Returns:
- Builder
-
productSelection
public ProductSelectionSettingDraftBuilder productSelection(ProductSelectionResourceIdentifier productSelection) Resource Identifier of a ProductSelection.
- Parameters:
productSelection- value to be set- Returns:
- Builder
-
active
Set to
trueif all Products assigned to the Product Selection should become part of the Store's assortment.- Parameters:
active- value to be set- Returns:
- Builder
-
getProductSelection
Resource Identifier of a ProductSelection.
- Returns:
- productSelection
-
getActive
Set to
trueif all Products assigned to the Product Selection should become part of the Store's assortment.- Returns:
- active
-
build
builds ProductSelectionSettingDraft with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSelectionSettingDraft>- Returns:
- ProductSelectionSettingDraft
-
buildUnchecked
builds ProductSelectionSettingDraft without checking for non-null required values- Returns:
- ProductSelectionSettingDraft
-
of
factory method for an instance of ProductSelectionSettingDraftBuilder- Returns:
- builder
-
of
create builder for ProductSelectionSettingDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-