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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetPaymentInstrument`](crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identifier(impl Into<String>)`](crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder::set_identifier):<br>required: **true**<br><p>The instrument to retrieve. Specify one of the following:</p> <ul>  <li>   <p>The Amazon Resource Name (ARN) of the instrument, as <code>ListPaymentInstruments</code> returns in <code>arn</code>. The ARN must be for an instrument on your account.</p></li>  <li>   <p>The ID of the instrument, as <code>ListPaymentInstruments</code> returns in <code>id</code>.</p></li> </ul><br>
    /// - On success, responds with [`GetPaymentInstrumentOutput`](crate::operation::get_payment_instrument::GetPaymentInstrumentOutput) with field(s):
    ///   - [`payment_instrument(Option<PaymentInstrument>)`](crate::operation::get_payment_instrument::GetPaymentInstrumentOutput::payment_instrument): <p>The payment instrument, including the details that are specific to its payment method.</p>
    /// - On failure, responds with [`SdkError<GetPaymentInstrumentError>`](crate::operation::get_payment_instrument::GetPaymentInstrumentError)
    pub fn get_payment_instrument(&self) -> crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder {
        crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder::new(self.handle.clone())
    }
}