Class ApprovalRuleSetRequestersActionBuilder
java.lang.Object
com.commercetools.api.models.approval_rule.ApprovalRuleSetRequestersActionBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleSetRequestersAction>
public class ApprovalRuleSetRequestersActionBuilder
extends Object
implements Builder<ApprovalRuleSetRequestersAction>
ApprovalRuleSetRequestersActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleSetRequestersAction approvalRuleSetRequestersAction = ApprovalRuleSetRequestersAction.builder()
.plusRequesters(requestersBuilder -> requestersBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNew requesters to set for the Approval Rule.build()
builds ApprovalRuleSetRequestersAction with checking for non-null required valuesbuilds ApprovalRuleSetRequestersAction without checking for non-null required valuesNew requesters to set for the Approval Rule.of()
factory method for an instance of ApprovalRuleSetRequestersActionBuilderof
(ApprovalRuleSetRequestersAction template) create builder for ApprovalRuleSetRequestersAction instanceplusRequesters
(RuleRequesterDraft... requesters) New requesters to set for the Approval Rule.New requesters to set for the Approval Rule.requesters
(RuleRequesterDraft... requesters) New requesters to set for the Approval Rule.requesters
(List<RuleRequesterDraft> requesters) New requesters to set for the Approval Rule.New requesters to set for the Approval Rule.New requesters to set for the Approval Rule.
-
Constructor Details
-
ApprovalRuleSetRequestersActionBuilder
public ApprovalRuleSetRequestersActionBuilder()
-
-
Method Details
-
requesters
New requesters to set for the Approval Rule.
- Parameters:
requesters
- value to be set- Returns:
- Builder
-
requesters
New requesters to set for the Approval Rule.
- Parameters:
requesters
- value to be set- Returns:
- Builder
-
plusRequesters
New requesters to set for the Approval Rule.
- Parameters:
requesters
- value to be set- Returns:
- Builder
-
plusRequesters
public ApprovalRuleSetRequestersActionBuilder plusRequesters(Function<RuleRequesterDraftBuilder, RuleRequesterDraftBuilder> builder) New requesters to set for the Approval Rule.
- Parameters:
builder
- function to build the requesters value- Returns:
- Builder
-
withRequesters
public ApprovalRuleSetRequestersActionBuilder withRequesters(Function<RuleRequesterDraftBuilder, RuleRequesterDraftBuilder> builder) New requesters to set for the Approval Rule.
- Parameters:
builder
- function to build the requesters value- Returns:
- Builder
-
addRequesters
public ApprovalRuleSetRequestersActionBuilder addRequesters(Function<RuleRequesterDraftBuilder, RuleRequesterDraft> builder) New requesters to set for the Approval Rule.
- Parameters:
builder
- function to build the requesters value- Returns:
- Builder
-
setRequesters
public ApprovalRuleSetRequestersActionBuilder setRequesters(Function<RuleRequesterDraftBuilder, RuleRequesterDraft> builder) New requesters to set for the Approval Rule.
- Parameters:
builder
- function to build the requesters value- Returns:
- Builder
-
getRequesters
New requesters to set for the Approval Rule.
- Returns:
- requesters
-
build
builds ApprovalRuleSetRequestersAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleSetRequestersAction>
- Returns:
- ApprovalRuleSetRequestersAction
-
buildUnchecked
builds ApprovalRuleSetRequestersAction without checking for non-null required values- Returns:
- ApprovalRuleSetRequestersAction
-
of
factory method for an instance of ApprovalRuleSetRequestersActionBuilder- Returns:
- builder
-
of
create builder for ApprovalRuleSetRequestersAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-