Class StagedOrderAddShoppingListActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderAddShoppingListAction>
Example to create an instance using the builder pattern
StagedOrderAddShoppingListAction stagedOrderAddShoppingListAction = StagedOrderAddShoppingListAction.builder()
.shoppingList(shoppingListBuilder -> shoppingListBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderAddShoppingListAction with checking for non-null required valuesbuilds StagedOrderAddShoppingListAction 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 StagedOrderAddShoppingListActionBuilderof
(StagedOrderAddShoppingListAction template) create builder for StagedOrderAddShoppingListAction 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
-
StagedOrderAddShoppingListActionBuilder
public StagedOrderAddShoppingListActionBuilder()
-
-
Method Details
-
shoppingList
public StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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
public StagedOrderAddShoppingListActionBuilder shoppingList(ShoppingListResourceIdentifier shoppingList) Shopping List that contains the Line Items to be added.
- Parameters:
shoppingList
- value to be set- Returns:
- Builder
-
distributionChannel
public StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderAddShoppingListAction>
- Returns:
- StagedOrderAddShoppingListAction
-
buildUnchecked
builds StagedOrderAddShoppingListAction without checking for non-null required values- Returns:
- StagedOrderAddShoppingListAction
-
of
factory method for an instance of StagedOrderAddShoppingListActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddShoppingListAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-