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