Interface CancelPaymentIntentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<CancelPaymentIntentResponse.Builder,,CancelPaymentIntentResponse> SdkBuilder<CancelPaymentIntentResponse.Builder,,CancelPaymentIntentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CancelPaymentIntentResponse
@Mutable
@NotThreadSafe
public static interface CancelPaymentIntentResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<CancelPaymentIntentResponse.Builder,CancelPaymentIntentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpaymentIntent(Consumer<PaymentIntent.Builder> paymentIntent) The updated payment intent (status CANCELLED).paymentIntent(PaymentIntent paymentIntent) The updated payment intent (status CANCELLED).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 CANCELLED).
- Parameters:
paymentIntent- The updated payment intent (status CANCELLED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentIntent
default CancelPaymentIntentResponse.Builder paymentIntent(Consumer<PaymentIntent.Builder> paymentIntent) The updated payment intent (status CANCELLED).
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:
-