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