Class OrderCustomLineItemAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomLineItemAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomLineItemAddedMessagePayload>
public class OrderCustomLineItemAddedMessagePayloadBuilder
extends Object
implements Builder<OrderCustomLineItemAddedMessagePayload>
OrderCustomLineItemAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomLineItemAddedMessagePayload orderCustomLineItemAddedMessagePayload = OrderCustomLineItemAddedMessagePayload.builder()
.customLineItem(customLineItemBuilder -> customLineItemBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomLineItemAddedMessagePayload with checking for non-null required valuesbuilds OrderCustomLineItemAddedMessagePayload without checking for non-null required valuescustomLineItem
(CustomLineItem customLineItem) Custom Line Item that was added to the Order.Custom Line Item that was added to the Order.Custom Line Item that was added to the Order.of()
factory method for an instance of OrderCustomLineItemAddedMessagePayloadBuilderof
(OrderCustomLineItemAddedMessagePayload template) create builder for OrderCustomLineItemAddedMessagePayload instanceCustom Line Item that was added to the Order.
-
Constructor Details
-
OrderCustomLineItemAddedMessagePayloadBuilder
public OrderCustomLineItemAddedMessagePayloadBuilder()
-
-
Method Details
-
customLineItem
public OrderCustomLineItemAddedMessagePayloadBuilder customLineItem(Function<CustomLineItemBuilder, CustomLineItemBuilder> builder) Custom Line Item that was added to the Order.
- Parameters:
builder
- function to build the customLineItem value- Returns:
- Builder
-
withCustomLineItem
public OrderCustomLineItemAddedMessagePayloadBuilder withCustomLineItem(Function<CustomLineItemBuilder, CustomLineItem> builder) Custom Line Item that was added to the Order.
- Parameters:
builder
- function to build the customLineItem value- Returns:
- Builder
-
customLineItem
Custom Line Item that was added to the Order.
- Parameters:
customLineItem
- value to be set- Returns:
- Builder
-
getCustomLineItem
Custom Line Item that was added to the Order.
- Returns:
- customLineItem
-
build
builds OrderCustomLineItemAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomLineItemAddedMessagePayload>
- Returns:
- OrderCustomLineItemAddedMessagePayload
-
buildUnchecked
builds OrderCustomLineItemAddedMessagePayload without checking for non-null required values- Returns:
- OrderCustomLineItemAddedMessagePayload
-
of
factory method for an instance of OrderCustomLineItemAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomLineItemAddedMessagePayloadBuilder of(OrderCustomLineItemAddedMessagePayload template) create builder for OrderCustomLineItemAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-