Interface ApprovalRuleSetRequestersAction
- All Superinterfaces:
ApprovalRuleUpdateAction
Sets the requesters for an Approval Rule generates an ApprovalRuleRequestersSet Message.
Example to create an instance using the builder pattern
ApprovalRuleSetRequestersAction approvalRuleSetRequestersAction = ApprovalRuleSetRequestersAction.builder()
.plusRequesters(requestersBuilder -> requestersBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleSetRequestersAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleSetRequestersActionbuilder
(ApprovalRuleSetRequestersAction template) create builder for ApprovalRuleSetRequestersAction instancedeepCopy
(ApprovalRuleSetRequestersAction template) factory method to create a deep copy of ApprovalRuleSetRequestersAction@NotNull @Valid List<RuleRequesterDraft>
New requesters to set for the Approval Rule.of()
factory methodof
(ApprovalRuleSetRequestersAction template) factory method to create a shallow copy ApprovalRuleSetRequestersActionvoid
setRequesters
(RuleRequesterDraft... requesters) New requesters to set for the Approval Rule.void
setRequesters
(List<RuleRequesterDraft> requesters) New requesters to set for the Approval Rule.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleSetRequestersAction>
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_REQUESTERS
discriminator value for ApprovalRuleSetRequestersAction- See Also:
-
-
Method Details
-
getRequesters
New requesters to set for the Approval Rule.
- Returns:
- requesters
-
setRequesters
New requesters to set for the Approval Rule.
- Parameters:
requesters
- values to be set
-
setRequesters
New requesters to set for the Approval Rule.
- Parameters:
requesters
- values to be set
-
of
factory method- Returns:
- instance of ApprovalRuleSetRequestersAction
-
of
factory method to create a shallow copy ApprovalRuleSetRequestersAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleSetRequestersAction deepCopy(@Nullable ApprovalRuleSetRequestersAction template) factory method to create a deep copy of ApprovalRuleSetRequestersAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleSetRequestersAction- Returns:
- builder
-
builder
create builder for ApprovalRuleSetRequestersAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleSetRequestersAction
default <T> T withApprovalRuleSetRequestersAction(Function<ApprovalRuleSetRequestersAction, 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<ApprovalRuleSetRequestersAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-