Interface ApprovalFlowRejection


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

    • getRejecter

      @NotNull @Valid @NotNull @Valid Associate getRejecter()

      Associate who rejected the Approval Flow.

      Returns:
      rejecter
    • getRejectedAt

      @NotNull @NotNull ZonedDateTime 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

      void setRejecter(Associate rejecter)

      Associate who rejected the Approval Flow.

      Parameters:
      rejecter - value to be set
    • setRejectedAt

      void setRejectedAt(ZonedDateTime rejectedAt)

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

      Parameters:
      rejectedAt - value to be set
    • setReason

      void setReason(String reason)

      The reason for the rejection of the Approval Flow.

      Parameters:
      reason - value to be set
    • of

      static ApprovalFlowRejection 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
    • deepCopy

      factory method to create a deep copy of ApprovalFlowRejection
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

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

      default <T> T withApprovalFlowRejection(Function<ApprovalFlowRejection,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<ApprovalFlowRejection> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference