1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetContact`](crate::operation::get_contact::builders::GetContactFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`contact_list_name(impl Into<String>)`](crate::operation::get_contact::builders::GetContactFluentBuilder::contact_list_name) / [`set_contact_list_name(Option<String>)`](crate::operation::get_contact::builders::GetContactFluentBuilder::set_contact_list_name):<br>required: **true**<br><p>The name of the contact list to which the contact belongs.</p><br>
    ///   - [`email_address(impl Into<String>)`](crate::operation::get_contact::builders::GetContactFluentBuilder::email_address) / [`set_email_address(Option<String>)`](crate::operation::get_contact::builders::GetContactFluentBuilder::set_email_address):<br>required: **true**<br><p>The contact's email address.</p><br>
    /// - On success, responds with [`GetContactOutput`](crate::operation::get_contact::GetContactOutput) with field(s):
    ///   - [`contact_list_name(Option<String>)`](crate::operation::get_contact::GetContactOutput::contact_list_name): <p>The name of the contact list to which the contact belongs.</p>
    ///   - [`email_address(Option<String>)`](crate::operation::get_contact::GetContactOutput::email_address): <p>The contact's email address.</p>
    ///   - [`topic_preferences(Option<Vec::<TopicPreference>>)`](crate::operation::get_contact::GetContactOutput::topic_preferences): <p>The contact's preference for being opted-in to or opted-out of a topic.&gt;</p>
    ///   - [`topic_default_preferences(Option<Vec::<TopicPreference>>)`](crate::operation::get_contact::GetContactOutput::topic_default_preferences): <p>The default topic preferences applied to the contact.</p>
    ///   - [`unsubscribe_all(bool)`](crate::operation::get_contact::GetContactOutput::unsubscribe_all): <p>A boolean value status noting if the contact is unsubscribed from all contact list topics.</p>
    ///   - [`attributes_data(Option<String>)`](crate::operation::get_contact::GetContactOutput::attributes_data): <p>The attribute data attached to a contact.</p>
    ///   - [`created_timestamp(Option<DateTime>)`](crate::operation::get_contact::GetContactOutput::created_timestamp): <p>A timestamp noting when the contact was created.</p>
    ///   - [`last_updated_timestamp(Option<DateTime>)`](crate::operation::get_contact::GetContactOutput::last_updated_timestamp): <p>A timestamp noting the last time the contact's information was updated.</p>
    /// - On failure, responds with [`SdkError<GetContactError>`](crate::operation::get_contact::GetContactError)
    pub fn get_contact(&self) -> crate::operation::get_contact::builders::GetContactFluentBuilder {
        crate::operation::get_contact::builders::GetContactFluentBuilder::new(self.handle.clone())
    }
}