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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderLineItemDistributionChannelSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderLineItemDistributionChannelSetMessagePayloadcreate builder for OrderLineItemDistributionChannelSetMessagePayload instancecopyDeep()factory method to create a deep copy of OrderLineItemDistributionChannelSetMessagePayload@Valid ChannelReferenceDistribution Channel that was set.@NotNull StringUnique identifier of the Line Item.User-defined unique identifier of the LineItem.of()factory methodfactory method to create a shallow copy OrderLineItemDistributionChannelSetMessagePayloadvoidsetDistributionChannel(ChannelReference distributionChannel) Distribution Channel that was set.voidsetLineItemId(String lineItemId) Unique identifier of the Line Item.voidsetLineItemKey(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> TwithOrderLineItemDistributionChannelSetMessagePayload(Function<OrderLineItemDistributionChannelSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods 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
-
copyDeep
- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-