Class ShoppingListChangeTextLineItemsOrderActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListChangeTextLineItemsOrderActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListChangeTextLineItemsOrderAction>
public class ShoppingListChangeTextLineItemsOrderActionBuilder
extends Object
implements Builder<ShoppingListChangeTextLineItemsOrderAction>
ShoppingListChangeTextLineItemsOrderActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListChangeTextLineItemsOrderAction shoppingListChangeTextLineItemsOrderAction = ShoppingListChangeTextLineItemsOrderAction.builder()
.plusTextLineItemOrder(textLineItemOrderBuilder -> textLineItemOrderBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListChangeTextLineItemsOrderAction with checking for non-null required valuesbuilds ShoppingListChangeTextLineItemsOrderAction without checking for non-null required valuesMust contain all existing TextLineItemid
s in the desired new order.of()
factory method for an instance of ShoppingListChangeTextLineItemsOrderActionBuilderof
(ShoppingListChangeTextLineItemsOrderAction template) create builder for ShoppingListChangeTextLineItemsOrderAction instanceplusTextLineItemOrder
(String... textLineItemOrder) Must contain all existing TextLineItemid
s in the desired new order.textLineItemOrder
(String... textLineItemOrder) Must contain all existing TextLineItemid
s in the desired new order.textLineItemOrder
(List<String> textLineItemOrder) Must contain all existing TextLineItemid
s in the desired new order.
-
Constructor Details
-
ShoppingListChangeTextLineItemsOrderActionBuilder
public ShoppingListChangeTextLineItemsOrderActionBuilder()
-
-
Method Details
-
textLineItemOrder
public ShoppingListChangeTextLineItemsOrderActionBuilder textLineItemOrder(String... textLineItemOrder) Must contain all existing TextLineItem
id
s in the desired new order.- Parameters:
textLineItemOrder
- value to be set- Returns:
- Builder
-
textLineItemOrder
public ShoppingListChangeTextLineItemsOrderActionBuilder textLineItemOrder(List<String> textLineItemOrder) Must contain all existing TextLineItem
id
s in the desired new order.- Parameters:
textLineItemOrder
- value to be set- Returns:
- Builder
-
plusTextLineItemOrder
public ShoppingListChangeTextLineItemsOrderActionBuilder plusTextLineItemOrder(String... textLineItemOrder) Must contain all existing TextLineItem
id
s in the desired new order.- Parameters:
textLineItemOrder
- value to be set- Returns:
- Builder
-
getTextLineItemOrder
Must contain all existing TextLineItem
id
s in the desired new order.- Returns:
- textLineItemOrder
-
build
builds ShoppingListChangeTextLineItemsOrderAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListChangeTextLineItemsOrderAction>
- Returns:
- ShoppingListChangeTextLineItemsOrderAction
-
buildUnchecked
builds ShoppingListChangeTextLineItemsOrderAction without checking for non-null required values- Returns:
- ShoppingListChangeTextLineItemsOrderAction
-
of
factory method for an instance of ShoppingListChangeTextLineItemsOrderActionBuilder- Returns:
- builder
-
of
public static ShoppingListChangeTextLineItemsOrderActionBuilder of(ShoppingListChangeTextLineItemsOrderAction template) create builder for ShoppingListChangeTextLineItemsOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-