Class ApprovalFlowApprovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ApprovalFlowApprovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ApprovalFlowApprovedMessagePayload>
public class ApprovalFlowApprovedMessagePayloadBuilder
extends Object
implements Builder<ApprovalFlowApprovedMessagePayload>
ApprovalFlowApprovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalFlowApprovedMessagePayload approvalFlowApprovedMessagePayload = ApprovalFlowApprovedMessagePayload.builder()
.associate(associateBuilder -> associateBuilder)
.order(orderBuilder -> orderBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociate
(CustomerReference associate) Reference to the Customer who approved the Approval Flow.Reference to the Customer who approved the Approval Flow.build()
builds ApprovalFlowApprovedMessagePayload with checking for non-null required valuesbuilds ApprovalFlowApprovedMessagePayload without checking for non-null required valuesReference to the Customer who approved the Approval Flow.getOrder()
Reference to the Order that received the approval.of()
factory method for an instance of ApprovalFlowApprovedMessagePayloadBuilderof
(ApprovalFlowApprovedMessagePayload template) create builder for ApprovalFlowApprovedMessagePayload instanceorder
(OrderReference order) Reference to the Order that received the approval.Reference to the Order that received the approval.Reference to the Customer who approved the Approval Flow.withOrder
(Function<OrderReferenceBuilder, OrderReference> builder) Reference to the Order that received the approval.
-
Constructor Details
-
ApprovalFlowApprovedMessagePayloadBuilder
public ApprovalFlowApprovedMessagePayloadBuilder()
-
-
Method Details
-
associate
public ApprovalFlowApprovedMessagePayloadBuilder associate(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) Reference to the Customer who approved the Approval Flow.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
withAssociate
public ApprovalFlowApprovedMessagePayloadBuilder withAssociate(Function<CustomerReferenceBuilder, CustomerReference> builder) Reference to the Customer who approved the Approval Flow.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
associate
Reference to the Customer who approved the Approval Flow.
- Parameters:
associate
- value to be set- Returns:
- Builder
-
order
public ApprovalFlowApprovedMessagePayloadBuilder order(Function<OrderReferenceBuilder, OrderReferenceBuilder> builder) Reference to the Order that received the approval.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
withOrder
public ApprovalFlowApprovedMessagePayloadBuilder withOrder(Function<OrderReferenceBuilder, OrderReference> builder) Reference to the Order that received the approval.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
order
Reference to the Order that received the approval.
- Parameters:
order
- value to be set- Returns:
- Builder
-
getAssociate
Reference to the Customer who approved the Approval Flow.
- Returns:
- associate
-
getOrder
Reference to the Order that received the approval.
- Returns:
- order
-
build
builds ApprovalFlowApprovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalFlowApprovedMessagePayload>
- Returns:
- ApprovalFlowApprovedMessagePayload
-
buildUnchecked
builds ApprovalFlowApprovedMessagePayload without checking for non-null required values- Returns:
- ApprovalFlowApprovedMessagePayload
-
of
factory method for an instance of ApprovalFlowApprovedMessagePayloadBuilder- Returns:
- builder
-
of
public static ApprovalFlowApprovedMessagePayloadBuilder of(ApprovalFlowApprovedMessagePayload template) create builder for ApprovalFlowApprovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-