Class StoreSetProductSelectionsActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreSetProductSelectionsActionBuilder
- All Implemented Interfaces:
Builder<StoreSetProductSelectionsAction>
public class StoreSetProductSelectionsActionBuilder
extends Object
implements Builder<StoreSetProductSelectionsAction>
StoreSetProductSelectionsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreSetProductSelectionsAction storeSetProductSelectionsAction = StoreSetProductSelectionsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProductSelections
(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraft> builder) Value to set.build()
builds StoreSetProductSelectionsAction with checking for non-null required valuesbuilds StoreSetProductSelectionsAction without checking for non-null required valuesValue to set.of()
factory method for an instance of StoreSetProductSelectionsActionBuilderof
(StoreSetProductSelectionsAction template) create builder for StoreSetProductSelectionsAction instanceplusProductSelections
(ProductSelectionSettingDraft... productSelections) Value to set.plusProductSelections
(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraftBuilder> builder) Value to set.productSelections
(ProductSelectionSettingDraft... productSelections) Value to set.productSelections
(List<ProductSelectionSettingDraft> productSelections) Value to set.setProductSelections
(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraft> builder) Value to set.withProductSelections
(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraftBuilder> builder) Value to set.
-
Constructor Details
-
StoreSetProductSelectionsActionBuilder
public StoreSetProductSelectionsActionBuilder()
-
-
Method Details
-
productSelections
public StoreSetProductSelectionsActionBuilder productSelections(@Nullable ProductSelectionSettingDraft... productSelections) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
productSelections
- value to be set- Returns:
- Builder
- If provided, Product Selections for which
-
productSelections
public StoreSetProductSelectionsActionBuilder productSelections(@Nullable List<ProductSelectionSettingDraft> productSelections) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
productSelections
- value to be set- Returns:
- Builder
- If provided, Product Selections for which
-
plusProductSelections
public StoreSetProductSelectionsActionBuilder plusProductSelections(@Nullable ProductSelectionSettingDraft... productSelections) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
productSelections
- value to be set- Returns:
- Builder
- If provided, Product Selections for which
-
plusProductSelections
public StoreSetProductSelectionsActionBuilder plusProductSelections(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraftBuilder> builder) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
- If provided, Product Selections for which
-
withProductSelections
public StoreSetProductSelectionsActionBuilder withProductSelections(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraftBuilder> builder) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
- If provided, Product Selections for which
-
addProductSelections
public StoreSetProductSelectionsActionBuilder addProductSelections(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraft> builder) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
- If provided, Product Selections for which
-
setProductSelections
public StoreSetProductSelectionsActionBuilder setProductSelections(Function<ProductSelectionSettingDraftBuilder, ProductSelectionSettingDraft> builder) Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
- If provided, Product Selections for which
-
getProductSelections
Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Returns:
- productSelections
- If provided, Product Selections for which
-
build
builds StoreSetProductSelectionsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreSetProductSelectionsAction>
- Returns:
- StoreSetProductSelectionsAction
-
buildUnchecked
builds StoreSetProductSelectionsAction without checking for non-null required values- Returns:
- StoreSetProductSelectionsAction
-
of
factory method for an instance of StoreSetProductSelectionsActionBuilder- Returns:
- builder
-
of
create builder for StoreSetProductSelectionsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-