Interface StoreSetDistributionChannelsAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>,StoreUpdateAction
This update action produces the StoreDistributionChannelsChanged Message.
Setting a Channel without the ProductDistribution ChannelRoleEnum returns a MissingRoleOnChannel error.
Example to create an instance using the builder pattern
StoreSetDistributionChannelsAction storeSetDistributionChannelsAction = StoreSetDistributionChannelsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StoreSetDistributionChannelsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StoreSetDistributionChannelsActionbuilder(StoreSetDistributionChannelsAction template) create builder for StoreSetDistributionChannelsAction instancecopyDeep()deepCopy(StoreSetDistributionChannelsAction template) factory method to create a deep copy of StoreSetDistributionChannelsAction@Valid List<ChannelResourceIdentifier>Value to set.of()factory methodof(StoreSetDistributionChannelsAction template) factory method to create a shallow copy StoreSetDistributionChannelsActionvoidsetDistributionChannels(ChannelResourceIdentifier... distributionChannels) Value to set.voidsetDistributionChannels(List<ChannelResourceIdentifier> distributionChannels) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StoreSetDistributionChannelsAction>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_DISTRIBUTION_CHANNELS
discriminator value for StoreSetDistributionChannelsAction- See Also:
-
-
Method Details
-
getDistributionChannels
Value to set. If not defined, the Store's
distributionChannelsare unset.- Returns:
- distributionChannels
-
setDistributionChannels
Value to set. If not defined, the Store's
distributionChannelsare unset.- Parameters:
distributionChannels- values to be set
-
setDistributionChannels
Value to set. If not defined, the Store's
distributionChannelsare unset.- Parameters:
distributionChannels- values to be set
-
of
factory method- Returns:
- instance of StoreSetDistributionChannelsAction
-
of
factory method to create a shallow copy StoreSetDistributionChannelsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StoreSetDistributionChannelsAction copyDeep()- Specified by:
copyDeepin interfaceStoreUpdateAction
-
deepCopy
@Nullable static StoreSetDistributionChannelsAction deepCopy(@Nullable StoreSetDistributionChannelsAction template) factory method to create a deep copy of StoreSetDistributionChannelsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreSetDistributionChannelsAction- Returns:
- builder
-
builder
static StoreSetDistributionChannelsActionBuilder builder(StoreSetDistributionChannelsAction template) create builder for StoreSetDistributionChannelsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStoreSetDistributionChannelsAction
default <T> T withStoreSetDistributionChannelsAction(Function<StoreSetDistributionChannelsAction, 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<StoreSetDistributionChannelsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-