AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetEmailIdentityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/SESV2_EXPORTS.h>
12#include <aws/sesv2/model/DkimAttributes.h>
13#include <aws/sesv2/model/IdentityType.h>
14#include <aws/sesv2/model/MailFromAttributes.h>
15#include <aws/sesv2/model/Tag.h>
16#include <aws/sesv2/model/VerificationInfo.h>
17#include <aws/sesv2/model/VerificationStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SESV2 {
31namespace Model {
38 public:
39 AWS_SESV2_API GetEmailIdentityResult() = default;
42
44
48 inline IdentityType GetIdentityType() const { return m_identityType; }
49 inline void SetIdentityType(IdentityType value) {
50 m_identityTypeHasBeenSet = true;
51 m_identityType = value;
52 }
54 SetIdentityType(value);
55 return *this;
56 }
58
60
70 inline bool GetFeedbackForwardingStatus() const { return m_feedbackForwardingStatus; }
71 inline void SetFeedbackForwardingStatus(bool value) {
72 m_feedbackForwardingStatusHasBeenSet = true;
73 m_feedbackForwardingStatus = value;
74 }
77 return *this;
78 }
80
82
89 inline bool GetVerifiedForSendingStatus() const { return m_verifiedForSendingStatus; }
90 inline void SetVerifiedForSendingStatus(bool value) {
91 m_verifiedForSendingStatusHasBeenSet = true;
92 m_verifiedForSendingStatus = value;
93 }
96 return *this;
97 }
99
101
105 inline const DkimAttributes& GetDkimAttributes() const { return m_dkimAttributes; }
106 template <typename DkimAttributesT = DkimAttributes>
107 void SetDkimAttributes(DkimAttributesT&& value) {
108 m_dkimAttributesHasBeenSet = true;
109 m_dkimAttributes = std::forward<DkimAttributesT>(value);
110 }
111 template <typename DkimAttributesT = DkimAttributes>
112 GetEmailIdentityResult& WithDkimAttributes(DkimAttributesT&& value) {
113 SetDkimAttributes(std::forward<DkimAttributesT>(value));
114 return *this;
115 }
117
119
123 inline const MailFromAttributes& GetMailFromAttributes() const { return m_mailFromAttributes; }
124 template <typename MailFromAttributesT = MailFromAttributes>
125 void SetMailFromAttributes(MailFromAttributesT&& value) {
126 m_mailFromAttributesHasBeenSet = true;
127 m_mailFromAttributes = std::forward<MailFromAttributesT>(value);
128 }
129 template <typename MailFromAttributesT = MailFromAttributes>
130 GetEmailIdentityResult& WithMailFromAttributes(MailFromAttributesT&& value) {
131 SetMailFromAttributes(std::forward<MailFromAttributesT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetPolicies() const { return m_policies; }
141 template <typename PoliciesT = Aws::Map<Aws::String, Aws::String>>
142 void SetPolicies(PoliciesT&& value) {
143 m_policiesHasBeenSet = true;
144 m_policies = std::forward<PoliciesT>(value);
145 }
146 template <typename PoliciesT = Aws::Map<Aws::String, Aws::String>>
148 SetPolicies(std::forward<PoliciesT>(value));
149 return *this;
150 }
151 template <typename PoliciesKeyT = Aws::String, typename PoliciesValueT = Aws::String>
152 GetEmailIdentityResult& AddPolicies(PoliciesKeyT&& key, PoliciesValueT&& value) {
153 m_policiesHasBeenSet = true;
154 m_policies.emplace(std::forward<PoliciesKeyT>(key), std::forward<PoliciesValueT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
165 template <typename TagsT = Aws::Vector<Tag>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Vector<Tag>>
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsT = Tag>
177 m_tagsHasBeenSet = true;
178 m_tags.emplace_back(std::forward<TagsT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
188 template <typename ConfigurationSetNameT = Aws::String>
189 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
190 m_configurationSetNameHasBeenSet = true;
191 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
192 }
193 template <typename ConfigurationSetNameT = Aws::String>
194 GetEmailIdentityResult& WithConfigurationSetName(ConfigurationSetNameT&& value) {
195 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
196 return *this;
197 }
199
201
212 inline VerificationStatus GetVerificationStatus() const { return m_verificationStatus; }
214 m_verificationStatusHasBeenSet = true;
215 m_verificationStatus = value;
216 }
219 return *this;
220 }
222
224
228 inline const VerificationInfo& GetVerificationInfo() const { return m_verificationInfo; }
229 template <typename VerificationInfoT = VerificationInfo>
230 void SetVerificationInfo(VerificationInfoT&& value) {
231 m_verificationInfoHasBeenSet = true;
232 m_verificationInfo = std::forward<VerificationInfoT>(value);
233 }
234 template <typename VerificationInfoT = VerificationInfo>
235 GetEmailIdentityResult& WithVerificationInfo(VerificationInfoT&& value) {
236 SetVerificationInfo(std::forward<VerificationInfoT>(value));
237 return *this;
238 }
240
242
243 inline const Aws::String& GetRequestId() const { return m_requestId; }
244 template <typename RequestIdT = Aws::String>
245 void SetRequestId(RequestIdT&& value) {
246 m_requestIdHasBeenSet = true;
247 m_requestId = std::forward<RequestIdT>(value);
248 }
249 template <typename RequestIdT = Aws::String>
251 SetRequestId(std::forward<RequestIdT>(value));
252 return *this;
253 }
255 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
256
257 private:
258 IdentityType m_identityType{IdentityType::NOT_SET};
259
260 bool m_feedbackForwardingStatus{false};
261
262 bool m_verifiedForSendingStatus{false};
263
264 DkimAttributes m_dkimAttributes;
265
266 MailFromAttributes m_mailFromAttributes;
267
269
270 Aws::Vector<Tag> m_tags;
271
272 Aws::String m_configurationSetName;
273
275
276 VerificationInfo m_verificationInfo;
277
278 Aws::String m_requestId;
279 Aws::Http::HttpResponseCode m_HttpResponseCode;
280 bool m_identityTypeHasBeenSet = false;
281 bool m_feedbackForwardingStatusHasBeenSet = false;
282 bool m_verifiedForSendingStatusHasBeenSet = false;
283 bool m_dkimAttributesHasBeenSet = false;
284 bool m_mailFromAttributesHasBeenSet = false;
285 bool m_policiesHasBeenSet = false;
286 bool m_tagsHasBeenSet = false;
287 bool m_configurationSetNameHasBeenSet = false;
288 bool m_verificationStatusHasBeenSet = false;
289 bool m_verificationInfoHasBeenSet = false;
290 bool m_requestIdHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace SESV2
295} // namespace Aws
GetEmailIdentityResult & WithMailFromAttributes(MailFromAttributesT &&value)
GetEmailIdentityResult & WithIdentityType(IdentityType value)
GetEmailIdentityResult & WithVerificationStatus(VerificationStatus value)
void SetVerificationStatus(VerificationStatus value)
GetEmailIdentityResult & WithVerificationInfo(VerificationInfoT &&value)
const Aws::Vector< Tag > & GetTags() const
GetEmailIdentityResult & WithDkimAttributes(DkimAttributesT &&value)
void SetMailFromAttributes(MailFromAttributesT &&value)
AWS_SESV2_API GetEmailIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const MailFromAttributes & GetMailFromAttributes() const
AWS_SESV2_API GetEmailIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const VerificationInfo & GetVerificationInfo() const
GetEmailIdentityResult & WithPolicies(PoliciesT &&value)
const DkimAttributes & GetDkimAttributes() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEmailIdentityResult & WithConfigurationSetName(ConfigurationSetNameT &&value)
GetEmailIdentityResult & WithTags(TagsT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
GetEmailIdentityResult & AddTags(TagsT &&value)
AWS_SESV2_API GetEmailIdentityResult()=default
GetEmailIdentityResult & WithVerifiedForSendingStatus(bool value)
GetEmailIdentityResult & WithFeedbackForwardingStatus(bool value)
GetEmailIdentityResult & WithRequestId(RequestIdT &&value)
GetEmailIdentityResult & AddPolicies(PoliciesKeyT &&key, PoliciesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetPolicies() const
void SetVerificationInfo(VerificationInfoT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue