Interface ShoppingListChangeLineItemsOrderAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
ShoppingListChangeLineItemsOrderAction
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListChangeLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListChangeLineItemsOrderActioncreate builder for ShoppingListChangeLineItemsOrderAction instancefactory method to create a deep copy of ShoppingListChangeLineItemsOrderActionAll existing ShoppingListLineItemid
s in the desired new order.of()
factory methodof
(ShoppingListChangeLineItemsOrderAction template) factory method to create a shallow copy ShoppingListChangeLineItemsOrderActionvoid
setLineItemOrder
(String... lineItemOrder) All existing ShoppingListLineItemid
s in the desired new order.void
setLineItemOrder
(List<String> lineItemOrder) All existing ShoppingListLineItemid
s in the desired new order.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListChangeLineItemsOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListChangeLineItemsOrderAction
(Function<ShoppingListChangeLineItemsOrderAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
CHANGE_LINE_ITEMS_ORDER
discriminator value for ShoppingListChangeLineItemsOrderAction- See Also:
-
-
Method Details
-
getLineItemOrder
All existing ShoppingListLineItem
id
s in the desired new order.- Returns:
- lineItemOrder
-
setLineItemOrder
All existing ShoppingListLineItem
id
s in the desired new order.- Parameters:
lineItemOrder
- values to be set
-
setLineItemOrder
All existing ShoppingListLineItem
id
s in the desired new order.- Parameters:
lineItemOrder
- values to be set
-
of
factory method- Returns:
- instance of ShoppingListChangeLineItemsOrderAction
-
of
factory method to create a shallow copy ShoppingListChangeLineItemsOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListChangeLineItemsOrderAction deepCopy(@Nullable ShoppingListChangeLineItemsOrderAction template) factory method to create a deep copy of ShoppingListChangeLineItemsOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListChangeLineItemsOrderAction- Returns:
- builder
-
builder
static ShoppingListChangeLineItemsOrderActionBuilder builder(ShoppingListChangeLineItemsOrderAction template) create builder for ShoppingListChangeLineItemsOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListChangeLineItemsOrderAction
default <T> T withShoppingListChangeLineItemsOrderAction(Function<ShoppingListChangeLineItemsOrderAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ShoppingListChangeLineItemsOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-