Package com.commercetools.api.models.me
Interface MyShoppingListChangeLineItemsOrderAction
- All Superinterfaces:
MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListChangeLineItemsOrderAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeLineItemsOrderAction myShoppingListChangeLineItemsOrderAction = MyShoppingListChangeLineItemsOrderAction.builder()
.plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListChangeLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListChangeLineItemsOrderActioncreate builder for MyShoppingListChangeLineItemsOrderAction instancefactory method to create a deep copy of MyShoppingListChangeLineItemsOrderActionAll existing ShoppingListLineItemid
s of the ShoppingList in the desired new order.of()
factory methodof
(MyShoppingListChangeLineItemsOrderAction template) factory method to create a shallow copy MyShoppingListChangeLineItemsOrderActionvoid
setLineItemOrder
(String... lineItemOrder) All existing ShoppingListLineItemid
s of the ShoppingList in the desired new order.void
setLineItemOrder
(List<String> lineItemOrder) All existing ShoppingListLineItemid
s of the ShoppingList in the desired new order.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListChangeLineItemsOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyShoppingListChangeLineItemsOrderAction
(Function<MyShoppingListChangeLineItemsOrderAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_LINE_ITEMS_ORDER
discriminator value for MyShoppingListChangeLineItemsOrderAction- See Also:
-
-
Method Details
-
getLineItemOrder
All existing ShoppingListLineItem
id
s of the ShoppingList in the desired new order.- Returns:
- lineItemOrder
-
setLineItemOrder
All existing ShoppingListLineItem
id
s of the ShoppingList in the desired new order.- Parameters:
lineItemOrder
- values to be set
-
setLineItemOrder
All existing ShoppingListLineItem
id
s of the ShoppingList in the desired new order.- Parameters:
lineItemOrder
- values to be set
-
of
factory method- Returns:
- instance of MyShoppingListChangeLineItemsOrderAction
-
of
static MyShoppingListChangeLineItemsOrderAction of(MyShoppingListChangeLineItemsOrderAction template) factory method to create a shallow copy MyShoppingListChangeLineItemsOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyShoppingListChangeLineItemsOrderAction deepCopy(@Nullable MyShoppingListChangeLineItemsOrderAction template) factory method to create a deep copy of MyShoppingListChangeLineItemsOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListChangeLineItemsOrderAction- Returns:
- builder
-
builder
static MyShoppingListChangeLineItemsOrderActionBuilder builder(MyShoppingListChangeLineItemsOrderAction template) create builder for MyShoppingListChangeLineItemsOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListChangeLineItemsOrderAction
default <T> T withMyShoppingListChangeLineItemsOrderAction(Function<MyShoppingListChangeLineItemsOrderAction, 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<MyShoppingListChangeLineItemsOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-