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