Class ApprovalFlowRejectionBuilder
java.lang.Object
com.commercetools.api.models.approval_flow.ApprovalFlowRejectionBuilder
- All Implemented Interfaces:
Builder<ApprovalFlowRejection>
ApprovalFlowRejectionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalFlowRejection approvalFlowRejection = ApprovalFlowRejection.builder()
.rejecter(rejecterBuilder -> rejecterBuilder)
.rejectedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ApprovalFlowRejection with checking for non-null required valuesbuilds ApprovalFlowRejection without checking for non-null required valuesThe reason for the rejection of the Approval Flow.Date and time (UTC) the Approval Flow was rejected.Associate who rejected the Approval Flow.static ApprovalFlowRejectionBuilder
of()
factory method for an instance of ApprovalFlowRejectionBuilderstatic ApprovalFlowRejectionBuilder
of
(ApprovalFlowRejection template) create builder for ApprovalFlowRejection instanceThe reason for the rejection of the Approval Flow.rejectedAt
(ZonedDateTime rejectedAt) Date and time (UTC) the Approval Flow was rejected.Associate who rejected the Approval Flow.rejecter
(Function<AssociateBuilder, AssociateBuilder> builder) Associate who rejected the Approval Flow.withRejecter
(Function<AssociateBuilder, Associate> builder) Associate who rejected the Approval Flow.
-
Constructor Details
-
ApprovalFlowRejectionBuilder
public ApprovalFlowRejectionBuilder()
-
-
Method Details
-
rejecter
Associate who rejected the Approval Flow.
- Parameters:
builder
- function to build the rejecter value- Returns:
- Builder
-
withRejecter
Associate who rejected the Approval Flow.
- Parameters:
builder
- function to build the rejecter value- Returns:
- Builder
-
rejecter
Associate who rejected the Approval Flow.
- Parameters:
rejecter
- value to be set- Returns:
- Builder
-
rejectedAt
Date and time (UTC) the Approval Flow was rejected.
- Parameters:
rejectedAt
- value to be set- Returns:
- Builder
-
reason
The reason for the rejection of the Approval Flow.
- Parameters:
reason
- value to be set- Returns:
- Builder
-
getRejecter
Associate who rejected the Approval Flow.
- Returns:
- rejecter
-
getRejectedAt
Date and time (UTC) the Approval Flow was rejected.
- Returns:
- rejectedAt
-
getReason
The reason for the rejection of the Approval Flow.
- Returns:
- reason
-
build
builds ApprovalFlowRejection with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApprovalFlowRejection>
- Returns:
- ApprovalFlowRejection
-
buildUnchecked
builds ApprovalFlowRejection without checking for non-null required values- Returns:
- ApprovalFlowRejection
-
of
factory method for an instance of ApprovalFlowRejectionBuilder- Returns:
- builder
-
of
create builder for ApprovalFlowRejection instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-