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 Summary
Modifier and TypeMethodDescriptiondefault Capture.BuildercaptureAmount(Consumer<PaymentIntentAmount.Builder> captureAmount) The amount captured.captureAmount(PaymentIntentAmount captureAmount) The amount captured.The AgentCore identifier for this capture.The timestamp when this capture was created.partnerCaptureReference(String partnerCaptureReference) The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).The status of this capture.status(CaptureStatus status) The status of this capture.The timestamp when this capture was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
The amount captured.
- Parameters:
captureAmount- The amount captured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureAmount
The amount captured.
This is a convenience method that creates an instance of thePaymentIntentAmount.Builderavoiding the need to create one manually viaPaymentIntentAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocaptureAmount(PaymentIntentAmount).- Parameters:
captureAmount- a consumer that will call methods onPaymentIntentAmount.Builder- 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:
-
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
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
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
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.
-