Class CartAddShoppingListActionBuilder
- All Implemented Interfaces:
Builder<CartAddShoppingListAction>
Example to create an instance using the builder pattern
CartAddShoppingListAction cartAddShoppingListAction = CartAddShoppingListAction.builder()
.shoppingList(shoppingListBuilder -> shoppingListBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartAddShoppingListAction with checking for non-null required valuesbuilds CartAddShoppingListAction without checking for non-null required valuesdistributionChannel
(ChannelResourceIdentifier distributionChannel) distributionChannel
to set for all LineItems that are added to the Cart.distributionChannel
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) distributionChannel
to set for all LineItems that are added to the Cart.distributionChannel
to set for all LineItems that are added to the Cart.Shopping List that contains the Line Items to be added.supplyChannel
to set for all LineItems that are added to the Cart.of()
factory method for an instance of CartAddShoppingListActionBuilderof
(CartAddShoppingListAction template) create builder for CartAddShoppingListAction instanceshoppingList
(ShoppingListResourceIdentifier shoppingList) Shopping List that contains the Line Items to be added.shoppingList
(Function<ShoppingListResourceIdentifierBuilder, ShoppingListResourceIdentifierBuilder> builder) Shopping List that contains the Line Items to be added.supplyChannel
(ChannelResourceIdentifier supplyChannel) supplyChannel
to set for all LineItems that are added to the Cart.supplyChannel
to set for all LineItems that are added to the Cart.withDistributionChannel
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) distributionChannel
to set for all LineItems that are added to the Cart.withShoppingList
(Function<ShoppingListResourceIdentifierBuilder, ShoppingListResourceIdentifier> builder) Shopping List that contains the Line Items to be added.supplyChannel
to set for all LineItems that are added to the Cart.
-
Constructor Details
-
CartAddShoppingListActionBuilder
public CartAddShoppingListActionBuilder()
-
-
Method Details
-
shoppingList
public CartAddShoppingListActionBuilder shoppingList(Function<ShoppingListResourceIdentifierBuilder, ShoppingListResourceIdentifierBuilder> builder) Shopping List that contains the Line Items to be added.
- Parameters:
builder
- function to build the shoppingList value- Returns:
- Builder
-
withShoppingList
public CartAddShoppingListActionBuilder withShoppingList(Function<ShoppingListResourceIdentifierBuilder, ShoppingListResourceIdentifier> builder) Shopping List that contains the Line Items to be added.
- Parameters:
builder
- function to build the shoppingList value- Returns:
- Builder
-
shoppingList
Shopping List that contains the Line Items to be added.
- Parameters:
shoppingList
- value to be set- Returns:
- Builder
-
distributionChannel
public CartAddShoppingListActionBuilder distributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
withDistributionChannel
public CartAddShoppingListActionBuilder withDistributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
distributionChannel
public CartAddShoppingListActionBuilder distributionChannel(@Nullable ChannelResourceIdentifier distributionChannel) distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Parameters:
distributionChannel
- value to be set- Returns:
- Builder
-
supplyChannel
public CartAddShoppingListActionBuilder supplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public CartAddShoppingListActionBuilder withSupplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public CartAddShoppingListActionBuilder supplyChannel(@Nullable ChannelResourceIdentifier supplyChannel) supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Parameters:
supplyChannel
- value to be set- Returns:
- Builder
-
getShoppingList
Shopping List that contains the Line Items to be added.
- Returns:
- shoppingList
-
getDistributionChannel
distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Returns:
- distributionChannel
-
getSupplyChannel
supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Returns:
- supplyChannel
-
build
builds CartAddShoppingListAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartAddShoppingListAction>
- Returns:
- CartAddShoppingListAction
-
buildUnchecked
builds CartAddShoppingListAction without checking for non-null required values- Returns:
- CartAddShoppingListAction
-
of
factory method for an instance of CartAddShoppingListActionBuilder- Returns:
- builder
-
of
create builder for CartAddShoppingListAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-