Interface StoreAddDistributionChannelAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
This update action produces the StoreDistributionChannelsChanged Message. It has no effect if a given distribution channel is already present in a Store.
Adding a Channel without the ProductDistribution
ChannelRoleEnum returns a MissingRoleOnChannel error.
Example to create an instance using the builder pattern
StoreAddDistributionChannelAction storeAddDistributionChannelAction = StoreAddDistributionChannelAction.builder()
.distributionChannel(distributionChannelBuilder -> distributionChannelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreAddDistributionChannelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreAddDistributionChannelActionbuilder
(StoreAddDistributionChannelAction template) create builder for StoreAddDistributionChannelAction instancedeepCopy
(StoreAddDistributionChannelAction template) factory method to create a deep copy of StoreAddDistributionChannelAction@NotNull @Valid ChannelResourceIdentifier
Value to append.of()
factory methodof
(StoreAddDistributionChannelAction template) factory method to create a shallow copy StoreAddDistributionChannelActionvoid
setDistributionChannel
(ChannelResourceIdentifier distributionChannel) Value to append.static com.fasterxml.jackson.core.type.TypeReference<StoreAddDistributionChannelAction>
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_DISTRIBUTION_CHANNEL
discriminator value for StoreAddDistributionChannelAction- See Also:
-
-
Method Details
-
getDistributionChannel
Value to append.
- Returns:
- distributionChannel
-
setDistributionChannel
Value to append.
- Parameters:
distributionChannel
- value to be set
-
of
factory method- Returns:
- instance of StoreAddDistributionChannelAction
-
of
factory method to create a shallow copy StoreAddDistributionChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreAddDistributionChannelAction deepCopy(@Nullable StoreAddDistributionChannelAction template) factory method to create a deep copy of StoreAddDistributionChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreAddDistributionChannelAction- Returns:
- builder
-
builder
create builder for StoreAddDistributionChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreAddDistributionChannelAction
default <T> T withStoreAddDistributionChannelAction(Function<StoreAddDistributionChannelAction, 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<StoreAddDistributionChannelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-