Interface ApprovalRulePredicateSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Predicate update action.
Example to create an instance using the builder pattern
ApprovalRulePredicateSetMessagePayload approvalRulePredicateSetMessagePayload = ApprovalRulePredicateSetMessagePayload.builder()
.predicate("{predicate}")
.oldPredicate("{oldPredicate}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ApprovalRulePredicateSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ApprovalRulePredicateSetMessagePayloadcreate builder for ApprovalRulePredicateSetMessagePayload instancecopyDeep()factory method to create a deep copy of ApprovalRulePredicateSetMessagePayload@NotNull StringName of the ApprovalRule before the Set Predicate update action.@NotNull StringName of the ApprovalRule after the Set Predicate update action.of()factory methodof(ApprovalRulePredicateSetMessagePayload template) factory method to create a shallow copy ApprovalRulePredicateSetMessagePayloadvoidsetOldPredicate(String oldPredicate) Name of the ApprovalRule before the Set Predicate update action.voidsetPredicate(String predicate) Name of the ApprovalRule after the Set Predicate update action.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRulePredicateSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithApprovalRulePredicateSetMessagePayload(Function<ApprovalRulePredicateSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
APPROVAL_RULE_PREDICATE_SET
discriminator value for ApprovalRulePredicateSetMessagePayload- See Also:
-
-
Method Details
-
getPredicate
Name of the ApprovalRule after the Set Predicate update action.
- Returns:
- predicate
-
getOldPredicate
Name of the ApprovalRule before the Set Predicate update action.
- Returns:
- oldPredicate
-
setPredicate
Name of the ApprovalRule after the Set Predicate update action.
- Parameters:
predicate- value to be set
-
setOldPredicate
Name of the ApprovalRule before the Set Predicate update action.
- Parameters:
oldPredicate- value to be set
-
of
factory method- Returns:
- instance of ApprovalRulePredicateSetMessagePayload
-
of
factory method to create a shallow copy ApprovalRulePredicateSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApprovalRulePredicateSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static ApprovalRulePredicateSetMessagePayload deepCopy(@Nullable ApprovalRulePredicateSetMessagePayload template) factory method to create a deep copy of ApprovalRulePredicateSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRulePredicateSetMessagePayload- Returns:
- builder
-
builder
static ApprovalRulePredicateSetMessagePayloadBuilder builder(ApprovalRulePredicateSetMessagePayload template) create builder for ApprovalRulePredicateSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRulePredicateSetMessagePayload
default <T> T withApprovalRulePredicateSetMessagePayload(Function<ApprovalRulePredicateSetMessagePayload, 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<ApprovalRulePredicateSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-