1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateUser`](crate::operation::create_user::builders::CreateUserFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl ::std::convert::Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_organization_id): <p>The identifier of the organization for which the user is created.</p>
    ///   - [`name(impl ::std::convert::Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_name): <p>The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.</p>
    ///   - [`display_name(impl ::std::convert::Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_display_name): <p>The display name for the new user.</p>
    ///   - [`password(impl ::std::convert::Into<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::password) / [`set_password(Option<String>)`](crate::operation::create_user::builders::CreateUserFluentBuilder::set_password): <p>The password for the new user.</p>
    /// - On success, responds with [`CreateUserOutput`](crate::operation::create_user::CreateUserOutput) with field(s):
    ///   - [`user_id(Option<String>)`](crate::operation::create_user::CreateUserOutput::user_id): <p>The identifier for the new user.</p>
    /// - On failure, responds with [`SdkError<CreateUserError>`](crate::operation::create_user::CreateUserError)
    pub fn create_user(&self) -> crate::operation::create_user::builders::CreateUserFluentBuilder {
        crate::operation::create_user::builders::CreateUserFluentBuilder::new(self.handle.clone())
    }
}