Class CartDiscountStoreRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CartDiscountStoreRemovedMessagePayload>
public class CartDiscountStoreRemovedMessagePayloadBuilder
extends Object
implements Builder<CartDiscountStoreRemovedMessagePayload>
CartDiscountStoreRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountStoreRemovedMessagePayload cartDiscountStoreRemovedMessagePayload = CartDiscountStoreRemovedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountStoreRemovedMessagePayload with checking for non-null required valuesbuilds CartDiscountStoreRemovedMessagePayload without checking for non-null required valuesgetStore()
The Store that was removed from the Cart Discount.of()
factory method for an instance of CartDiscountStoreRemovedMessagePayloadBuilderof
(CartDiscountStoreRemovedMessagePayload template) create builder for CartDiscountStoreRemovedMessagePayload instancestore
(StoreKeyReference store) The Store that was removed from the Cart Discount.The Store that was removed from the Cart Discount.The Store that was removed from the Cart Discount.
-
Constructor Details
-
CartDiscountStoreRemovedMessagePayloadBuilder
public CartDiscountStoreRemovedMessagePayloadBuilder()
-
-
Method Details
-
store
public CartDiscountStoreRemovedMessagePayloadBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store that was removed from the Cart Discount.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public CartDiscountStoreRemovedMessagePayloadBuilder withStore(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Store that was removed from the Cart Discount.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store that was removed from the Cart Discount.
- Parameters:
store
- value to be set- Returns:
- Builder
-
getStore
The Store that was removed from the Cart Discount.
- Returns:
- store
-
build
builds CartDiscountStoreRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountStoreRemovedMessagePayload>
- Returns:
- CartDiscountStoreRemovedMessagePayload
-
buildUnchecked
builds CartDiscountStoreRemovedMessagePayload without checking for non-null required values- Returns:
- CartDiscountStoreRemovedMessagePayload
-
of
factory method for an instance of CartDiscountStoreRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static CartDiscountStoreRemovedMessagePayloadBuilder of(CartDiscountStoreRemovedMessagePayload template) create builder for CartDiscountStoreRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-