Interface CartChangeCustomLineItemPriceModeAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
CartChangeCustomLineItemPriceModeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeCustomLineItemPriceModeAction cartChangeCustomLineItemPriceModeAction = CartChangeCustomLineItemPriceModeAction.builder()
.mode(CustomLineItemPriceMode.STANDARD)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartChangeCustomLineItemPriceModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartChangeCustomLineItemPriceModeActioncreate builder for CartChangeCustomLineItemPriceModeAction instancecopyDeep()factory method to create a deep copy of CartChangeCustomLineItemPriceModeActionidof the CustomLineItem to update.keyof the CustomLineItem to update.@NotNull CustomLineItemPriceModegetMode()New value to set.of()factory methodof(CartChangeCustomLineItemPriceModeAction template) factory method to create a shallow copy CartChangeCustomLineItemPriceModeActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.voidNew value to set.static com.fasterxml.jackson.core.type.TypeReference<CartChangeCustomLineItemPriceModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartChangeCustomLineItemPriceModeAction(Function<CartChangeCustomLineItemPriceModeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_CUSTOM_LINE_ITEM_PRICE_MODE
discriminator value for CartChangeCustomLineItemPriceModeAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getMode
New value to set. Must not be empty.
- Returns:
- mode
-
setCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set
-
setMode
New value to set. Must not be empty.
- Parameters:
mode- value to be set
-
of
factory method- Returns:
- instance of CartChangeCustomLineItemPriceModeAction
-
of
factory method to create a shallow copy CartChangeCustomLineItemPriceModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartChangeCustomLineItemPriceModeAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartChangeCustomLineItemPriceModeAction deepCopy(@Nullable CartChangeCustomLineItemPriceModeAction template) factory method to create a deep copy of CartChangeCustomLineItemPriceModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartChangeCustomLineItemPriceModeAction- Returns:
- builder
-
builder
static CartChangeCustomLineItemPriceModeActionBuilder builder(CartChangeCustomLineItemPriceModeAction template) create builder for CartChangeCustomLineItemPriceModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartChangeCustomLineItemPriceModeAction
default <T> T withCartChangeCustomLineItemPriceModeAction(Function<CartChangeCustomLineItemPriceModeAction, 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<CartChangeCustomLineItemPriceModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-