Interface ApprovalFlowRejection
public interface ApprovalFlowRejection
ApprovalFlowRejection
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()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApprovalFlowRejectionBuilderbuilder()builder factory method for ApprovalFlowRejectionstatic ApprovalFlowRejectionBuilderbuilder(ApprovalFlowRejection template) create builder for ApprovalFlowRejection instancecopyDeep()static ApprovalFlowRejectiondeepCopy(ApprovalFlowRejection template) factory method to create a deep copy of ApprovalFlowRejectionThe reason for the rejection of the Approval Flow.@NotNull ZonedDateTimeDate and time (UTC) the Approval Flow was rejected.@NotNull @Valid AssociateAssociate who rejected the Approval Flow.static ApprovalFlowRejectionof()factory methodstatic ApprovalFlowRejectionof(ApprovalFlowRejection template) factory method to create a shallow copy ApprovalFlowRejectionvoidThe reason for the rejection of the Approval Flow.voidsetRejectedAt(ZonedDateTime rejectedAt) Date and time (UTC) the Approval Flow was rejected.voidsetRejecter(Associate rejecter) Associate who rejected the Approval Flow.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowRejection>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getRejecter
Associate who rejected the Approval Flow.
- Returns:
- rejecter
-
getRejectedAt
Date and time (UTC) the Approval Flow was rejected.
- Returns:
- rejectedAt
-
getReason
String getReason()The reason for the rejection of the Approval Flow.
- Returns:
- reason
-
setRejecter
Associate who rejected the Approval Flow.
- Parameters:
rejecter- value to be set
-
setRejectedAt
Date and time (UTC) the Approval Flow was rejected.
- Parameters:
rejectedAt- value to be set
-
setReason
The reason for the rejection of the Approval Flow.
- Parameters:
reason- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowRejection
-
of
factory method to create a shallow copy ApprovalFlowRejection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApprovalFlowRejection copyDeep() -
deepCopy
factory method to create a deep copy of ApprovalFlowRejection- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowRejection- Returns:
- builder
-
builder
create builder for ApprovalFlowRejection instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowRejection
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
-