Class StoreRemoveProductSelectionActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreRemoveProductSelectionActionBuilder
- All Implemented Interfaces:
Builder<StoreRemoveProductSelectionAction>
public class StoreRemoveProductSelectionActionBuilder
extends Object
implements Builder<StoreRemoveProductSelectionAction>
StoreRemoveProductSelectionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreRemoveProductSelectionAction storeRemoveProductSelectionAction = StoreRemoveProductSelectionAction.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StoreRemoveProductSelectionAction with checking for non-null required valuesbuilds StoreRemoveProductSelectionAction without checking for non-null required valuesValue to remove.of()
factory method for an instance of StoreRemoveProductSelectionActionBuilderof
(StoreRemoveProductSelectionAction template) create builder for StoreRemoveProductSelectionAction instanceproductSelection
(ProductSelectionResourceIdentifier productSelection) Value to remove.productSelection
(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifierBuilder> builder) Value to remove.withProductSelection
(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifier> builder) Value to remove.
-
Constructor Details
-
StoreRemoveProductSelectionActionBuilder
public StoreRemoveProductSelectionActionBuilder()
-
-
Method Details
-
productSelection
public StoreRemoveProductSelectionActionBuilder productSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifierBuilder> builder) Value to remove. The removed Product Selection is made offline.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public StoreRemoveProductSelectionActionBuilder withProductSelection(Function<ProductSelectionResourceIdentifierBuilder, ProductSelectionResourceIdentifier> builder) Value to remove. The removed Product Selection is made offline.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
productSelection
public StoreRemoveProductSelectionActionBuilder productSelection(ProductSelectionResourceIdentifier productSelection) Value to remove. The removed Product Selection is made offline.
- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
getProductSelection
Value to remove. The removed Product Selection is made offline.
- Returns:
- productSelection
-
build
builds StoreRemoveProductSelectionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreRemoveProductSelectionAction>
- Returns:
- StoreRemoveProductSelectionAction
-
buildUnchecked
builds StoreRemoveProductSelectionAction without checking for non-null required values- Returns:
- StoreRemoveProductSelectionAction
-
of
factory method for an instance of StoreRemoveProductSelectionActionBuilder- Returns:
- builder
-
of
public static StoreRemoveProductSelectionActionBuilder of(StoreRemoveProductSelectionAction template) create builder for StoreRemoveProductSelectionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-