Interface CartDiscountChangeCartPredicateAction
- All Superinterfaces:
CartDiscountUpdateAction,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountChangeCartPredicateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeCartPredicateAction cartDiscountChangeCartPredicateAction = CartDiscountChangeCartPredicateAction.builder()
.cartPredicate("{cartPredicate}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountChangeCartPredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountChangeCartPredicateActionbuilder(CartDiscountChangeCartPredicateAction template) create builder for CartDiscountChangeCartPredicateAction instancecopyDeep()factory method to create a deep copy of CartDiscountChangeCartPredicateAction@NotNull StringNew value to set.of()factory methodof(CartDiscountChangeCartPredicateAction template) factory method to create a shallow copy CartDiscountChangeCartPredicateActionvoidsetCartPredicate(String cartPredicate) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeCartPredicateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_CART_PREDICATE
discriminator value for CartDiscountChangeCartPredicateAction- See Also:
-
-
Method Details
-
getCartPredicate
New value to set.
- Returns:
- cartPredicate
-
setCartPredicate
New value to set.
- Parameters:
cartPredicate- value to be set
-
of
factory method- Returns:
- instance of CartDiscountChangeCartPredicateAction
-
of
factory method to create a shallow copy CartDiscountChangeCartPredicateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartDiscountChangeCartPredicateAction copyDeep()- Specified by:
copyDeepin interfaceCartDiscountUpdateAction
-
deepCopy
@Nullable static CartDiscountChangeCartPredicateAction deepCopy(@Nullable CartDiscountChangeCartPredicateAction template) factory method to create a deep copy of CartDiscountChangeCartPredicateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountChangeCartPredicateAction- Returns:
- builder
-
builder
static CartDiscountChangeCartPredicateActionBuilder builder(CartDiscountChangeCartPredicateAction template) create builder for CartDiscountChangeCartPredicateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountChangeCartPredicateAction
default <T> T withCartDiscountChangeCartPredicateAction(Function<CartDiscountChangeCartPredicateAction, 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<CartDiscountChangeCartPredicateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-