Interface StoreSetSupplyChannelsAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
Setting a supply channel produces the StoreSupplyChannelsChanged Message.
Setting a Channel without the InventorySupply
ChannelRoleEnum returns a MissingRoleOnChannel error.
Example to create an instance using the builder pattern
StoreSetSupplyChannelsAction storeSetSupplyChannelsAction = StoreSetSupplyChannelsAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreSetSupplyChannelsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreSetSupplyChannelsActionbuilder
(StoreSetSupplyChannelsAction template) create builder for StoreSetSupplyChannelsAction instancestatic StoreSetSupplyChannelsAction
deepCopy
(StoreSetSupplyChannelsAction template) factory method to create a deep copy of StoreSetSupplyChannelsAction@Valid List<ChannelResourceIdentifier>
Value to set.static StoreSetSupplyChannelsAction
of()
factory methodstatic StoreSetSupplyChannelsAction
of
(StoreSetSupplyChannelsAction template) factory method to create a shallow copy StoreSetSupplyChannelsActionvoid
setSupplyChannels
(ChannelResourceIdentifier... supplyChannels) Value to set.void
setSupplyChannels
(List<ChannelResourceIdentifier> supplyChannels) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StoreSetSupplyChannelsAction>
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
-
SET_SUPPLY_CHANNELS
discriminator value for StoreSetSupplyChannelsAction- See Also:
-
-
Method Details
-
getSupplyChannels
Value to set. If not defined, the Store's
supplyChannels
are unset.- Returns:
- supplyChannels
-
setSupplyChannels
Value to set. If not defined, the Store's
supplyChannels
are unset.- Parameters:
supplyChannels
- values to be set
-
setSupplyChannels
Value to set. If not defined, the Store's
supplyChannels
are unset.- Parameters:
supplyChannels
- values to be set
-
of
factory method- Returns:
- instance of StoreSetSupplyChannelsAction
-
of
factory method to create a shallow copy StoreSetSupplyChannelsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreSetSupplyChannelsAction deepCopy(@Nullable StoreSetSupplyChannelsAction template) factory method to create a deep copy of StoreSetSupplyChannelsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreSetSupplyChannelsAction- Returns:
- builder
-
builder
create builder for StoreSetSupplyChannelsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreSetSupplyChannelsAction
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
-