Interface GetPaymentInstrumentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<GetPaymentInstrumentResponse.Builder,,GetPaymentInstrumentResponse> SdkBuilder<GetPaymentInstrumentResponse.Builder,,GetPaymentInstrumentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPaymentInstrumentResponse
@Mutable
@NotThreadSafe
public static interface GetPaymentInstrumentResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<GetPaymentInstrumentResponse.Builder,GetPaymentInstrumentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpaymentInstrument(Consumer<PaymentInstrument.Builder> paymentInstrument) Sets the value of the PaymentInstrument property for this object.paymentInstrument(PaymentInstrument paymentInstrument) Sets the value of the PaymentInstrument 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
-
paymentInstrument
Sets the value of the PaymentInstrument property for this object.- Parameters:
paymentInstrument- The new value for the PaymentInstrument property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentInstrument
default GetPaymentInstrumentResponse.Builder paymentInstrument(Consumer<PaymentInstrument.Builder> paymentInstrument) Sets the value of the PaymentInstrument property for this object. This is a convenience method that creates an instance of thePaymentInstrument.Builderavoiding the need to create one manually viaPaymentInstrument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentInstrument(PaymentInstrument).- Parameters:
paymentInstrument- a consumer that will call methods onPaymentInstrument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-