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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListChangeTextLineItemsOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListChangeTextLineItemsOrderActioncreate builder for ShoppingListChangeTextLineItemsOrderAction instancefactory method to create a deep copy of ShoppingListChangeTextLineItemsOrderActionMust contain all existing TextLineItemid
s in the desired new order.of()
factory methodof
(ShoppingListChangeTextLineItemsOrderAction template) factory method to create a shallow copy ShoppingListChangeTextLineItemsOrderActionvoid
setTextLineItemOrder
(String... textLineItemOrder) Must contain all existing TextLineItemid
s in the desired new order.void
setTextLineItemOrder
(List<String> textLineItemOrder) Must contain all existing TextLineItemid
s in the desired new order.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListChangeTextLineItemsOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListChangeTextLineItemsOrderAction
(Function<ShoppingListChangeTextLineItemsOrderAction, 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_TEXT_LINE_ITEMS_ORDER
discriminator value for ShoppingListChangeTextLineItemsOrderAction- See Also:
-
-
Method Details
-
getTextLineItemOrder
Must contain all existing TextLineItem
id
s in the desired new order.- Returns:
- textLineItemOrder
-
setTextLineItemOrder
Must contain all existing TextLineItem
id
s in the desired new order.- Parameters:
textLineItemOrder
- values to be set
-
setTextLineItemOrder
Must contain all existing TextLineItem
id
s 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
-
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
-