aws_sdk_workmail/client/update_primary_email_address.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`UpdatePrimaryEmailAddress`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization that contains the user, group, or resource to update.</p><br>
/// - [`entity_id(impl Into<String>)`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::entity_id) / [`set_entity_id(Option<String>)`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::set_entity_id):<br>required: **true**<br><p>The user, group, or resource to update.</p> <p>The identifier can accept <i>UseriD, ResourceId, or GroupId</i>, <i>Username, Resourcename, or Groupname</i>, or <i>email</i>. The following identity formats are available:</p> <ul> <li> <p>Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234</p></li> <li> <p>Email address: entity@domain.tld</p></li> <li> <p>Entity name: entity</p></li> </ul><br>
/// - [`email(impl Into<String>)`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::email) / [`set_email(Option<String>)`](crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::set_email):<br>required: **true**<br><p>The value of the email to be updated as primary.</p><br>
/// - On success, responds with [`UpdatePrimaryEmailAddressOutput`](crate::operation::update_primary_email_address::UpdatePrimaryEmailAddressOutput)
/// - On failure, responds with [`SdkError<UpdatePrimaryEmailAddressError>`](crate::operation::update_primary_email_address::UpdatePrimaryEmailAddressError)
pub fn update_primary_email_address(&self) -> crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder {
crate::operation::update_primary_email_address::builders::UpdatePrimaryEmailAddressFluentBuilder::new(self.handle.clone())
}
}