aws_sdk_invoicing/client/
get_invoice_unit.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetInvoiceUnit`](crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`invoice_unit_arn(impl Into<String>)`](crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder::invoice_unit_arn) / [`set_invoice_unit_arn(Option<String>)`](crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder::set_invoice_unit_arn):<br>required: **true**<br><p>The ARN to identify an invoice unit. This information can't be modified or deleted.</p><br>
    ///   - [`as_of(DateTime)`](crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder::as_of) / [`set_as_of(Option<DateTime>)`](crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder::set_as_of):<br>required: **false**<br><p>The state of an invoice unit at a specified time. You can see legacy invoice units that are currently deleted if the <code>AsOf</code> time is set to before it was deleted. If an <code>AsOf</code> is not provided, the default value is the current time.</p><br>
    /// - On success, responds with [`GetInvoiceUnitOutput`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput) with field(s):
    ///   - [`invoice_unit_arn(Option<String>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::invoice_unit_arn): <p>The ARN to identify an invoice unit. This information can't be modified or deleted.</p>
    ///   - [`invoice_receiver(Option<String>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::invoice_receiver): <p>The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::name): <p>The unique name of the invoice unit that is shown on the generated invoice.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::description): <p>The assigned description for an invoice unit.</p>
    ///   - [`tax_inheritance_disabled(Option<bool>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::tax_inheritance_disabled): <p>Whether the invoice unit based tax inheritance is/ should be enabled or disabled.</p>
    ///   - [`rule(Option<InvoiceUnitRule>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::rule): <p>This is used to categorize the invoice unit. Values are Amazon Web Services account IDs. Currently, the only supported rule is <code>LINKED_ACCOUNT</code>.</p>
    ///   - [`last_modified(Option<DateTime>)`](crate::operation::get_invoice_unit::GetInvoiceUnitOutput::last_modified): <p>The most recent date the invoice unit response was updated.</p>
    /// - On failure, responds with [`SdkError<GetInvoiceUnitError>`](crate::operation::get_invoice_unit::GetInvoiceUnitError)
    pub fn get_invoice_unit(&self) -> crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder {
        crate::operation::get_invoice_unit::builders::GetInvoiceUnitFluentBuilder::new(self.handle.clone())
    }
}