AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetEmailIdentityResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
10#include <aws/pinpoint-email/model/DkimAttributes.h>
11#include <aws/pinpoint-email/model/IdentityType.h>
12#include <aws/pinpoint-email/model/MailFromAttributes.h>
13#include <aws/pinpoint-email/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace PinpointEmail {
27namespace Model {
34 public:
35 AWS_PINPOINTEMAIL_API GetEmailIdentityResult() = default;
38
40
43 inline IdentityType GetIdentityType() const { return m_identityType; }
44 inline void SetIdentityType(IdentityType value) {
45 m_identityTypeHasBeenSet = true;
46 m_identityType = value;
47 }
49 SetIdentityType(value);
50 return *this;
51 }
53
55
67 inline bool GetFeedbackForwardingStatus() const { return m_feedbackForwardingStatus; }
68 inline void SetFeedbackForwardingStatus(bool value) {
69 m_feedbackForwardingStatusHasBeenSet = true;
70 m_feedbackForwardingStatus = value;
71 }
74 return *this;
75 }
77
79
86 inline bool GetVerifiedForSendingStatus() const { return m_verifiedForSendingStatus; }
87 inline void SetVerifiedForSendingStatus(bool value) {
88 m_verifiedForSendingStatusHasBeenSet = true;
89 m_verifiedForSendingStatus = value;
90 }
93 return *this;
94 }
96
98
103 inline const DkimAttributes& GetDkimAttributes() const { return m_dkimAttributes; }
104 template <typename DkimAttributesT = DkimAttributes>
105 void SetDkimAttributes(DkimAttributesT&& value) {
106 m_dkimAttributesHasBeenSet = true;
107 m_dkimAttributes = std::forward<DkimAttributesT>(value);
108 }
109 template <typename DkimAttributesT = DkimAttributes>
110 GetEmailIdentityResult& WithDkimAttributes(DkimAttributesT&& value) {
111 SetDkimAttributes(std::forward<DkimAttributesT>(value));
112 return *this;
113 }
115
117
121 inline const MailFromAttributes& GetMailFromAttributes() const { return m_mailFromAttributes; }
122 template <typename MailFromAttributesT = MailFromAttributes>
123 void SetMailFromAttributes(MailFromAttributesT&& value) {
124 m_mailFromAttributesHasBeenSet = true;
125 m_mailFromAttributes = std::forward<MailFromAttributesT>(value);
126 }
127 template <typename MailFromAttributesT = MailFromAttributes>
128 GetEmailIdentityResult& WithMailFromAttributes(MailFromAttributesT&& value) {
129 SetMailFromAttributes(std::forward<MailFromAttributesT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
140 template <typename TagsT = Aws::Vector<Tag>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Vector<Tag>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsT = Tag>
152 m_tagsHasBeenSet = true;
153 m_tags.emplace_back(std::forward<TagsT>(value));
154 return *this;
155 }
157
159
160 inline const Aws::String& GetRequestId() const { return m_requestId; }
161 template <typename RequestIdT = Aws::String>
162 void SetRequestId(RequestIdT&& value) {
163 m_requestIdHasBeenSet = true;
164 m_requestId = std::forward<RequestIdT>(value);
165 }
166 template <typename RequestIdT = Aws::String>
168 SetRequestId(std::forward<RequestIdT>(value));
169 return *this;
170 }
172 private:
173 IdentityType m_identityType{IdentityType::NOT_SET};
174
175 bool m_feedbackForwardingStatus{false};
176
177 bool m_verifiedForSendingStatus{false};
178
179 DkimAttributes m_dkimAttributes;
180
181 MailFromAttributes m_mailFromAttributes;
182
183 Aws::Vector<Tag> m_tags;
184
185 Aws::String m_requestId;
186 bool m_identityTypeHasBeenSet = false;
187 bool m_feedbackForwardingStatusHasBeenSet = false;
188 bool m_verifiedForSendingStatusHasBeenSet = false;
189 bool m_dkimAttributesHasBeenSet = false;
190 bool m_mailFromAttributesHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace PinpointEmail
197} // namespace Aws
const MailFromAttributes & GetMailFromAttributes() const
GetEmailIdentityResult & WithDkimAttributes(DkimAttributesT &&value)
GetEmailIdentityResult & WithMailFromAttributes(MailFromAttributesT &&value)
GetEmailIdentityResult & WithFeedbackForwardingStatus(bool value)
AWS_PINPOINTEMAIL_API GetEmailIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEmailIdentityResult & WithRequestId(RequestIdT &&value)
GetEmailIdentityResult & AddTags(TagsT &&value)
AWS_PINPOINTEMAIL_API GetEmailIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEmailIdentityResult & WithVerifiedForSendingStatus(bool value)
GetEmailIdentityResult & WithIdentityType(IdentityType value)
AWS_PINPOINTEMAIL_API GetEmailIdentityResult()=default
GetEmailIdentityResult & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue