Interface ApprovalRuleSetApproversAction
- All Superinterfaces:
ApprovalRuleUpdateAction
Setting the approvers for an Approval Rule generates an ApprovalRuleApproversSet Message.
Example to create an instance using the builder pattern
ApprovalRuleSetApproversAction approvalRuleSetApproversAction = ApprovalRuleSetApproversAction.builder()
.approvers(approversBuilder -> approversBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleSetApproversAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleSetApproversActionbuilder
(ApprovalRuleSetApproversAction template) create builder for ApprovalRuleSetApproversAction instancedeepCopy
(ApprovalRuleSetApproversAction template) factory method to create a deep copy of ApprovalRuleSetApproversAction@NotNull @Valid ApproverHierarchyDraft
New approvers to set for the Approval Rule.of()
factory methodof
(ApprovalRuleSetApproversAction template) factory method to create a shallow copy ApprovalRuleSetApproversActionvoid
setApprovers
(ApproverHierarchyDraft approvers) New approvers to set for the Approval Rule.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetApproversAction>
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_APPROVERS
discriminator value for ApprovalRuleSetApproversAction- See Also:
-
-
Method Details
-
getApprovers
New approvers to set for the Approval Rule.
- Returns:
- approvers
-
setApprovers
New approvers to set for the Approval Rule.
- Parameters:
approvers
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetApproversAction
-
of
factory method to create a shallow copy ApprovalRuleSetApproversAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleSetApproversAction deepCopy(@Nullable ApprovalRuleSetApproversAction template) factory method to create a deep copy of ApprovalRuleSetApproversAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetApproversAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetApproversAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetApproversAction
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<ApprovalRuleSetApproversAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-