Interface ApprovalFlowApproval


public interface ApprovalFlowApproval
ApprovalFlowApproval
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 Details

    • getApprover

      @NotNull @Valid @NotNull @Valid Associate getApprover()

      Associate who approved the Approval Flow.

      Returns:
      approver
    • getApprovedAt

      @NotNull @NotNull ZonedDateTime getApprovedAt()

      Date and time (UTC) the Approval Flow was approved.

      Returns:
      approvedAt
    • setApprover

      void setApprover(Associate approver)

      Associate who approved the Approval Flow.

      Parameters:
      approver - value to be set
    • setApprovedAt

      void setApprovedAt(ZonedDateTime approvedAt)

      Date and time (UTC) the Approval Flow was approved.

      Parameters:
      approvedAt - value to be set
    • of

      static ApprovalFlowApproval 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

      static ApprovalFlowApprovalBuilder 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

      default <T> T withApprovalFlowApproval(Function<ApprovalFlowApproval,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowApproval> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference