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
28
29
30
31
32
33
34
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutProfileObjectType`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_name(impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_domain_name):<br>required: **true**<br><p>The unique name of the domain.</p><br>
    ///   - [`object_type_name(impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::object_type_name) / [`set_object_type_name(Option<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_object_type_name):<br>required: **true**<br><p>The name of the profile object type.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_description):<br>required: **true**<br><p>Description of the profile object type.</p><br>
    ///   - [`template_id(impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::template_id) / [`set_template_id(Option<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_template_id):<br>required: **false**<br><p>A unique identifier for the object template. For some attributes in the request, the service will use the default value from the object template when TemplateId is present. If these attributes are present in the request, the service may return a <code>BadRequestException</code>. These attributes include: AllowProfileCreation, SourceLastUpdatedTimestampFormat, Fields, and Keys. For example, if AllowProfileCreation is set to true when TemplateId is set, the service may return a <code>BadRequestException</code>.</p><br>
    ///   - [`expiration_days(i32)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::expiration_days) / [`set_expiration_days(Option<i32>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_expiration_days):<br>required: **false**<br><p>The number of days until the data in the object expires.</p><br>
    ///   - [`encryption_key(impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::encryption_key) / [`set_encryption_key(Option<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_encryption_key):<br>required: **false**<br><p>The customer-provided key to encrypt the profile object that will be created in this profile object type.</p><br>
    ///   - [`allow_profile_creation(bool)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::allow_profile_creation) / [`set_allow_profile_creation(Option<bool>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_allow_profile_creation):<br>required: **false**<br><p>Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type. The default is <code>FALSE</code>. If the AllowProfileCreation flag is set to <code>FALSE</code>, then the service tries to fetch a standard profile and associate this object with the profile. If it is set to <code>TRUE</code>, and if no match is found, then the service creates a new standard profile.</p><br>
    ///   - [`source_last_updated_timestamp_format(impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::source_last_updated_timestamp_format) / [`set_source_last_updated_timestamp_format(Option<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_source_last_updated_timestamp_format):<br>required: **false**<br><p>The format of your <code>sourceLastUpdatedTimestamp</code> that was previously set up.</p><br>
    ///   - [`fields(impl Into<String>, ObjectTypeField)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::fields) / [`set_fields(Option<HashMap::<String, ObjectTypeField>>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_fields):<br>required: **false**<br><p>A map of the name and ObjectType field.</p><br>
    ///   - [`keys(impl Into<String>, Vec::<ObjectTypeKey>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::keys) / [`set_keys(Option<HashMap::<String, Vec::<ObjectTypeKey>>>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_keys):<br>required: **false**<br><p>A list of unique keys that can be used to map data to the profile.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource.</p><br>
    /// - On success, responds with [`PutProfileObjectTypeOutput`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput) with field(s):
    ///   - [`object_type_name(String)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::object_type_name): <p>The name of the profile object type.</p>
    ///   - [`description(String)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::description): <p>Description of the profile object type.</p>
    ///   - [`template_id(Option<String>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::template_id): <p>A unique identifier for the object template.</p>
    ///   - [`expiration_days(Option<i32>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::expiration_days): <p>The number of days until the data in the object expires.</p>
    ///   - [`encryption_key(Option<String>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::encryption_key): <p>The customer-provided key to encrypt the profile object that will be created in this profile object type.</p>
    ///   - [`allow_profile_creation(bool)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::allow_profile_creation): <p>Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type. The default is <code>FALSE</code>. If the AllowProfileCreation flag is set to <code>FALSE</code>, then the service tries to fetch a standard profile and associate this object with the profile. If it is set to <code>TRUE</code>, and if no match is found, then the service creates a new standard profile.</p>
    ///   - [`source_last_updated_timestamp_format(Option<String>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::source_last_updated_timestamp_format): <p>The format of your <code>sourceLastUpdatedTimestamp</code> that was previously set up in fields that were parsed using <a href="https://docs.oracle.com/javase/10/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat</a>. If you have <code>sourceLastUpdatedTimestamp</code> in your field, you must set up <code>sourceLastUpdatedTimestampFormat</code>.</p>
    ///   - [`fields(Option<HashMap::<String, ObjectTypeField>>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::fields): <p>A map of the name and ObjectType field.</p>
    ///   - [`keys(Option<HashMap::<String, Vec::<ObjectTypeKey>>>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::keys): <p>A list of unique keys that can be used to map data to the profile.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::created_at): <p>The timestamp of when the domain was created.</p>
    ///   - [`last_updated_at(Option<DateTime>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::last_updated_at): <p>The timestamp of when the domain was most recently edited.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::put_profile_object_type::PutProfileObjectTypeOutput::tags): <p>The tags used to organize, track, or control access for this resource.</p>
    /// - On failure, responds with [`SdkError<PutProfileObjectTypeError>`](crate::operation::put_profile_object_type::PutProfileObjectTypeError)
    pub fn put_profile_object_type(&self) -> crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder {
        crate::operation::put_profile_object_type::builders::PutProfileObjectTypeFluentBuilder::new(self.handle.clone())
    }
}