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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderAddShoppingListAction with checking for non-null required valuesbuilds StagedOrderAddShoppingListAction 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 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) 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
-
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) 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListActionBuilder 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 StagedOrderAddShoppingListAction with checking for non-null required values- Specified by:
buildin 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
-