Class OrderCustomLineItemQuantityChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomLineItemQuantityChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomLineItemQuantityChangedMessagePayload>
public class OrderCustomLineItemQuantityChangedMessagePayloadBuilder
extends Object
implements Builder<OrderCustomLineItemQuantityChangedMessagePayload>
OrderCustomLineItemQuantityChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomLineItemQuantityChangedMessagePayload orderCustomLineItemQuantityChangedMessagePayload = OrderCustomLineItemQuantityChangedMessagePayload.builder()
.customLineItemId("{customLineItemId}")
.quantity(0.3)
.oldQuantity(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomLineItemQuantityChangedMessagePayload with checking for non-null required valuesbuilds OrderCustomLineItemQuantityChangedMessagePayload without checking for non-null required valuescustomLineItemId
(String customLineItemId) Unique identifier of the Custom Line Item.customLineItemKey
(String customLineItemKey) User-defined unique identifier of the Custom Line Item.Unique identifier of the Custom Line Item.User-defined unique identifier of the Custom Line Item.Custom Line Item quantity before the Change Custom Line Item Quantity update action.Custom Line Item quantity after the Change Custom Line Item Quantity update action.of()
factory method for an instance of OrderCustomLineItemQuantityChangedMessagePayloadBuildercreate builder for OrderCustomLineItemQuantityChangedMessagePayload instanceoldQuantity
(Long oldQuantity) Custom Line Item quantity before the Change Custom Line Item Quantity update action.Custom Line Item quantity after the Change Custom Line Item Quantity update action.
-
Constructor Details
-
OrderCustomLineItemQuantityChangedMessagePayloadBuilder
public OrderCustomLineItemQuantityChangedMessagePayloadBuilder()
-
-
Method Details
-
customLineItemId
public OrderCustomLineItemQuantityChangedMessagePayloadBuilder customLineItemId(String customLineItemId) Unique identifier of the Custom Line Item.
- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderCustomLineItemQuantityChangedMessagePayloadBuilder customLineItemKey(@Nullable String customLineItemKey) User-defined unique identifier of the Custom Line Item.
- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
quantity
Custom Line Item quantity after the Change Custom Line Item Quantity update action.
- Parameters:
quantity
- value to be set- Returns:
- Builder
-
oldQuantity
Custom Line Item quantity before the Change Custom Line Item Quantity update action.
- Parameters:
oldQuantity
- 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
-
getQuantity
Custom Line Item quantity after the Change Custom Line Item Quantity update action.
- Returns:
- quantity
-
getOldQuantity
Custom Line Item quantity before the Change Custom Line Item Quantity update action.
- Returns:
- oldQuantity
-
build
builds OrderCustomLineItemQuantityChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomLineItemQuantityChangedMessagePayload>
- Returns:
- OrderCustomLineItemQuantityChangedMessagePayload
-
buildUnchecked
builds OrderCustomLineItemQuantityChangedMessagePayload without checking for non-null required values- Returns:
- OrderCustomLineItemQuantityChangedMessagePayload
-
of
factory method for an instance of OrderCustomLineItemQuantityChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomLineItemQuantityChangedMessagePayloadBuilder of(OrderCustomLineItemQuantityChangedMessagePayload template) create builder for OrderCustomLineItemQuantityChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-