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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountChangeNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountChangeNameActionbuilder(CartDiscountChangeNameAction template) create builder for CartDiscountChangeNameAction instancecopyDeep()static CartDiscountChangeNameActiondeepCopy(CartDiscountChangeNameAction template) factory method to create a deep copy of CartDiscountChangeNameAction@NotNull @Valid LocalizedStringgetName()New value to set.static CartDiscountChangeNameActionof()factory methodstatic CartDiscountChangeNameActionof(CartDiscountChangeNameAction template) factory method to create a shallow copy CartDiscountChangeNameActionvoidsetName(LocalizedString name) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateActionMethods 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
-
copyDeep
CartDiscountChangeNameAction copyDeep()- Specified by:
copyDeepin interfaceCartDiscountUpdateAction
-
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
-