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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountChangeCartPredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountChangeCartPredicateActionbuilder
(CartDiscountChangeCartPredicateAction template) create builder for CartDiscountChangeCartPredicateAction instancefactory method to create a deep copy of CartDiscountChangeCartPredicateAction@NotNull String
New value to set.of()
factory methodof
(CartDiscountChangeCartPredicateAction template) factory method to create a shallow copy CartDiscountChangeCartPredicateActionvoid
setCartPredicate
(String cartPredicate) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeCartPredicateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateAction
Methods 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
-
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
-