Class ApprovalFlowRejectionBuilder

java.lang.Object
com.commercetools.api.models.approval_flow.ApprovalFlowRejectionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ApprovalFlowRejection>

public class ApprovalFlowRejectionBuilder extends Object implements io.vrap.rmf.base.client.Builder<ApprovalFlowRejection>
ApprovalFlowRejectionBuilder
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 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

      public ApprovalFlowRejectionBuilder rejecter(Associate rejecter)

      Associate who rejected the Approval Flow.

      Parameters:
      rejecter - value to be set
      Returns:
      Builder
    • rejectedAt

      public ApprovalFlowRejectionBuilder rejectedAt(ZonedDateTime rejectedAt)

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

      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

      public Associate getRejecter()

      Associate who rejected the Approval Flow.

      Returns:
      rejecter
    • getRejectedAt

      public ZonedDateTime getRejectedAt()

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

      Returns:
      rejectedAt
    • getReason

      @Nullable public String getReason()

      The reason for the rejection of the Approval Flow.

      Returns:
      reason
    • build

      public ApprovalFlowRejection build()
      builds ApprovalFlowRejection with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ApprovalFlowRejection>
      Returns:
      ApprovalFlowRejection
    • buildUnchecked

      public ApprovalFlowRejection buildUnchecked()
      builds ApprovalFlowRejection without checking for non-null required values
      Returns:
      ApprovalFlowRejection
    • of

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