Class OrderLineItemDistributionChannelSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderLineItemDistributionChannelSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderLineItemDistributionChannelSetMessagePayload>
public class OrderLineItemDistributionChannelSetMessagePayloadBuilder
extends Object
implements Builder<OrderLineItemDistributionChannelSetMessagePayload>
OrderLineItemDistributionChannelSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderLineItemDistributionChannelSetMessagePayload orderLineItemDistributionChannelSetMessagePayload = OrderLineItemDistributionChannelSetMessagePayload.builder()
.lineItemId("{lineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderLineItemDistributionChannelSetMessagePayload with checking for non-null required valuesbuilds OrderLineItemDistributionChannelSetMessagePayload without checking for non-null required valuesdistributionChannel
(ChannelReference distributionChannel) Distribution Channel that was set.Distribution Channel that was set.Distribution Channel that was set.Unique identifier of the Line Item.User-defined unique identifier of the LineItem.lineItemId
(String lineItemId) Unique identifier of the Line Item.lineItemKey
(String lineItemKey) User-defined unique identifier of the LineItem.of()
factory method for an instance of OrderLineItemDistributionChannelSetMessagePayloadBuildercreate builder for OrderLineItemDistributionChannelSetMessagePayload instanceDistribution Channel that was set.
-
Constructor Details
-
OrderLineItemDistributionChannelSetMessagePayloadBuilder
public OrderLineItemDistributionChannelSetMessagePayloadBuilder()
-
-
Method Details
-
lineItemId
Unique identifier of the Line Item.
- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
public OrderLineItemDistributionChannelSetMessagePayloadBuilder lineItemKey(@Nullable String lineItemKey) User-defined unique identifier of the LineItem.
- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
distributionChannel
public OrderLineItemDistributionChannelSetMessagePayloadBuilder distributionChannel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Distribution Channel that was set.
- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
withDistributionChannel
public OrderLineItemDistributionChannelSetMessagePayloadBuilder withDistributionChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Distribution Channel that was set.
- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
distributionChannel
public OrderLineItemDistributionChannelSetMessagePayloadBuilder distributionChannel(@Nullable ChannelReference distributionChannel) Distribution Channel that was set.
- Parameters:
distributionChannel
- value to be set- Returns:
- Builder
-
getLineItemId
Unique identifier of the Line Item.
- Returns:
- lineItemId
-
getLineItemKey
User-defined unique identifier of the LineItem.
- Returns:
- lineItemKey
-
getDistributionChannel
Distribution Channel that was set.
- Returns:
- distributionChannel
-
build
builds OrderLineItemDistributionChannelSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderLineItemDistributionChannelSetMessagePayload>
- Returns:
- OrderLineItemDistributionChannelSetMessagePayload
-
buildUnchecked
builds OrderLineItemDistributionChannelSetMessagePayload without checking for non-null required values- Returns:
- OrderLineItemDistributionChannelSetMessagePayload
-
of
factory method for an instance of OrderLineItemDistributionChannelSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderLineItemDistributionChannelSetMessagePayloadBuilder of(OrderLineItemDistributionChannelSetMessagePayload template) create builder for OrderLineItemDistributionChannelSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-