Interface GetPaymentInstrumentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetPaymentInstrumentResponse.Builder,,GetPaymentInstrumentResponse> PaymentsResponse.Builder,SdkBuilder<GetPaymentInstrumentResponse.Builder,,GetPaymentInstrumentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPaymentInstrumentResponse
@Mutable
@NotThreadSafe
public static interface GetPaymentInstrumentResponse.Builder
extends PaymentsResponse.Builder, SdkPojo, CopyableBuilder<GetPaymentInstrumentResponse.Builder,GetPaymentInstrumentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpaymentInstrument(Consumer<PaymentInstrument.Builder> paymentInstrument) The payment instrument, including the details that are specific to its payment method.paymentInstrument(PaymentInstrument paymentInstrument) The payment instrument, including the details that are specific to its payment method.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.payments.model.PaymentsResponse.Builder
build, responseMetadata, responseMetadataMethods 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
The payment instrument, including the details that are specific to its payment method.
- Parameters:
paymentInstrument- The payment instrument, including the details that are specific to its payment method.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentInstrument
default GetPaymentInstrumentResponse.Builder paymentInstrument(Consumer<PaymentInstrument.Builder> paymentInstrument) The payment instrument, including the details that are specific to its payment method.
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:
-