Interface GetPaymentSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<GetPaymentSessionResponse.Builder,,GetPaymentSessionResponse> SdkBuilder<GetPaymentSessionResponse.Builder,,GetPaymentSessionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPaymentSessionResponse
@Mutable
@NotThreadSafe
public static interface GetPaymentSessionResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<GetPaymentSessionResponse.Builder,GetPaymentSessionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpaymentSession(Consumer<PaymentSession.Builder> paymentSession) The payment session details.paymentSession(PaymentSession paymentSession) The payment session details.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
-
paymentSession
The payment session details.
- Parameters:
paymentSession- The payment session details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSession
default GetPaymentSessionResponse.Builder paymentSession(Consumer<PaymentSession.Builder> paymentSession) The payment session details.
This is a convenience method that creates an instance of thePaymentSession.Builderavoiding the need to create one manually viaPaymentSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentSession(PaymentSession).- Parameters:
paymentSession- a consumer that will call methods onPaymentSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-