Class CartDiscountStoresSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CartDiscountStoresSetMessagePayload>
public class CartDiscountStoresSetMessagePayloadBuilder
extends Object
implements Builder<CartDiscountStoresSetMessagePayload>
CartDiscountStoresSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountStoresSetMessagePayload cartDiscountStoresSetMessagePayload = CartDiscountStoresSetMessagePayload.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStores of the Cart Discount after the Set Stores update action.build()
builds CartDiscountStoresSetMessagePayload with checking for non-null required valuesbuilds CartDiscountStoresSetMessagePayload without checking for non-null required valuesStores of the Cart Discount after the Set Stores update action.of()
factory method for an instance of CartDiscountStoresSetMessagePayloadBuilderof
(CartDiscountStoresSetMessagePayload template) create builder for CartDiscountStoresSetMessagePayload instanceplusStores
(StoreKeyReference... stores) Stores of the Cart Discount after the Set Stores update action.Stores of the Cart Discount after the Set Stores update action.Stores of the Cart Discount after the Set Stores update action.stores
(StoreKeyReference... stores) Stores of the Cart Discount after the Set Stores update action.stores
(List<StoreKeyReference> stores) Stores of the Cart Discount after the Set Stores update action.Stores of the Cart Discount after the Set Stores update action.
-
Constructor Details
-
CartDiscountStoresSetMessagePayloadBuilder
public CartDiscountStoresSetMessagePayloadBuilder()
-
-
Method Details
-
stores
Stores of the Cart Discount after the Set Stores update action.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
stores
Stores of the Cart Discount after the Set Stores update action.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
Stores of the Cart Discount after the Set Stores update action.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
public CartDiscountStoresSetMessagePayloadBuilder plusStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) Stores of the Cart Discount after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
withStores
public CartDiscountStoresSetMessagePayloadBuilder withStores(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) Stores of the Cart Discount after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
addStores
public CartDiscountStoresSetMessagePayloadBuilder addStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) Stores of the Cart Discount after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
setStores
public CartDiscountStoresSetMessagePayloadBuilder setStores(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) Stores of the Cart Discount after the Set Stores update action.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
getStores
Stores of the Cart Discount after the Set Stores update action.
- Returns:
- stores
-
build
builds CartDiscountStoresSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountStoresSetMessagePayload>
- Returns:
- CartDiscountStoresSetMessagePayload
-
buildUnchecked
builds CartDiscountStoresSetMessagePayload without checking for non-null required values- Returns:
- CartDiscountStoresSetMessagePayload
-
of
factory method for an instance of CartDiscountStoresSetMessagePayloadBuilder- Returns:
- builder
-
of
public static CartDiscountStoresSetMessagePayloadBuilder of(CartDiscountStoresSetMessagePayload template) create builder for CartDiscountStoresSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-