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