Interface ApprovalFlowApproval
public interface ApprovalFlowApproval
ApprovalFlowApproval
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalFlowApproval approvalFlowApproval = ApprovalFlowApproval.builder()
.approver(approverBuilder -> approverBuilder)
.approvedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApprovalFlowApprovalBuilder
builder()
builder factory method for ApprovalFlowApprovalstatic ApprovalFlowApprovalBuilder
builder
(ApprovalFlowApproval template) create builder for ApprovalFlowApproval instancestatic ApprovalFlowApproval
deepCopy
(ApprovalFlowApproval template) factory method to create a deep copy of ApprovalFlowApproval@NotNull ZonedDateTime
Date and time (UTC) the Approval Flow was approved.@NotNull @Valid Associate
Associate who approved the Approval Flow.static ApprovalFlowApproval
of()
factory methodstatic ApprovalFlowApproval
of
(ApprovalFlowApproval template) factory method to create a shallow copy ApprovalFlowApprovalvoid
setApprovedAt
(ZonedDateTime approvedAt) Date and time (UTC) the Approval Flow was approved.void
setApprover
(Associate approver) Associate who approved the Approval Flow.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowApproval>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withApprovalFlowApproval
(Function<ApprovalFlowApproval, T> helper) accessor map function
-
Method Details
-
getApprover
Associate who approved the Approval Flow.
- Returns:
- approver
-
getApprovedAt
Date and time (UTC) the Approval Flow was approved.
- Returns:
- approvedAt
-
setApprover
Associate who approved the Approval Flow.
- Parameters:
approver
- value to be set
-
setApprovedAt
Date and time (UTC) the Approval Flow was approved.
- Parameters:
approvedAt
- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowApproval
-
of
factory method to create a shallow copy ApprovalFlowApproval- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ApprovalFlowApproval- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowApproval- Returns:
- builder
-
builder
create builder for ApprovalFlowApproval instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowApproval
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-