aws-sdk-payments 1.1.0

AWS SDK for AWS Payments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPaymentInstruments`](crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token from the <code>nextToken</code> of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with <code>ValidationException</code> and the reason <code>INVALID_PAGINATION_TOKEN</code>. In that case, start again from the first page.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of payment instruments to return in one page. The default is 25. A page can contain fewer payment instruments even when more remain. Use <code>nextToken</code> to find out whether more payment instruments are available.</p><br>
    /// - On success, responds with [`ListPaymentInstrumentsOutput`](crate::operation::list_payment_instruments::ListPaymentInstrumentsOutput) with field(s):
    ///   - [`payment_instrument_summaries(Vec::<PaymentInstrumentSummary>)`](crate::operation::list_payment_instruments::ListPaymentInstrumentsOutput::payment_instrument_summaries): <p>The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_payment_instruments::ListPaymentInstrumentsOutput::next_token): <p>The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.</p>
    /// - On failure, responds with [`SdkError<ListPaymentInstrumentsError>`](crate::operation::list_payment_instruments::ListPaymentInstrumentsError)
    pub fn list_payment_instruments(&self) -> crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder {
        crate::operation::list_payment_instruments::builders::ListPaymentInstrumentsFluentBuilder::new(self.handle.clone())
    }
}