Class RuleApproverDraftBuilder
java.lang.Object
com.commercetools.api.models.approval_rule.RuleApproverDraftBuilder
- All Implemented Interfaces:
Builder<RuleApproverDraft>
RuleApproverDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RuleApproverDraft ruleApproverDraft = RuleApproverDraft.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociateRole
(AssociateRoleResourceIdentifier associateRole) Any Associate with this Role can approve.associateRole
(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifierBuilder> builder) Any Associate with this Role can approve.build()
builds RuleApproverDraft with checking for non-null required valuesbuilds RuleApproverDraft without checking for non-null required valuesAny Associate with this Role can approve.static RuleApproverDraftBuilder
of()
factory method for an instance of RuleApproverDraftBuilderstatic RuleApproverDraftBuilder
of
(RuleApproverDraft template) create builder for RuleApproverDraft instancewithAssociateRole
(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifier> builder) Any Associate with this Role can approve.
-
Constructor Details
-
RuleApproverDraftBuilder
public RuleApproverDraftBuilder()
-
-
Method Details
-
associateRole
public RuleApproverDraftBuilder associateRole(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifierBuilder> builder) Any Associate with this Role can approve.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public RuleApproverDraftBuilder withAssociateRole(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifier> builder) Any Associate with this Role can approve.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
associateRole
Any Associate with this Role can approve.
- Parameters:
associateRole
- value to be set- Returns:
- Builder
-
getAssociateRole
Any Associate with this Role can approve.
- Returns:
- associateRole
-
build
builds RuleApproverDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<RuleApproverDraft>
- Returns:
- RuleApproverDraft
-
buildUnchecked
builds RuleApproverDraft without checking for non-null required values- Returns:
- RuleApproverDraft
-
of
factory method for an instance of RuleApproverDraftBuilder- Returns:
- builder
-
of
create builder for RuleApproverDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-