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