Interface ProductDiscountChangeValueAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
- All Known Implementing Classes:
ProductDiscountChangeValueActionImpl
ProductDiscountChangeValueAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeValueAction productDiscountChangeValueAction = ProductDiscountChangeValueAction.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountChangeValueAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountChangeValueActionbuilder
(ProductDiscountChangeValueAction template) create builder for ProductDiscountChangeValueAction instancedeepCopy
(ProductDiscountChangeValueAction template) factory method to create a deep copy of ProductDiscountChangeValueAction@NotNull @Valid ProductDiscountValueDraft
getValue()
New value to set.of()
factory methodof
(ProductDiscountChangeValueAction template) factory method to create a shallow copy ProductDiscountChangeValueActionvoid
New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangeValueAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountUpdateAction
getAction, withProductDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_VALUE
discriminator value for ProductDiscountChangeValueAction- See Also:
-
-
Method Details
-
getValue
New value to set. Must not be empty.
- Returns:
- value
-
setValue
New value to set. Must not be empty.
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountChangeValueAction
-
of
factory method to create a shallow copy ProductDiscountChangeValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountChangeValueAction deepCopy(@Nullable ProductDiscountChangeValueAction template) factory method to create a deep copy of ProductDiscountChangeValueAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountChangeValueAction- Returns:
- builder
-
builder
create builder for ProductDiscountChangeValueAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountChangeValueAction
default <T> T withProductDiscountChangeValueAction(Function<ProductDiscountChangeValueAction, 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<ProductDiscountChangeValueAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-