Class ApprovalRuleCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalRuleCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalRuleCreatedMessagePayload>
public class ApprovalRuleCreatedMessagePayloadBuilder
extends Object
implements Builder<ApprovalRuleCreatedMessagePayload>
ApprovalRuleCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleCreatedMessagePayload approvalRuleCreatedMessagePayload = ApprovalRuleCreatedMessagePayload.builder()
.approvalRule(approvalRuleBuilder -> approvalRuleBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovalRule
(ApprovalRule approvalRule) The Approval Rule that was created.The Approval Rule that was created.build()
builds ApprovalRuleCreatedMessagePayload with checking for non-null required valuesbuilds ApprovalRuleCreatedMessagePayload without checking for non-null required valuesThe Approval Rule that was created.of()
factory method for an instance of ApprovalRuleCreatedMessagePayloadBuilderof
(ApprovalRuleCreatedMessagePayload template) create builder for ApprovalRuleCreatedMessagePayload instanceThe Approval Rule that was created.
-
Constructor Details
-
ApprovalRuleCreatedMessagePayloadBuilder
public ApprovalRuleCreatedMessagePayloadBuilder()
-
-
Method Details
-
approvalRule
public ApprovalRuleCreatedMessagePayloadBuilder approvalRule(Function<ApprovalRuleBuilder, ApprovalRuleBuilder> builder) The Approval Rule that was created.
- Parameters:
builder
- function to build the approvalRule value- Returns:
- Builder
-
withApprovalRule
public ApprovalRuleCreatedMessagePayloadBuilder withApprovalRule(Function<ApprovalRuleBuilder, ApprovalRule> builder) The Approval Rule that was created.
- Parameters:
builder
- function to build the approvalRule value- Returns:
- Builder
-
approvalRule
The Approval Rule that was created.
- Parameters:
approvalRule
- value to be set- Returns:
- Builder
-
getApprovalRule
The Approval Rule that was created.
- Returns:
- approvalRule
-
build
builds ApprovalRuleCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalRuleCreatedMessagePayload>
- Returns:
- ApprovalRuleCreatedMessagePayload
-
buildUnchecked
builds ApprovalRuleCreatedMessagePayload without checking for non-null required values- Returns:
- ApprovalRuleCreatedMessagePayload
-
of
factory method for an instance of ApprovalRuleCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalRuleCreatedMessagePayloadBuilder of(ApprovalRuleCreatedMessagePayload template) create builder for ApprovalRuleCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-