Interface StagedOrderAddShoppingListAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderAddShoppingListActionImpl
StagedOrderAddShoppingListAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderAddShoppingListAction stagedOrderAddShoppingListAction = StagedOrderAddShoppingListAction.builder()
.shoppingList(shoppingListBuilder -> shoppingListBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderAddShoppingListAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderAddShoppingListActionbuilder
(StagedOrderAddShoppingListAction template) create builder for StagedOrderAddShoppingListAction instancedeepCopy
(StagedOrderAddShoppingListAction template) factory method to create a deep copy of StagedOrderAddShoppingListAction@Valid ChannelResourceIdentifier
ResourceIdentifier to a Channel.@NotNull @Valid ShoppingListResourceIdentifier
ResourceIdentifier to a ShoppingList.@Valid ChannelResourceIdentifier
ResourceIdentifier to a Channel.of()
factory methodof
(StagedOrderAddShoppingListAction template) factory method to create a shallow copy StagedOrderAddShoppingListActionvoid
setDistributionChannel
(ChannelResourceIdentifier distributionChannel) ResourceIdentifier to a Channel.void
setShoppingList
(ShoppingListResourceIdentifier shoppingList) ResourceIdentifier to a ShoppingList.void
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) ResourceIdentifier to a Channel.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddShoppingListAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
ADD_SHOPPING_LIST
discriminator value for StagedOrderAddShoppingListAction- See Also:
-
-
Method Details
-
getShoppingList
ResourceIdentifier to a ShoppingList.
- Returns:
- shoppingList
-
getSupplyChannel
ResourceIdentifier to a Channel.
- Returns:
- supplyChannel
-
getDistributionChannel
ResourceIdentifier to a Channel.
- Returns:
- distributionChannel
-
setShoppingList
ResourceIdentifier to a ShoppingList.
- Parameters:
shoppingList
- value to be set
-
setSupplyChannel
ResourceIdentifier to a Channel.
- Parameters:
supplyChannel
- value to be set
-
setDistributionChannel
ResourceIdentifier to a Channel.
- Parameters:
distributionChannel
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderAddShoppingListAction
-
of
factory method to create a shallow copy StagedOrderAddShoppingListAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderAddShoppingListAction deepCopy(@Nullable StagedOrderAddShoppingListAction template) factory method to create a deep copy of StagedOrderAddShoppingListAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddShoppingListAction- Returns:
- builder
-
builder
create builder for StagedOrderAddShoppingListAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddShoppingListAction
default <T> T withStagedOrderAddShoppingListAction(Function<StagedOrderAddShoppingListAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddShoppingListAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-