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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductDiscountChangePredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductDiscountChangePredicateActionbuilder(ProductDiscountChangePredicateAction template) create builder for ProductDiscountChangePredicateAction instancecopyDeep()deepCopy(ProductDiscountChangePredicateAction template) factory method to create a deep copy of ProductDiscountChangePredicateAction@NotNull StringNew value to set.of()factory methodof(ProductDiscountChangePredicateAction template) factory method to create a shallow copy ProductDiscountChangePredicateActionvoidsetPredicate(String predicate) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangePredicateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountUpdateAction
getAction, withProductDiscountUpdateActionMethods 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
-
copyDeep
ProductDiscountChangePredicateAction copyDeep()- Specified by:
copyDeepin interfaceProductDiscountUpdateAction
-
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
-