Interface OrderLineItemDistributionChannelSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set LineItem DistributionChannel update action.
Example to create an instance using the builder pattern
OrderLineItemDistributionChannelSetMessagePayload orderLineItemDistributionChannelSetMessagePayload = OrderLineItemDistributionChannelSetMessagePayload.builder()
.lineItemId("{lineItemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderLineItemDistributionChannelSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderLineItemDistributionChannelSetMessagePayloadcreate builder for OrderLineItemDistributionChannelSetMessagePayload instancefactory method to create a deep copy of OrderLineItemDistributionChannelSetMessagePayload@Valid ChannelReference
Distribution Channel that was set.@NotNull String
Unique identifier of the Line Item.User-defined unique identifier of the LineItem.of()
factory methodfactory method to create a shallow copy OrderLineItemDistributionChannelSetMessagePayloadvoid
setDistributionChannel
(ChannelReference distributionChannel) Distribution Channel that was set.void
setLineItemId
(String lineItemId) Unique identifier of the Line Item.void
setLineItemKey
(String lineItemKey) User-defined unique identifier of the LineItem.static com.fasterxml.jackson.core.type.TypeReference<OrderLineItemDistributionChannelSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderLineItemDistributionChannelSetMessagePayload
(Function<OrderLineItemDistributionChannelSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_LINE_ITEM_DISTRIBUTION_CHANNEL_SET
discriminator value for OrderLineItemDistributionChannelSetMessagePayload- See Also:
-
-
Method Details
-
getLineItemId
Unique identifier of the Line Item.
- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()User-defined unique identifier of the LineItem.
- Returns:
- lineItemKey
-
getDistributionChannel
Distribution Channel that was set.
- Returns:
- distributionChannel
-
setLineItemId
Unique identifier of the Line Item.
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
User-defined unique identifier of the LineItem.
- Parameters:
lineItemKey
- value to be set
-
setDistributionChannel
Distribution Channel that was set.
- Parameters:
distributionChannel
- value to be set
-
of
factory method- Returns:
- instance of OrderLineItemDistributionChannelSetMessagePayload
-
of
static OrderLineItemDistributionChannelSetMessagePayload of(OrderLineItemDistributionChannelSetMessagePayload template) factory method to create a shallow copy OrderLineItemDistributionChannelSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderLineItemDistributionChannelSetMessagePayload deepCopy(@Nullable OrderLineItemDistributionChannelSetMessagePayload template) factory method to create a deep copy of OrderLineItemDistributionChannelSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderLineItemDistributionChannelSetMessagePayload- Returns:
- builder
-
builder
static OrderLineItemDistributionChannelSetMessagePayloadBuilder builder(OrderLineItemDistributionChannelSetMessagePayload template) create builder for OrderLineItemDistributionChannelSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderLineItemDistributionChannelSetMessagePayload
default <T> T withOrderLineItemDistributionChannelSetMessagePayload(Function<OrderLineItemDistributionChannelSetMessagePayload, 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<OrderLineItemDistributionChannelSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-