Class ApprovalRuleApproversSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRuleApproversSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleApproversSetMessagePayload>
public class ApprovalRuleApproversSetMessagePayloadBuilder
extends Object
implements Builder<ApprovalRuleApproversSetMessagePayload>
ApprovalRuleApproversSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleApproversSetMessagePayload approvalRuleApproversSetMessagePayload = ApprovalRuleApproversSetMessagePayload.builder()
.approvers(approversBuilder -> approversBuilder)
.oldApprovers(oldApproversBuilder -> oldApproversBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovers
(ApproverHierarchy approvers) Approver hierarchy of the ApprovalRule after the Set Approvers update action.Approver hierarchy of the ApprovalRule after the Set Approvers update action.build()
builds ApprovalRuleApproversSetMessagePayload with checking for non-null required valuesbuilds ApprovalRuleApproversSetMessagePayload without checking for non-null required valuesApprover hierarchy of the ApprovalRule after the Set Approvers update action.Approver hierarchy of the ApprovalRule before the Set Approvers update action.of()
factory method for an instance of ApprovalRuleApproversSetMessagePayloadBuilderof
(ApprovalRuleApproversSetMessagePayload template) create builder for ApprovalRuleApproversSetMessagePayload instanceoldApprovers
(ApproverHierarchy oldApprovers) Approver hierarchy of the ApprovalRule before the Set Approvers update action.Approver hierarchy of the ApprovalRule before the Set Approvers update action.Approver hierarchy of the ApprovalRule after the Set Approvers update action.Approver hierarchy of the ApprovalRule before the Set Approvers update action.
-
Constructor Details
-
ApprovalRuleApproversSetMessagePayloadBuilder
public ApprovalRuleApproversSetMessagePayloadBuilder()
-
-
Method Details
-
approvers
public ApprovalRuleApproversSetMessagePayloadBuilder approvers(Function<ApproverHierarchyBuilder, ApproverHierarchyBuilder> builder) Approver hierarchy of the ApprovalRule after the Set Approvers update action.
- Parameters:
builder
- function to build the approvers value- Returns:
- Builder
-
withApprovers
public ApprovalRuleApproversSetMessagePayloadBuilder withApprovers(Function<ApproverHierarchyBuilder, ApproverHierarchy> builder) Approver hierarchy of the ApprovalRule after the Set Approvers update action.
- Parameters:
builder
- function to build the approvers value- Returns:
- Builder
-
approvers
Approver hierarchy of the ApprovalRule after the Set Approvers update action.
- Parameters:
approvers
- value to be set- Returns:
- Builder
-
oldApprovers
public ApprovalRuleApproversSetMessagePayloadBuilder oldApprovers(Function<ApproverHierarchyBuilder, ApproverHierarchyBuilder> builder) Approver hierarchy of the ApprovalRule before the Set Approvers update action.
- Parameters:
builder
- function to build the oldApprovers value- Returns:
- Builder
-
withOldApprovers
public ApprovalRuleApproversSetMessagePayloadBuilder withOldApprovers(Function<ApproverHierarchyBuilder, ApproverHierarchy> builder) Approver hierarchy of the ApprovalRule before the Set Approvers update action.
- Parameters:
builder
- function to build the oldApprovers value- Returns:
- Builder
-
oldApprovers
Approver hierarchy of the ApprovalRule before the Set Approvers update action.
- Parameters:
oldApprovers
- value to be set- Returns:
- Builder
-
getApprovers
Approver hierarchy of the ApprovalRule after the Set Approvers update action.
- Returns:
- approvers
-
getOldApprovers
Approver hierarchy of the ApprovalRule before the Set Approvers update action.
- Returns:
- oldApprovers
-
build
builds ApprovalRuleApproversSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleApproversSetMessagePayload>
- Returns:
- ApprovalRuleApproversSetMessagePayload
-
buildUnchecked
builds ApprovalRuleApproversSetMessagePayload without checking for non-null required values- Returns:
- ApprovalRuleApproversSetMessagePayload
-
of
factory method for an instance of ApprovalRuleApproversSetMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalRuleApproversSetMessagePayloadBuilder of(ApprovalRuleApproversSetMessagePayload template) create builder for ApprovalRuleApproversSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-