Interface ApprovalRuleSetPredicateAction
- All Superinterfaces:
ApprovalRuleUpdateAction
Setting the Order Predicate for an Approval Rule generates an ApprovalRulePredicateSet Message.
Example to create an instance using the builder pattern
ApprovalRuleSetPredicateAction approvalRuleSetPredicateAction = ApprovalRuleSetPredicateAction.builder()
.predicate("{predicate}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleSetPredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleSetPredicateActionbuilder
(ApprovalRuleSetPredicateAction template) create builder for ApprovalRuleSetPredicateAction instancedeepCopy
(ApprovalRuleSetPredicateAction template) factory method to create a deep copy of ApprovalRuleSetPredicateAction@NotNull String
A valid Order Predicate to set for the Approval Rule.of()
factory methodof
(ApprovalRuleSetPredicateAction template) factory method to create a shallow copy ApprovalRuleSetPredicateActionvoid
setPredicate
(String predicate) A valid Order Predicate to set for the Approval Rule.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetPredicateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.approval_rule.ApprovalRuleUpdateAction
getAction, withApprovalRuleUpdateAction
-
Field Details
-
SET_PREDICATE
discriminator value for ApprovalRuleSetPredicateAction- See Also:
-
-
Method Details
-
getPredicate
A valid Order Predicate to set for the Approval Rule.
- Returns:
- predicate
-
setPredicate
A valid Order Predicate to set for the Approval Rule.
- Parameters:
predicate
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetPredicateAction
-
of
factory method to create a shallow copy ApprovalRuleSetPredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleSetPredicateAction deepCopy(@Nullable ApprovalRuleSetPredicateAction template) factory method to create a deep copy of ApprovalRuleSetPredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetPredicateAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetPredicateAction
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<ApprovalRuleSetPredicateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-