1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAlternateContact`](crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`alternate_contact_type(AlternateContactType)`](crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder::alternate_contact_type) / [`set_alternate_contact_type(Option<AlternateContactType>)`](crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder::set_alternate_contact_type):<br>required: **true**<br><p>Specifies which alternate contact you want to retrieve.</p><br>
    ///   - [`account_id(impl Into<String>)`](crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder::set_account_id):<br>required: **false**<br><p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account assigned.</p><note>  <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p><br>
    /// - On success, responds with [`GetAlternateContactOutput`](crate::operation::get_alternate_contact::GetAlternateContactOutput) with field(s):
    ///   - [`alternate_contact(Option<AlternateContact>)`](crate::operation::get_alternate_contact::GetAlternateContactOutput::alternate_contact): <p>A structure that contains the details for the specified alternate contact.</p>
    /// - On failure, responds with [`SdkError<GetAlternateContactError>`](crate::operation::get_alternate_contact::GetAlternateContactError)
    pub fn get_alternate_contact(&self) -> crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder {
        crate::operation::get_alternate_contact::builders::GetAlternateContactFluentBuilder::new(self.handle.clone())
    }
}