aws_sdk_chime/client/
associate_phone_number_with_user.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 [`AssociatePhoneNumberWithUser`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_id(impl Into<String>)`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::set_account_id):<br>required: **true**<br><p>The Amazon Chime account ID.</p><br>
7    ///   - [`user_id(impl Into<String>)`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::set_user_id):<br>required: **true**<br><p>The user ID.</p><br>
8    ///   - [`e164_phone_number(impl Into<String>)`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::e164_phone_number) / [`set_e164_phone_number(Option<String>)`](crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::set_e164_phone_number):<br>required: **true**<br><p>The phone number, in E.164 format.</p><br>
9    /// - On success, responds with [`AssociatePhoneNumberWithUserOutput`](crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserOutput)
10    /// - On failure, responds with [`SdkError<AssociatePhoneNumberWithUserError>`](crate::operation::associate_phone_number_with_user::AssociatePhoneNumberWithUserError)
11    pub fn associate_phone_number_with_user(
12        &self,
13    ) -> crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder {
14        crate::operation::associate_phone_number_with_user::builders::AssociatePhoneNumberWithUserFluentBuilder::new(self.handle.clone())
15    }
16}