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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreSetDistributionChannelsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreSetDistributionChannelsActionbuilder
(StoreSetDistributionChannelsAction template) create builder for StoreSetDistributionChannelsAction instancedeepCopy
(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 StoreSetDistributionChannelsActionvoid
setDistributionChannels
(ChannelResourceIdentifier... distributionChannels) Value to set.void
setDistributionChannels
(List<ChannelResourceIdentifier> distributionChannels) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StoreSetDistributionChannelsAction>
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_DISTRIBUTION_CHANNELS
discriminator value for StoreSetDistributionChannelsAction- See Also:
-
-
Method Details
-
getDistributionChannels
Value to set. If not defined, the Store's
distributionChannels
are unset.- Returns:
- distributionChannels
-
setDistributionChannels
Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
distributionChannels
- values to be set
-
setDistributionChannels
Value to set. If not defined, the Store's
distributionChannels
are 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
-
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
-