Interface CartSetKeyAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetKeyAction cartSetKeyAction = CartSetKeyAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartSetKeyActionBuilder
builder()
builder factory method for CartSetKeyActionstatic CartSetKeyActionBuilder
builder
(CartSetKeyAction template) create builder for CartSetKeyAction instancestatic CartSetKeyAction
deepCopy
(CartSetKeyAction template) factory method to create a deep copy of CartSetKeyActiongetKey()
Value to set.static CartSetKeyAction
of()
factory methodstatic CartSetKeyAction
of
(CartSetKeyAction template) factory method to create a shallow copy CartSetKeyActionstatic CartSetKeyAction
ofUnset()
void
Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartSetKeyAction
(Function<CartSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_KEY
discriminator value for CartSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. If empty, any existing key will be removed.
- Returns:
- key
-
setKey
Value to set. If empty, any existing key will be removed.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of CartSetKeyAction
-
of
factory method to create a shallow copy CartSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetKeyAction- Returns:
- builder
-
builder
create builder for CartSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetKeyAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-