// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AcceptPrimaryEmailUpdate`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`account_id(impl Into<String>)`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::set_account_id):<br>required: **true**<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. 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. 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/orgs_integrate_services.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated admin</a> account assigned.</p> <p>This operation can only be called from the management account or the delegated administrator account of an organization for a member account.</p><note> <p>The management account can't specify its own <code>AccountId</code>.</p> </note><br>
/// - [`primary_email(impl Into<String>)`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::primary_email) / [`set_primary_email(Option<String>)`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::set_primary_email):<br>required: **true**<br><p>The new primary email address for use with the specified account. This must match the <code>PrimaryEmail</code> from the <code>StartPrimaryEmailUpdate</code> API call.</p><br>
/// - [`otp(impl Into<String>)`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::otp) / [`set_otp(Option<String>)`](crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::set_otp):<br>required: **true**<br><p>The OTP code sent to the <code>PrimaryEmail</code> specified on the <code>StartPrimaryEmailUpdate</code> API call.</p><br>
/// - On success, responds with [`AcceptPrimaryEmailUpdateOutput`](crate::operation::accept_primary_email_update::AcceptPrimaryEmailUpdateOutput) with field(s):
/// - [`status(Option<PrimaryEmailUpdateStatus>)`](crate::operation::accept_primary_email_update::AcceptPrimaryEmailUpdateOutput::status): <p>Retrieves the status of the accepted primary email update request.</p>
/// - On failure, responds with [`SdkError<AcceptPrimaryEmailUpdateError>`](crate::operation::accept_primary_email_update::AcceptPrimaryEmailUpdateError)
pub fn accept_primary_email_update(&self) -> crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder {
crate::operation::accept_primary_email_update::builders::AcceptPrimaryEmailUpdateFluentBuilder::new(self.handle.clone())
}
}