Class CartDiscountRemoveStoreActionBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountRemoveStoreActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountRemoveStoreAction>
public class CartDiscountRemoveStoreActionBuilder
extends Object
implements Builder<CartDiscountRemoveStoreAction>
CartDiscountRemoveStoreActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountRemoveStoreAction cartDiscountRemoveStoreAction = CartDiscountRemoveStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountRemoveStoreAction with checking for non-null required valuesbuilds CartDiscountRemoveStoreAction without checking for non-null required valuesgetStore()
Store to remove.of()
factory method for an instance of CartDiscountRemoveStoreActionBuilderof
(CartDiscountRemoveStoreAction template) create builder for CartDiscountRemoveStoreAction instancestore
(StoreResourceIdentifier store) Store to remove.Store to remove.Store to remove.
-
Constructor Details
-
CartDiscountRemoveStoreActionBuilder
public CartDiscountRemoveStoreActionBuilder()
-
-
Method Details
-
store
public CartDiscountRemoveStoreActionBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Store to remove.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public CartDiscountRemoveStoreActionBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Store to remove.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
Store to remove.
- Parameters:
store
- value to be set- Returns:
- Builder
-
getStore
Store to remove.
- Returns:
- store
-
build
builds CartDiscountRemoveStoreAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountRemoveStoreAction>
- Returns:
- CartDiscountRemoveStoreAction
-
buildUnchecked
builds CartDiscountRemoveStoreAction without checking for non-null required values- Returns:
- CartDiscountRemoveStoreAction
-
of
factory method for an instance of CartDiscountRemoveStoreActionBuilder- Returns:
- builder
-
of
create builder for CartDiscountRemoveStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-