Class ApprovalFlowCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalFlowCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalFlowCreatedMessagePayload>
public class ApprovalFlowCreatedMessagePayloadBuilder
extends Object
implements Builder<ApprovalFlowCreatedMessagePayload>
ApprovalFlowCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalFlowCreatedMessagePayload approvalFlowCreatedMessagePayload = ApprovalFlowCreatedMessagePayload.builder()
.approvalFlow(approvalFlowBuilder -> approvalFlowBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovalFlow
(ApprovalFlow approvalFlow) The Approval Flow that was created.The Approval Flow that was created.build()
builds ApprovalFlowCreatedMessagePayload with checking for non-null required valuesbuilds ApprovalFlowCreatedMessagePayload without checking for non-null required valuesThe Approval Flow that was created.of()
factory method for an instance of ApprovalFlowCreatedMessagePayloadBuilderof
(ApprovalFlowCreatedMessagePayload template) create builder for ApprovalFlowCreatedMessagePayload instanceThe Approval Flow that was created.
-
Constructor Details
-
ApprovalFlowCreatedMessagePayloadBuilder
public ApprovalFlowCreatedMessagePayloadBuilder()
-
-
Method Details
-
approvalFlow
public ApprovalFlowCreatedMessagePayloadBuilder approvalFlow(Function<ApprovalFlowBuilder, ApprovalFlowBuilder> builder) The Approval Flow that was created.
- Parameters:
builder
- function to build the approvalFlow value- Returns:
- Builder
-
withApprovalFlow
public ApprovalFlowCreatedMessagePayloadBuilder withApprovalFlow(Function<ApprovalFlowBuilder, ApprovalFlow> builder) The Approval Flow that was created.
- Parameters:
builder
- function to build the approvalFlow value- Returns:
- Builder
-
approvalFlow
The Approval Flow that was created.
- Parameters:
approvalFlow
- value to be set- Returns:
- Builder
-
getApprovalFlow
The Approval Flow that was created.
- Returns:
- approvalFlow
-
build
builds ApprovalFlowCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalFlowCreatedMessagePayload>
- Returns:
- ApprovalFlowCreatedMessagePayload
-
buildUnchecked
builds ApprovalFlowCreatedMessagePayload without checking for non-null required values- Returns:
- ApprovalFlowCreatedMessagePayload
-
of
factory method for an instance of ApprovalFlowCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalFlowCreatedMessagePayloadBuilder of(ApprovalFlowCreatedMessagePayload template) create builder for ApprovalFlowCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-