Interface DiscountCodeSetCartPredicateAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetCartPredicateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetCartPredicateAction discountCodeSetCartPredicateAction = DiscountCodeSetCartPredicateAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeSetCartPredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeSetCartPredicateActionbuilder
(DiscountCodeSetCartPredicateAction template) create builder for DiscountCodeSetCartPredicateAction instancedeepCopy
(DiscountCodeSetCartPredicateAction template) factory method to create a deep copy of DiscountCodeSetCartPredicateActionValue to set.of()
factory methodof
(DiscountCodeSetCartPredicateAction template) factory method to create a shallow copy DiscountCodeSetCartPredicateActionvoid
setCartPredicate
(String cartPredicate) Value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetCartPredicateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CART_PREDICATE
discriminator value for DiscountCodeSetCartPredicateAction- See Also:
-
-
Method Details
-
getCartPredicate
String getCartPredicate()Value to set. If empty, any existing value will be removed.
- Returns:
- cartPredicate
-
setCartPredicate
Value to set. If empty, any existing value will be removed.
- Parameters:
cartPredicate
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetCartPredicateAction
-
of
factory method to create a shallow copy DiscountCodeSetCartPredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeSetCartPredicateAction deepCopy(@Nullable DiscountCodeSetCartPredicateAction template) factory method to create a deep copy of DiscountCodeSetCartPredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetCartPredicateAction- Returns:
- builder
-
builder
static DiscountCodeSetCartPredicateActionBuilder builder(DiscountCodeSetCartPredicateAction template) create builder for DiscountCodeSetCartPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetCartPredicateAction
default <T> T withDiscountCodeSetCartPredicateAction(Function<DiscountCodeSetCartPredicateAction, 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<DiscountCodeSetCartPredicateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-