Interface ProductDiscountSetKeyAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetKeyAction productDiscountSetKeyAction = ProductDiscountSetKeyAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountSetKeyActionbuilder
(ProductDiscountSetKeyAction template) create builder for ProductDiscountSetKeyAction instancestatic ProductDiscountSetKeyAction
deepCopy
(ProductDiscountSetKeyAction template) factory method to create a deep copy of ProductDiscountSetKeyActiongetKey()
Value to set.static ProductDiscountSetKeyAction
of()
factory methodstatic ProductDiscountSetKeyAction
of
(ProductDiscountSetKeyAction template) factory method to create a shallow copy ProductDiscountSetKeyActionstatic ProductDiscountSetKeyAction
ofUnset()
void
Value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountSetKeyAction>
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
-
SET_KEY
discriminator value for ProductDiscountSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
setKey
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountSetKeyAction
-
of
factory method to create a shallow copy ProductDiscountSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountSetKeyAction deepCopy(@Nullable ProductDiscountSetKeyAction template) factory method to create a deep copy of ProductDiscountSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountSetKeyAction- Returns:
- builder
-
builder
create builder for ProductDiscountSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountSetKeyAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-