aws_sdk_sesv2/client/get_contact.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 [`GetContact`](crate::operation::get_contact::builders::GetContactFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`GetContactOutput`](crate::operation::get_contact::GetContactOutput) with field(s):
9 /// - [`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>
10 /// - [`email_address(Option<String>)`](crate::operation::get_contact::GetContactOutput::email_address): <p>The contact's email address.</p>
11 /// - [`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.></p>
12 /// - [`topic_default_preferences(Option<Vec::<TopicPreference>>)`](crate::operation::get_contact::GetContactOutput::topic_default_preferences): <p>The default topic preferences applied to the contact.</p>
13 /// - [`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>
14 /// - [`attributes_data(Option<String>)`](crate::operation::get_contact::GetContactOutput::attributes_data): <p>The attribute data attached to a contact.</p>
15 /// - [`created_timestamp(Option<DateTime>)`](crate::operation::get_contact::GetContactOutput::created_timestamp): <p>A timestamp noting when the contact was created.</p>
16 /// - [`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>
17 /// - On failure, responds with [`SdkError<GetContactError>`](crate::operation::get_contact::GetContactError)
18 pub fn get_contact(&self) -> crate::operation::get_contact::builders::GetContactFluentBuilder {
19 crate::operation::get_contact::builders::GetContactFluentBuilder::new(self.handle.clone())
20 }
21}