Interface DiscountCodeSetCustomTypeAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetCustomTypeAction discountCodeSetCustomTypeAction = DiscountCodeSetCustomTypeAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeSetCustomTypeActionbuilder
(DiscountCodeSetCustomTypeAction template) create builder for DiscountCodeSetCustomTypeAction instancedeepCopy
(DiscountCodeSetCustomTypeAction template) factory method to create a deep copy of DiscountCodeSetCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the DiscountCode.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the DiscountCode with Custom Fields.of()
factory methodof
(DiscountCodeSetCustomTypeAction template) factory method to create a shallow copy DiscountCodeSetCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the DiscountCode.void
Defines the Type that extends the DiscountCode with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetCustomTypeAction>
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_CUSTOM_TYPE
discriminator value for DiscountCodeSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the DiscountCode with Custom Fields. If absent, any existing Type and Custom Fields are removed from the DiscountCode.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the DiscountCode.
- Returns:
- fields
-
setType
Defines the Type that extends the DiscountCode with Custom Fields. If absent, any existing Type and Custom Fields are removed from the DiscountCode.
- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the DiscountCode.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetCustomTypeAction
-
of
factory method to create a shallow copy DiscountCodeSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeSetCustomTypeAction deepCopy(@Nullable DiscountCodeSetCustomTypeAction template) factory method to create a deep copy of DiscountCodeSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetCustomTypeAction- Returns:
- builder
-
builder
create builder for DiscountCodeSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetCustomTypeAction
default <T> T withDiscountCodeSetCustomTypeAction(Function<DiscountCodeSetCustomTypeAction, 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<DiscountCodeSetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-