Class CartChangeLineItemsOrderActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartChangeLineItemsOrderActionBuilder
- All Implemented Interfaces:
Builder<CartChangeLineItemsOrderAction>
public class CartChangeLineItemsOrderActionBuilder
extends Object
implements Builder<CartChangeLineItemsOrderAction>
CartChangeLineItemsOrderActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeLineItemsOrderAction cartChangeLineItemsOrderAction = CartChangeLineItemsOrderAction.builder()
.plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartChangeLineItemsOrderAction with checking for non-null required valuesbuilds CartChangeLineItemsOrderAction without checking for non-null required valuesAll existing LineItemid
s in the desired new order.lineItemOrder
(String... lineItemOrder) All existing LineItemid
s in the desired new order.lineItemOrder
(List<String> lineItemOrder) All existing LineItemid
s in the desired new order.of()
factory method for an instance of CartChangeLineItemsOrderActionBuilderof
(CartChangeLineItemsOrderAction template) create builder for CartChangeLineItemsOrderAction instanceplusLineItemOrder
(String... lineItemOrder) All existing LineItemid
s in the desired new order.
-
Constructor Details
-
CartChangeLineItemsOrderActionBuilder
public CartChangeLineItemsOrderActionBuilder()
-
-
Method Details
-
lineItemOrder
All existing LineItem
id
s in the desired new order.- Parameters:
lineItemOrder
- value to be set- Returns:
- Builder
-
lineItemOrder
All existing LineItem
id
s in the desired new order.- Parameters:
lineItemOrder
- value to be set- Returns:
- Builder
-
plusLineItemOrder
All existing LineItem
id
s in the desired new order.- Parameters:
lineItemOrder
- value to be set- Returns:
- Builder
-
getLineItemOrder
All existing LineItem
id
s in the desired new order.- Returns:
- lineItemOrder
-
build
builds CartChangeLineItemsOrderAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartChangeLineItemsOrderAction>
- Returns:
- CartChangeLineItemsOrderAction
-
buildUnchecked
builds CartChangeLineItemsOrderAction without checking for non-null required values- Returns:
- CartChangeLineItemsOrderAction
-
of
factory method for an instance of CartChangeLineItemsOrderActionBuilder- Returns:
- builder
-
of
create builder for CartChangeLineItemsOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-