Interface ListPaymentInstrumentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPaymentInstrumentsResponse.Builder,,ListPaymentInstrumentsResponse> PaymentsResponse.Builder,SdkBuilder<ListPaymentInstrumentsResponse.Builder,,ListPaymentInstrumentsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListPaymentInstrumentsResponse
@Mutable
@NotThreadSafe
public static interface ListPaymentInstrumentsResponse.Builder
extends PaymentsResponse.Builder, SdkPojo, CopyableBuilder<ListPaymentInstrumentsResponse.Builder,ListPaymentInstrumentsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token that indicates the next set of results to retrieve.paymentInstrumentSummaries(Collection<PaymentInstrumentSummary> paymentInstrumentSummaries) The payment instruments on your account, one summary for each instrument.paymentInstrumentSummaries(Consumer<PaymentInstrumentSummary.Builder>... paymentInstrumentSummaries) The payment instruments on your account, one summary for each instrument.paymentInstrumentSummaries(PaymentInstrumentSummary... paymentInstrumentSummaries) The payment instruments on your account, one summary for each instrument.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
-
paymentInstrumentSummaries
ListPaymentInstrumentsResponse.Builder paymentInstrumentSummaries(Collection<PaymentInstrumentSummary> paymentInstrumentSummaries) The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.
- Parameters:
paymentInstrumentSummaries- The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentInstrumentSummaries
ListPaymentInstrumentsResponse.Builder paymentInstrumentSummaries(PaymentInstrumentSummary... paymentInstrumentSummaries) The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.
- Parameters:
paymentInstrumentSummaries- The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentInstrumentSummaries
ListPaymentInstrumentsResponse.Builder paymentInstrumentSummaries(Consumer<PaymentInstrumentSummary.Builder>... paymentInstrumentSummaries) The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.
This is a convenience method that creates an instance of thePaymentInstrumentSummary.Builderavoiding the need to create one manually viaPaymentInstrumentSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentInstrumentSummaries(List<PaymentInstrumentSummary>).- Parameters:
paymentInstrumentSummaries- a consumer that will call methods onPaymentInstrumentSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.
- Parameters:
nextToken- The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-