Interface CartDiscountChangeNameAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountChangeNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeNameAction cartDiscountChangeNameAction = CartDiscountChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountChangeNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountChangeNameActionbuilder
(CartDiscountChangeNameAction template) create builder for CartDiscountChangeNameAction instancestatic CartDiscountChangeNameAction
deepCopy
(CartDiscountChangeNameAction template) factory method to create a deep copy of CartDiscountChangeNameAction@NotNull @Valid LocalizedString
getName()
New value to set.static CartDiscountChangeNameAction
of()
factory methodstatic CartDiscountChangeNameAction
of
(CartDiscountChangeNameAction template) factory method to create a shallow copy CartDiscountChangeNameActionvoid
setName
(LocalizedString name) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeNameAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_NAME
discriminator value for CartDiscountChangeNameAction- See Also:
-
-
Method Details
-
getName
New value to set.
- Returns:
- name
-
setName
New value to set.
- Parameters:
name
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountChangeNameAction
-
of
factory method to create a shallow copy CartDiscountChangeNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountChangeNameAction deepCopy(@Nullable CartDiscountChangeNameAction template) factory method to create a deep copy of CartDiscountChangeNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountChangeNameAction- Returns:
- builder
-
builder
create builder for CartDiscountChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountChangeNameAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-