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) Sets the value of the PaymentSession property for this object.paymentSession(PaymentSession paymentSession) Sets the value of the PaymentSession property for this object.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
Sets the value of the PaymentSession property for this object.- Parameters:
paymentSession- The new value for the PaymentSession property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSession
default GetPaymentSessionResponse.Builder paymentSession(Consumer<PaymentSession.Builder> paymentSession) Sets the value of the PaymentSession property for this object. 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:
-