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