Interface OrderLineItemDistributionChannelSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,OrderMessage
,Versioned<Message>
Generated after a successful Set LineItem DistributionChannel update action.
Example to create an instance using the builder pattern
OrderLineItemDistributionChannelSetMessage orderLineItemDistributionChannelSetMessage = OrderLineItemDistributionChannelSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.lineItemId("{lineItemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderLineItemDistributionChannelSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderLineItemDistributionChannelSetMessagecreate builder for OrderLineItemDistributionChannelSetMessage instancefactory method to create a deep copy of OrderLineItemDistributionChannelSetMessage@Valid ChannelReference
Distribution Channel that was set.@NotNull String
Unique identifier of the Line Item.User-defined unique identifier of the LineItem.of()
factory methodof
(OrderLineItemDistributionChannelSetMessage template) factory method to create a shallow copy OrderLineItemDistributionChannelSetMessagevoid
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<OrderLineItemDistributionChannelSetMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderLineItemDistributionChannelSetMessage
(Function<OrderLineItemDistributionChannelSetMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
Methods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Field Details
-
ORDER_LINE_ITEM_DISTRIBUTION_CHANNEL_SET
discriminator value for OrderLineItemDistributionChannelSetMessage- 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 OrderLineItemDistributionChannelSetMessage
-
of
static OrderLineItemDistributionChannelSetMessage of(OrderLineItemDistributionChannelSetMessage template) factory method to create a shallow copy OrderLineItemDistributionChannelSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderLineItemDistributionChannelSetMessage deepCopy(@Nullable OrderLineItemDistributionChannelSetMessage template) factory method to create a deep copy of OrderLineItemDistributionChannelSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderLineItemDistributionChannelSetMessage- Returns:
- builder
-
builder
static OrderLineItemDistributionChannelSetMessageBuilder builder(OrderLineItemDistributionChannelSetMessage template) create builder for OrderLineItemDistributionChannelSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderLineItemDistributionChannelSetMessage
default <T> T withOrderLineItemDistributionChannelSetMessage(Function<OrderLineItemDistributionChannelSetMessage, 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<OrderLineItemDistributionChannelSetMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-