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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartAddShoppingListAction with checking for non-null required valuesbuilds CartAddShoppingListAction without checking for non-null required valuesdistributionChannel(ChannelResourceIdentifier distributionChannel) distributionChannelto set for all LineItems that are added to the Cart.distributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) distributionChannelto set for all LineItems that are added to the Cart.distributionChannelto set for all LineItems that are added to the Cart.Shopping List that contains the Line Items to be added.supplyChannelto 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) supplyChannelto set for all LineItems that are added to the Cart.supplyChannelto set for all LineItems that are added to the Cart.withDistributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) distributionChannelto 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.supplyChannelto 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) distributionChannelto set for all LineItems that are added to the Cart. The Channel must have theProductDistributionChannelRoleEnum.- Parameters:
builder- function to build the distributionChannel value- Returns:
- Builder
-
withDistributionChannel
public CartAddShoppingListActionBuilder withDistributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) distributionChannelto set for all LineItems that are added to the Cart. The Channel must have theProductDistributionChannelRoleEnum.- Parameters:
builder- function to build the distributionChannel value- Returns:
- Builder
-
distributionChannel
public CartAddShoppingListActionBuilder distributionChannel(@Nullable ChannelResourceIdentifier distributionChannel) distributionChannelto set for all LineItems that are added to the Cart. The Channel must have theProductDistributionChannelRoleEnum.- Parameters:
distributionChannel- value to be set- Returns:
- Builder
-
supplyChannel
public CartAddShoppingListActionBuilder supplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) supplyChannelto set for all LineItems that are added to the Cart. The Channel must have theInventorySupplyChannelRoleEnum.- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public CartAddShoppingListActionBuilder withSupplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) supplyChannelto set for all LineItems that are added to the Cart. The Channel must have theInventorySupplyChannelRoleEnum.- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public CartAddShoppingListActionBuilder supplyChannel(@Nullable ChannelResourceIdentifier supplyChannel) supplyChannelto set for all LineItems that are added to the Cart. The Channel must have theInventorySupplyChannelRoleEnum.- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
getShoppingList
Shopping List that contains the Line Items to be added.
- Returns:
- shoppingList
-
getDistributionChannel
distributionChannelto set for all LineItems that are added to the Cart. The Channel must have theProductDistributionChannelRoleEnum.- Returns:
- distributionChannel
-
getSupplyChannel
supplyChannelto set for all LineItems that are added to the Cart. The Channel must have theInventorySupplyChannelRoleEnum.- Returns:
- supplyChannel
-
build
builds CartAddShoppingListAction with checking for non-null required values- Specified by:
buildin 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
-