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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyShoppingListChangeLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyShoppingListChangeLineItemsOrderActioncreate builder for MyShoppingListChangeLineItemsOrderAction instancecopyDeep()factory method to create a deep copy of MyShoppingListChangeLineItemsOrderActionof()factory methodof(MyShoppingListChangeLineItemsOrderAction template) factory method to create a shallow copy MyShoppingListChangeLineItemsOrderActionvoidsetLineItemOrder(String... lineItemOrder) voidsetLineItemOrder(List<String> lineItemOrder) static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListChangeLineItemsOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyShoppingListChangeLineItemsOrderAction(Function<MyShoppingListChangeLineItemsOrderAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateActionMethods 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
ids of the ShoppingList in the desired new order.- Returns:
- lineItemOrder
-
setLineItemOrder
All existing ShoppingListLineItem
ids of the ShoppingList in the desired new order.- Parameters:
lineItemOrder- values to be set
-
setLineItemOrder
All existing ShoppingListLineItem
ids 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
-
copyDeep
MyShoppingListChangeLineItemsOrderAction copyDeep()- Specified by:
copyDeepin interfaceMyShoppingListUpdateAction
-
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
-