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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Details about an email identity.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetEmailIdentityOutput {
/// <p>The email identity type.</p>
pub identity_type: ::std::option::Option<crate::types::IdentityType>,
/// <p>The feedback forwarding configuration for the identity.</p>
/// <p>If the value is <code>true</code>, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.</p>
/// <p>When you set this value to <code>false</code>, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).</p>
pub feedback_forwarding_status: bool,
/// <p>Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon Pinpoint User Guide</a>.</p>
pub verified_for_sending_status: bool,
/// <p>An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.</p>
pub dkim_attributes: ::std::option::Option<crate::types::DkimAttributes>,
/// <p>An object that contains information about the Mail-From attributes for the email identity.</p>
pub mail_from_attributes: ::std::option::Option<crate::types::MailFromAttributes>,
/// <p>An array of objects that define the tags (keys and values) that are associated with the email identity.</p>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
_request_id: Option<String>,
}
impl GetEmailIdentityOutput {
/// <p>The email identity type.</p>
pub fn identity_type(&self) -> ::std::option::Option<&crate::types::IdentityType> {
self.identity_type.as_ref()
}
/// <p>The feedback forwarding configuration for the identity.</p>
/// <p>If the value is <code>true</code>, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.</p>
/// <p>When you set this value to <code>false</code>, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).</p>
pub fn feedback_forwarding_status(&self) -> bool {
self.feedback_forwarding_status
}
/// <p>Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon Pinpoint User Guide</a>.</p>
pub fn verified_for_sending_status(&self) -> bool {
self.verified_for_sending_status
}
/// <p>An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.</p>
pub fn dkim_attributes(&self) -> ::std::option::Option<&crate::types::DkimAttributes> {
self.dkim_attributes.as_ref()
}
/// <p>An object that contains information about the Mail-From attributes for the email identity.</p>
pub fn mail_from_attributes(&self) -> ::std::option::Option<&crate::types::MailFromAttributes> {
self.mail_from_attributes.as_ref()
}
/// <p>An array of objects that define the tags (keys and values) that are associated with the email identity.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
pub fn tags(&self) -> &[crate::types::Tag] {
self.tags.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for GetEmailIdentityOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetEmailIdentityOutput {
/// Creates a new builder-style object to manufacture [`GetEmailIdentityOutput`](crate::operation::get_email_identity::GetEmailIdentityOutput).
pub fn builder() -> crate::operation::get_email_identity::builders::GetEmailIdentityOutputBuilder {
crate::operation::get_email_identity::builders::GetEmailIdentityOutputBuilder::default()
}
}
/// A builder for [`GetEmailIdentityOutput`](crate::operation::get_email_identity::GetEmailIdentityOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetEmailIdentityOutputBuilder {
pub(crate) identity_type: ::std::option::Option<crate::types::IdentityType>,
pub(crate) feedback_forwarding_status: ::std::option::Option<bool>,
pub(crate) verified_for_sending_status: ::std::option::Option<bool>,
pub(crate) dkim_attributes: ::std::option::Option<crate::types::DkimAttributes>,
pub(crate) mail_from_attributes: ::std::option::Option<crate::types::MailFromAttributes>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
_request_id: Option<String>,
}
impl GetEmailIdentityOutputBuilder {
/// <p>The email identity type.</p>
pub fn identity_type(mut self, input: crate::types::IdentityType) -> Self {
self.identity_type = ::std::option::Option::Some(input);
self
}
/// <p>The email identity type.</p>
pub fn set_identity_type(mut self, input: ::std::option::Option<crate::types::IdentityType>) -> Self {
self.identity_type = input;
self
}
/// <p>The email identity type.</p>
pub fn get_identity_type(&self) -> &::std::option::Option<crate::types::IdentityType> {
&self.identity_type
}
/// <p>The feedback forwarding configuration for the identity.</p>
/// <p>If the value is <code>true</code>, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.</p>
/// <p>When you set this value to <code>false</code>, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).</p>
pub fn feedback_forwarding_status(mut self, input: bool) -> Self {
self.feedback_forwarding_status = ::std::option::Option::Some(input);
self
}
/// <p>The feedback forwarding configuration for the identity.</p>
/// <p>If the value is <code>true</code>, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.</p>
/// <p>When you set this value to <code>false</code>, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).</p>
pub fn set_feedback_forwarding_status(mut self, input: ::std::option::Option<bool>) -> Self {
self.feedback_forwarding_status = input;
self
}
/// <p>The feedback forwarding configuration for the identity.</p>
/// <p>If the value is <code>true</code>, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.</p>
/// <p>When you set this value to <code>false</code>, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).</p>
pub fn get_feedback_forwarding_status(&self) -> &::std::option::Option<bool> {
&self.feedback_forwarding_status
}
/// <p>Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon Pinpoint User Guide</a>.</p>
pub fn verified_for_sending_status(mut self, input: bool) -> Self {
self.verified_for_sending_status = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon Pinpoint User Guide</a>.</p>
pub fn set_verified_for_sending_status(mut self, input: ::std::option::Option<bool>) -> Self {
self.verified_for_sending_status = input;
self
}
/// <p>Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon Pinpoint User Guide</a>.</p>
pub fn get_verified_for_sending_status(&self) -> &::std::option::Option<bool> {
&self.verified_for_sending_status
}
/// <p>An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.</p>
pub fn dkim_attributes(mut self, input: crate::types::DkimAttributes) -> Self {
self.dkim_attributes = ::std::option::Option::Some(input);
self
}
/// <p>An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.</p>
pub fn set_dkim_attributes(mut self, input: ::std::option::Option<crate::types::DkimAttributes>) -> Self {
self.dkim_attributes = input;
self
}
/// <p>An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.</p>
pub fn get_dkim_attributes(&self) -> &::std::option::Option<crate::types::DkimAttributes> {
&self.dkim_attributes
}
/// <p>An object that contains information about the Mail-From attributes for the email identity.</p>
pub fn mail_from_attributes(mut self, input: crate::types::MailFromAttributes) -> Self {
self.mail_from_attributes = ::std::option::Option::Some(input);
self
}
/// <p>An object that contains information about the Mail-From attributes for the email identity.</p>
pub fn set_mail_from_attributes(mut self, input: ::std::option::Option<crate::types::MailFromAttributes>) -> Self {
self.mail_from_attributes = input;
self
}
/// <p>An object that contains information about the Mail-From attributes for the email identity.</p>
pub fn get_mail_from_attributes(&self) -> &::std::option::Option<crate::types::MailFromAttributes> {
&self.mail_from_attributes
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>An array of objects that define the tags (keys and values) that are associated with the email identity.</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = ::std::option::Option::Some(v);
self
}
/// <p>An array of objects that define the tags (keys and values) that are associated with the email identity.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tags = input;
self
}
/// <p>An array of objects that define the tags (keys and values) that are associated with the email identity.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetEmailIdentityOutput`](crate::operation::get_email_identity::GetEmailIdentityOutput).
pub fn build(self) -> crate::operation::get_email_identity::GetEmailIdentityOutput {
crate::operation::get_email_identity::GetEmailIdentityOutput {
identity_type: self.identity_type,
feedback_forwarding_status: self.feedback_forwarding_status.unwrap_or_default(),
verified_for_sending_status: self.verified_for_sending_status.unwrap_or_default(),
dkim_attributes: self.dkim_attributes,
mail_from_attributes: self.mail_from_attributes,
tags: self.tags,
_request_id: self._request_id,
}
}
}