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