Interface Capture.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Capture.Builder,Capture>, SdkBuilder<Capture.Builder,Capture>, SdkPojo
Enclosing class:
Capture

@Mutable @NotThreadSafe public static interface Capture.Builder extends SdkPojo, CopyableBuilder<Capture.Builder,Capture>
  • Method Details

    • captureId

      Capture.Builder captureId(String captureId)

      The AgentCore identifier for this capture.

      Parameters:
      captureId - The AgentCore identifier for this capture.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureAmount

      Capture.Builder captureAmount(PaymentIntentAmount captureAmount)

      The amount captured.

      Parameters:
      captureAmount - The amount captured.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureAmount

      default Capture.Builder captureAmount(Consumer<PaymentIntentAmount.Builder> captureAmount)

      The amount captured.

      This is a convenience method that creates an instance of the PaymentIntentAmount.Builder avoiding the need to create one manually via PaymentIntentAmount.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to captureAmount(PaymentIntentAmount).

      Parameters:
      captureAmount - a consumer that will call methods on PaymentIntentAmount.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Capture.Builder status(String status)

      The status of this capture.

      Parameters:
      status - The status of this capture.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of this capture.

      Parameters:
      status - The status of this capture.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • partnerCaptureReference

      Capture.Builder partnerCaptureReference(String partnerCaptureReference)

      The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).

      Parameters:
      partnerCaptureReference - The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Capture.Builder createdAt(Instant createdAt)

      The timestamp when this capture was created.

      Parameters:
      createdAt - The timestamp when this capture was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Capture.Builder updatedAt(Instant updatedAt)

      The timestamp when this capture was last updated.

      Parameters:
      updatedAt - The timestamp when this capture was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.