Interface ShoppingListChangeTextLineItemsOrderAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
ShoppingListChangeTextLineItemsOrderAction
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()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListChangeTextLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListChangeTextLineItemsOrderActioncreate builder for ShoppingListChangeTextLineItemsOrderAction instancecopyDeep()factory method to create a deep copy of ShoppingListChangeTextLineItemsOrderActionMust contain all existing TextLineItemids in the desired new order.of()factory methodof(ShoppingListChangeTextLineItemsOrderAction template) factory method to create a shallow copy ShoppingListChangeTextLineItemsOrderActionvoidsetTextLineItemOrder(String... textLineItemOrder) Must contain all existing TextLineItemids in the desired new order.voidsetTextLineItemOrder(List<String> textLineItemOrder) Must contain all existing TextLineItemids in the desired new order.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListChangeTextLineItemsOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithShoppingListChangeTextLineItemsOrderAction(Function<ShoppingListChangeTextLineItemsOrderAction, 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_TEXT_LINE_ITEMS_ORDER
discriminator value for ShoppingListChangeTextLineItemsOrderAction- See Also:
-
-
Method Details
-
getTextLineItemOrder
Must contain all existing TextLineItem
ids in the desired new order.- Returns:
- textLineItemOrder
-
setTextLineItemOrder
Must contain all existing TextLineItem
ids in the desired new order.- Parameters:
textLineItemOrder- values to be set
-
setTextLineItemOrder
Must contain all existing TextLineItem
ids in the desired new order.- Parameters:
textLineItemOrder- values to be set
-
of
factory method- Returns:
- instance of ShoppingListChangeTextLineItemsOrderAction
-
of
static ShoppingListChangeTextLineItemsOrderAction of(ShoppingListChangeTextLineItemsOrderAction template) factory method to create a shallow copy ShoppingListChangeTextLineItemsOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListChangeTextLineItemsOrderAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
deepCopy
@Nullable static ShoppingListChangeTextLineItemsOrderAction deepCopy(@Nullable ShoppingListChangeTextLineItemsOrderAction template) factory method to create a deep copy of ShoppingListChangeTextLineItemsOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListChangeTextLineItemsOrderAction- Returns:
- builder
-
builder
static ShoppingListChangeTextLineItemsOrderActionBuilder builder(ShoppingListChangeTextLineItemsOrderAction template) create builder for ShoppingListChangeTextLineItemsOrderAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListChangeTextLineItemsOrderAction
default <T> T withShoppingListChangeTextLineItemsOrderAction(Function<ShoppingListChangeTextLineItemsOrderAction, 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<ShoppingListChangeTextLineItemsOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-