aws_sdk_payments/client/get_payment_instrument.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetPaymentInstrument`](crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - On success, responds with [`GetPaymentInstrumentOutput`](crate::operation::get_payment_instrument::GetPaymentInstrumentOutput) with field(s):
8 /// - [`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>
9 /// - On failure, responds with [`SdkError<GetPaymentInstrumentError>`](crate::operation::get_payment_instrument::GetPaymentInstrumentError)
10 pub fn get_payment_instrument(&self) -> crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder {
11 crate::operation::get_payment_instrument::builders::GetPaymentInstrumentFluentBuilder::new(self.handle.clone())
12 }
13}