Interface ProductDiscountChangeNameAction
- All Superinterfaces:
ProductDiscountUpdateAction,ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountChangeNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeNameAction productDiscountChangeNameAction = ProductDiscountChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductDiscountChangeNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductDiscountChangeNameActionbuilder(ProductDiscountChangeNameAction template) create builder for ProductDiscountChangeNameAction instancecopyDeep()deepCopy(ProductDiscountChangeNameAction template) factory method to create a deep copy of ProductDiscountChangeNameAction@NotNull @Valid LocalizedStringgetName()New value to set.of()factory methodof(ProductDiscountChangeNameAction template) factory method to create a shallow copy ProductDiscountChangeNameActionvoidsetName(LocalizedString name) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangeNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountUpdateAction
getAction, withProductDiscountUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_NAME
discriminator value for ProductDiscountChangeNameAction- See Also:
-
-
Method Details
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
setName
New value to set. Must not be empty.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountChangeNameAction
-
of
factory method to create a shallow copy ProductDiscountChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductDiscountChangeNameAction copyDeep()- Specified by:
copyDeepin interfaceProductDiscountUpdateAction
-
deepCopy
@Nullable static ProductDiscountChangeNameAction deepCopy(@Nullable ProductDiscountChangeNameAction template) factory method to create a deep copy of ProductDiscountChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountChangeNameAction- Returns:
- builder
-
builder
create builder for ProductDiscountChangeNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountChangeNameAction
default <T> T withProductDiscountChangeNameAction(Function<ProductDiscountChangeNameAction, 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<ProductDiscountChangeNameAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-