Class ApprovalRuleDraftBuilder

java.lang.Object
com.commercetools.api.models.approval_rule.ApprovalRuleDraftBuilder
All Implemented Interfaces:
Builder<ApprovalRuleDraft>

public class ApprovalRuleDraftBuilder extends Object implements Builder<ApprovalRuleDraft>
ApprovalRuleDraftBuilder
Example to create an instance using the builder pattern

     ApprovalRuleDraft approvalRuleDraft = ApprovalRuleDraft.builder()
             .name("{name}")
             .status(ApprovalRuleStatus.ACTIVE)
             .predicate("{predicate}")
             .approvers(approversBuilder -> approversBuilder)
             .plusRequesters(requestersBuilder -> requestersBuilder)
             .build()