Class ApprovalFlowCompletedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalFlowCompletedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalFlowCompletedMessagePayload>
public class ApprovalFlowCompletedMessagePayloadBuilder
extends Object
implements Builder<ApprovalFlowCompletedMessagePayload>
ApprovalFlowCompletedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalFlowCompletedMessagePayload approvalFlowCompletedMessagePayload = ApprovalFlowCompletedMessagePayload.builder()
.status(ApprovalFlowStatus.PENDING)
.order(orderBuilder -> orderBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalFlowCompletedMessagePayload with checking for non-null required valuesbuilds ApprovalFlowCompletedMessagePayload without checking for non-null required valuesgetOrder()
Reference to the Order related to the completed Approval Flow.Final status of the Approval Flow.of()
factory method for an instance of ApprovalFlowCompletedMessagePayloadBuilderof
(ApprovalFlowCompletedMessagePayload template) create builder for ApprovalFlowCompletedMessagePayload instanceorder
(OrderReference order) Reference to the Order related to the completed Approval Flow.Reference to the Order related to the completed Approval Flow.status
(ApprovalFlowStatus status) Final status of the Approval Flow.withOrder
(Function<OrderReferenceBuilder, OrderReference> builder) Reference to the Order related to the completed Approval Flow.
-
Constructor Details
-
ApprovalFlowCompletedMessagePayloadBuilder
public ApprovalFlowCompletedMessagePayloadBuilder()
-
-
Method Details
-
status
Final status of the Approval Flow.
- Parameters:
status
- value to be set- Returns:
- Builder
-
order
public ApprovalFlowCompletedMessagePayloadBuilder order(Function<OrderReferenceBuilder, OrderReferenceBuilder> builder) Reference to the Order related to the completed Approval Flow.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
withOrder
public ApprovalFlowCompletedMessagePayloadBuilder withOrder(Function<OrderReferenceBuilder, OrderReference> builder) Reference to the Order related to the completed Approval Flow.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
order
Reference to the Order related to the completed Approval Flow.
- Parameters:
order
- value to be set- Returns:
- Builder
-
getStatus
Final status of the Approval Flow.
- Returns:
- status
-
getOrder
Reference to the Order related to the completed Approval Flow.
- Returns:
- order
-
build
builds ApprovalFlowCompletedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalFlowCompletedMessagePayload>
- Returns:
- ApprovalFlowCompletedMessagePayload
-
buildUnchecked
builds ApprovalFlowCompletedMessagePayload without checking for non-null required values- Returns:
- ApprovalFlowCompletedMessagePayload
-
of
factory method for an instance of ApprovalFlowCompletedMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalFlowCompletedMessagePayloadBuilder of(ApprovalFlowCompletedMessagePayload template) create builder for ApprovalFlowCompletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-