Interface CapturePaymentIntentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<CapturePaymentIntentResponse.Builder,,CapturePaymentIntentResponse> SdkBuilder<CapturePaymentIntentResponse.Builder,,CapturePaymentIntentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CapturePaymentIntentResponse
@Mutable
@NotThreadSafe
public static interface CapturePaymentIntentResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<CapturePaymentIntentResponse.Builder,CapturePaymentIntentResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapture(Consumer<Capture.Builder> capture) The capture that was created.The capture that was created.paymentIntent(Consumer<PaymentIntent.Builder> paymentIntent) The updated payment intent (status CAPTURED or PARTIALLY_CAPTURED; capturedAmount rolled up).paymentIntent(PaymentIntent paymentIntent) The updated payment intent (status CAPTURED or PARTIALLY_CAPTURED; capturedAmount rolled up).Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
paymentIntent
The updated payment intent (status CAPTURED or PARTIALLY_CAPTURED; capturedAmount rolled up).
- Parameters:
paymentIntent- The updated payment intent (status CAPTURED or PARTIALLY_CAPTURED; capturedAmount rolled up).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentIntent
default CapturePaymentIntentResponse.Builder paymentIntent(Consumer<PaymentIntent.Builder> paymentIntent) The updated payment intent (status CAPTURED or PARTIALLY_CAPTURED; capturedAmount rolled up).
This is a convenience method that creates an instance of thePaymentIntent.Builderavoiding the need to create one manually viaPaymentIntent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentIntent(PaymentIntent).- Parameters:
paymentIntent- a consumer that will call methods onPaymentIntent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capture
The capture that was created.
- Parameters:
capture- The capture that was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capture
The capture that was created.
This is a convenience method that creates an instance of theCapture.Builderavoiding the need to create one manually viaCapture.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapture(Capture).- Parameters:
capture- a consumer that will call methods onCapture.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-