Class ApprovalRuleSetApproversActionBuilder
java.lang.Object
com.commercetools.api.models.approval_rule.ApprovalRuleSetApproversActionBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleSetApproversAction>
public class ApprovalRuleSetApproversActionBuilder
extends Object
implements Builder<ApprovalRuleSetApproversAction>
ApprovalRuleSetApproversActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleSetApproversAction approvalRuleSetApproversAction = ApprovalRuleSetApproversAction.builder()
.approvers(approversBuilder -> approversBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovers
(ApproverHierarchyDraft approvers) New approvers to set for the Approval Rule.New approvers to set for the Approval Rule.build()
builds ApprovalRuleSetApproversAction with checking for non-null required valuesbuilds ApprovalRuleSetApproversAction without checking for non-null required valuesNew approvers to set for the Approval Rule.of()
factory method for an instance of ApprovalRuleSetApproversActionBuilderof
(ApprovalRuleSetApproversAction template) create builder for ApprovalRuleSetApproversAction instanceNew approvers to set for the Approval Rule.
-
Constructor Details
-
ApprovalRuleSetApproversActionBuilder
public ApprovalRuleSetApproversActionBuilder()
-
-
Method Details
-
approvers
public ApprovalRuleSetApproversActionBuilder approvers(Function<ApproverHierarchyDraftBuilder, ApproverHierarchyDraftBuilder> builder) New approvers to set for the Approval Rule.
- Parameters:
builder
- function to build the approvers value- Returns:
- Builder
-
withApprovers
public ApprovalRuleSetApproversActionBuilder withApprovers(Function<ApproverHierarchyDraftBuilder, ApproverHierarchyDraft> builder) New approvers to set for the Approval Rule.
- Parameters:
builder
- function to build the approvers value- Returns:
- Builder
-
approvers
New approvers to set for the Approval Rule.
- Parameters:
approvers
- value to be set- Returns:
- Builder
-
getApprovers
New approvers to set for the Approval Rule.
- Returns:
- approvers
-
build
builds ApprovalRuleSetApproversAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleSetApproversAction>
- Returns:
- ApprovalRuleSetApproversAction
-
buildUnchecked
builds ApprovalRuleSetApproversAction without checking for non-null required values- Returns:
- ApprovalRuleSetApproversAction
-
of
factory method for an instance of ApprovalRuleSetApproversActionBuilder- Returns:
- builder
-
of
create builder for ApprovalRuleSetApproversAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-