Interface StoreAddSupplyChannelAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
This action has no effect if a given supply channel is already present in a Store.
Adding a supply channel produces the StoreSupplyChannelsChanged Message.
Adding a Channel without the InventorySupply
ChannelRoleEnum returns a MissingRoleOnChannel error.
Example to create an instance using the builder pattern
StoreAddSupplyChannelAction storeAddSupplyChannelAction = StoreAddSupplyChannelAction.builder()
.supplyChannel(supplyChannelBuilder -> supplyChannelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreAddSupplyChannelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreAddSupplyChannelActionbuilder
(StoreAddSupplyChannelAction template) create builder for StoreAddSupplyChannelAction instancestatic StoreAddSupplyChannelAction
deepCopy
(StoreAddSupplyChannelAction template) factory method to create a deep copy of StoreAddSupplyChannelAction@NotNull @Valid ChannelResourceIdentifier
Value to append.static StoreAddSupplyChannelAction
of()
factory methodstatic StoreAddSupplyChannelAction
of
(StoreAddSupplyChannelAction template) factory method to create a shallow copy StoreAddSupplyChannelActionvoid
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) Value to append.static com.fasterxml.jackson.core.type.TypeReference<StoreAddSupplyChannelAction>
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.store.StoreUpdateAction
getAction, withStoreUpdateAction
-
Field Details
-
ADD_SUPPLY_CHANNEL
discriminator value for StoreAddSupplyChannelAction- See Also:
-
-
Method Details
-
getSupplyChannel
Value to append.
- Returns:
- supplyChannel
-
setSupplyChannel
Value to append.
- Parameters:
supplyChannel
- value to be set
-
of
factory method- Returns:
- instance of StoreAddSupplyChannelAction
-
of
factory method to create a shallow copy StoreAddSupplyChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreAddSupplyChannelAction deepCopy(@Nullable StoreAddSupplyChannelAction template) factory method to create a deep copy of StoreAddSupplyChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreAddSupplyChannelAction- Returns:
- builder
-
builder
create builder for StoreAddSupplyChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreAddSupplyChannelAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-