Interface ProductDiscountChangePredicateAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountChangePredicateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangePredicateAction productDiscountChangePredicateAction = ProductDiscountChangePredicateAction.builder()
.predicate("{predicate}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountChangePredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountChangePredicateActionbuilder
(ProductDiscountChangePredicateAction template) create builder for ProductDiscountChangePredicateAction instancedeepCopy
(ProductDiscountChangePredicateAction template) factory method to create a deep copy of ProductDiscountChangePredicateAction@NotNull String
New value to set.of()
factory methodof
(ProductDiscountChangePredicateAction template) factory method to create a shallow copy ProductDiscountChangePredicateActionvoid
setPredicate
(String predicate) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangePredicateAction>
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_PREDICATE
discriminator value for ProductDiscountChangePredicateAction- See Also:
-
-
Method Details
-
getPredicate
New value to set. Must be a valid ProductDiscount predicate.
- Returns:
- predicate
-
setPredicate
New value to set. Must be a valid ProductDiscount predicate.
- Parameters:
predicate
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountChangePredicateAction
-
of
factory method to create a shallow copy ProductDiscountChangePredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountChangePredicateAction deepCopy(@Nullable ProductDiscountChangePredicateAction template) factory method to create a deep copy of ProductDiscountChangePredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountChangePredicateAction- Returns:
- builder
-
builder
static ProductDiscountChangePredicateActionBuilder builder(ProductDiscountChangePredicateAction template) create builder for ProductDiscountChangePredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountChangePredicateAction
default <T> T withProductDiscountChangePredicateAction(Function<ProductDiscountChangePredicateAction, 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<ProductDiscountChangePredicateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-