Interface DiscountCodeSetNameAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetNameAction discountCodeSetNameAction = DiscountCodeSetNameAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeSetNameActionbuilder
(DiscountCodeSetNameAction template) create builder for DiscountCodeSetNameAction instancestatic DiscountCodeSetNameAction
deepCopy
(DiscountCodeSetNameAction template) factory method to create a deep copy of DiscountCodeSetNameAction@Valid LocalizedString
getName()
Value to set.static DiscountCodeSetNameAction
of()
factory methodstatic DiscountCodeSetNameAction
of
(DiscountCodeSetNameAction template) factory method to create a shallow copy DiscountCodeSetNameActionvoid
setName
(LocalizedString name) Value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetNameAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_NAME
discriminator value for DiscountCodeSetNameAction- See Also:
-
-
Method Details
-
getName
Value to set. If empty, any existing value will be removed.
- Returns:
- name
-
setName
Value to set. If empty, any existing value will be removed.
- Parameters:
name
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetNameAction
-
of
factory method to create a shallow copy DiscountCodeSetNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DiscountCodeSetNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetNameAction- Returns:
- builder
-
builder
create builder for DiscountCodeSetNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetNameAction
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
-