Class StoreAddProductSelectionActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreAddProductSelectionActionBuilder
- All Implemented Interfaces:
Builder<StoreAddProductSelectionAction>
public class StoreAddProductSelectionActionBuilder
extends Object
implements Builder<StoreAddProductSelectionAction>
StoreAddProductSelectionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreAddProductSelectionAction storeAddProductSelectionAction = StoreAddProductSelectionAction.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet totrue
to make all Products assigned to the referenced Product Selection available in the Store.build()
builds StoreAddProductSelectionAction with checking for non-null required valuesbuilds StoreAddProductSelectionAction without checking for non-null required valuesSet totrue
to make all Products assigned to the referenced Product Selection available in the Store.Product Selection to add to the Store either activated or deactivated.of()
factory method for an instance of StoreAddProductSelectionActionBuilderof
(StoreAddProductSelectionAction template) create builder for StoreAddProductSelectionAction instanceproductSelection
(ProductSelectionResourceIdentifier productSelection) Product Selection to add to the Store either activated or deactivated.productSelection
(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifierBuilder> builder) Product Selection to add to the Store either activated or deactivated.withProductSelection
(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifier> builder) Product Selection to add to the Store either activated or deactivated.
-
Constructor Details
-
StoreAddProductSelectionActionBuilder
public StoreAddProductSelectionActionBuilder()
-
-
Method Details
-
productSelection
public StoreAddProductSelectionActionBuilder productSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifierBuilder> builder) Product Selection to add to the Store either activated or deactivated.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public StoreAddProductSelectionActionBuilder withProductSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifier> builder) Product Selection to add to the Store either activated or deactivated.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
productSelection
public StoreAddProductSelectionActionBuilder productSelection(ProductSelectionResourceIdentifier productSelection) Product Selection to add to the Store either activated or deactivated.
- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
active
Set to
true
to make all Products assigned to the referenced Product Selection available in the Store.- Parameters:
active
- value to be set- Returns:
- Builder
-
getProductSelection
Product Selection to add to the Store either activated or deactivated.
- Returns:
- productSelection
-
getActive
Set to
true
to make all Products assigned to the referenced Product Selection available in the Store.- Returns:
- active
-
build
builds StoreAddProductSelectionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreAddProductSelectionAction>
- Returns:
- StoreAddProductSelectionAction
-
buildUnchecked
builds StoreAddProductSelectionAction without checking for non-null required values- Returns:
- StoreAddProductSelectionAction
-
of
factory method for an instance of StoreAddProductSelectionActionBuilder- Returns:
- builder
-
of
create builder for StoreAddProductSelectionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-