Class OrderCustomLineItemRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomLineItemRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomLineItemRemovedMessagePayload>
public class OrderCustomLineItemRemovedMessagePayloadBuilder
extends Object
implements Builder<OrderCustomLineItemRemovedMessagePayload>
OrderCustomLineItemRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomLineItemRemovedMessagePayload orderCustomLineItemRemovedMessagePayload = OrderCustomLineItemRemovedMessagePayload.builder()
.customLineItemId("{customLineItemId}")
.customLineItem(customLineItemBuilder -> customLineItemBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomLineItemRemovedMessagePayload with checking for non-null required valuesbuilds OrderCustomLineItemRemovedMessagePayload without checking for non-null required valuescustomLineItem
(CustomLineItem customLineItem) Custom Line Item that was removed from the Order.Custom Line Item that was removed from the Order.customLineItemId
(String customLineItemId) Unique identifier of the Custom Line Item.customLineItemKey
(String customLineItemKey) User-defined unique identifier of the Custom Line Item.Custom Line Item that was removed from the Order.Unique identifier of the Custom Line Item.User-defined unique identifier of the Custom Line Item.of()
factory method for an instance of OrderCustomLineItemRemovedMessagePayloadBuilderof
(OrderCustomLineItemRemovedMessagePayload template) create builder for OrderCustomLineItemRemovedMessagePayload instanceCustom Line Item that was removed from the Order.
-
Constructor Details
-
OrderCustomLineItemRemovedMessagePayloadBuilder
public OrderCustomLineItemRemovedMessagePayloadBuilder()
-
-
Method Details
-
customLineItemId
Unique identifier of the Custom Line Item.
- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderCustomLineItemRemovedMessagePayloadBuilder customLineItemKey(@Nullable String customLineItemKey) User-defined unique identifier of the Custom Line Item.
- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
customLineItem
public OrderCustomLineItemRemovedMessagePayloadBuilder customLineItem(Function<CustomLineItemBuilder, CustomLineItemBuilder> builder) Custom Line Item that was removed from the Order.
- Parameters:
builder
- function to build the customLineItem value- Returns:
- Builder
-
withCustomLineItem
public OrderCustomLineItemRemovedMessagePayloadBuilder withCustomLineItem(Function<CustomLineItemBuilder, CustomLineItem> builder) Custom Line Item that was removed from the Order.
- Parameters:
builder
- function to build the customLineItem value- Returns:
- Builder
-
customLineItem
public OrderCustomLineItemRemovedMessagePayloadBuilder customLineItem(CustomLineItem customLineItem) Custom Line Item that was removed from the Order.
- Parameters:
customLineItem
- value to be set- Returns:
- Builder
-
getCustomLineItemId
Unique identifier of the Custom Line Item.
- Returns:
- customLineItemId
-
getCustomLineItemKey
User-defined unique identifier of the Custom Line Item.
- Returns:
- customLineItemKey
-
getCustomLineItem
Custom Line Item that was removed from the Order.
- Returns:
- customLineItem
-
build
builds OrderCustomLineItemRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomLineItemRemovedMessagePayload>
- Returns:
- OrderCustomLineItemRemovedMessagePayload
-
buildUnchecked
builds OrderCustomLineItemRemovedMessagePayload without checking for non-null required values- Returns:
- OrderCustomLineItemRemovedMessagePayload
-
of
factory method for an instance of OrderCustomLineItemRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomLineItemRemovedMessagePayloadBuilder of(OrderCustomLineItemRemovedMessagePayload template) create builder for OrderCustomLineItemRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-