Interface ApprovalRuleApproversSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Approvers update action.
Example to create an instance using the builder pattern
ApprovalRuleApproversSetMessagePayload approvalRuleApproversSetMessagePayload = ApprovalRuleApproversSetMessagePayload.builder()
.approvers(approversBuilder -> approversBuilder)
.oldApprovers(oldApproversBuilder -> oldApproversBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleApproversSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleApproversSetMessagePayloadcreate builder for ApprovalRuleApproversSetMessagePayload instancefactory method to create a deep copy of ApprovalRuleApproversSetMessagePayload@NotNull @Valid ApproverHierarchy
Approver hierarchy of the ApprovalRule after the Set Approvers update action.@NotNull @Valid ApproverHierarchy
Approver hierarchy of the ApprovalRule before the Set Approvers update action.of()
factory methodof
(ApprovalRuleApproversSetMessagePayload template) factory method to create a shallow copy ApprovalRuleApproversSetMessagePayloadvoid
setApprovers
(ApproverHierarchy approvers) Approver hierarchy of the ApprovalRule after the Set Approvers update action.void
setOldApprovers
(ApproverHierarchy oldApprovers) Approver hierarchy of the ApprovalRule before the Set Approvers update action.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleApproversSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withApprovalRuleApproversSetMessagePayload
(Function<ApprovalRuleApproversSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
APPROVAL_RULE_APPROVERS_SET
discriminator value for ApprovalRuleApproversSetMessagePayload- See Also:
-
-
Method Details
-
getApprovers
Approver hierarchy of the ApprovalRule after the Set Approvers update action.
- Returns:
- approvers
-
getOldApprovers
Approver hierarchy of the ApprovalRule before the Set Approvers update action.
- Returns:
- oldApprovers
-
setApprovers
Approver hierarchy of the ApprovalRule after the Set Approvers update action.
- Parameters:
approvers
- value to be set
-
setOldApprovers
Approver hierarchy of the ApprovalRule before the Set Approvers update action.
- Parameters:
oldApprovers
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleApproversSetMessagePayload
-
of
factory method to create a shallow copy ApprovalRuleApproversSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleApproversSetMessagePayload deepCopy(@Nullable ApprovalRuleApproversSetMessagePayload template) factory method to create a deep copy of ApprovalRuleApproversSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleApproversSetMessagePayload- Returns:
- builder
-
builder
static ApprovalRuleApproversSetMessagePayloadBuilder builder(ApprovalRuleApproversSetMessagePayload template) create builder for ApprovalRuleApproversSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleApproversSetMessagePayload
default <T> T withApprovalRuleApproversSetMessagePayload(Function<ApprovalRuleApproversSetMessagePayload, 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<ApprovalRuleApproversSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-