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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StoreSetSupplyChannelsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StoreSetSupplyChannelsActionbuilder(StoreSetSupplyChannelsAction template) create builder for StoreSetSupplyChannelsAction instancecopyDeep()static StoreSetSupplyChannelsActiondeepCopy(StoreSetSupplyChannelsAction template) factory method to create a deep copy of StoreSetSupplyChannelsAction@Valid List<ChannelResourceIdentifier>Value to set.static StoreSetSupplyChannelsActionof()factory methodstatic StoreSetSupplyChannelsActionof(StoreSetSupplyChannelsAction template) factory method to create a shallow copy StoreSetSupplyChannelsActionvoidsetSupplyChannels(ChannelResourceIdentifier... supplyChannels) Value to set.voidsetSupplyChannels(List<ChannelResourceIdentifier> supplyChannels) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StoreSetSupplyChannelsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
supplyChannelsare unset.- Returns:
- supplyChannels
-
setSupplyChannels
Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
supplyChannels- values to be set
-
setSupplyChannels
Value to set. If not defined, the Store's
supplyChannelsare 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
-
copyDeep
StoreSetSupplyChannelsAction copyDeep()- Specified by:
copyDeepin interfaceStoreUpdateAction
-
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
-