1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateProfile`](crate::operation::create_profile::builders::CreateProfileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_name):<br>required: **true**<br><p>Specifies the name of the profile.</p><br>
    ///   - [`email(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::email) / [`set_email(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_email):<br>required: **false**<br><p>Specifies the email address associated with this customer profile.</p><br>
    ///   - [`phone(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::phone) / [`set_phone(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_phone):<br>required: **true**<br><p>Specifies the phone number associated with the profile.</p><br>
    ///   - [`business_name(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::business_name) / [`set_business_name(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_business_name):<br>required: **true**<br><p>Specifies the name for the business associated with this profile.</p><br>
    ///   - [`logging(Logging)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::logging) / [`set_logging(Option<Logging>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_logging):<br>required: **true**<br><p>Specifies whether or not logging is enabled for this profile.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_client_token):<br>required: **false**<br><p>Reserved for future use.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_tags):<br>required: **false**<br><p>Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.</p><br>
    /// - On success, responds with [`CreateProfileOutput`](crate::operation::create_profile::CreateProfileOutput) with field(s):
    ///   - [`profile_id(String)`](crate::operation::create_profile::CreateProfileOutput::profile_id): <p>Returns the unique, system-generated identifier for the profile.</p>
    ///   - [`profile_arn(String)`](crate::operation::create_profile::CreateProfileOutput::profile_arn): <p>Returns an Amazon Resource Name (ARN) for the profile.</p>
    ///   - [`name(String)`](crate::operation::create_profile::CreateProfileOutput::name): <p>Returns the name of the profile, used to identify it.</p>
    ///   - [`business_name(String)`](crate::operation::create_profile::CreateProfileOutput::business_name): <p>Returns the name for the business associated with this profile.</p>
    ///   - [`phone(String)`](crate::operation::create_profile::CreateProfileOutput::phone): <p>Returns the phone number associated with the profile.</p>
    ///   - [`email(Option<String>)`](crate::operation::create_profile::CreateProfileOutput::email): <p>Returns the email address associated with this customer profile.</p>
    ///   - [`logging(Option<Logging>)`](crate::operation::create_profile::CreateProfileOutput::logging): <p>Returns whether or not logging is turned on for this profile.</p>
    ///   - [`log_group_name(Option<String>)`](crate::operation::create_profile::CreateProfileOutput::log_group_name): <p>Returns the name of the logging group.</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_profile::CreateProfileOutput::created_at): <p>Returns a timestamp representing the time the profile was created.</p>
    /// - On failure, responds with [`SdkError<CreateProfileError>`](crate::operation::create_profile::CreateProfileError)
    pub fn create_profile(&self) -> crate::operation::create_profile::builders::CreateProfileFluentBuilder {
        crate::operation::create_profile::builders::CreateProfileFluentBuilder::new(self.handle.clone())
    }
}