AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetEmailIdentityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
11#include <aws/pinpoint-email/model/DkimAttributes.h>
12#include <aws/pinpoint-email/model/IdentityType.h>
13#include <aws/pinpoint-email/model/MailFromAttributes.h>
14#include <aws/pinpoint-email/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace PinpointEmail {
28namespace Model {
35 public:
36 AWS_PINPOINTEMAIL_API GetEmailIdentityResult() = default;
39
41
44 inline IdentityType GetIdentityType() const { return m_identityType; }
45 inline void SetIdentityType(IdentityType value) {
46 m_identityTypeHasBeenSet = true;
47 m_identityType = value;
48 }
50 SetIdentityType(value);
51 return *this;
52 }
54
56
68 inline bool GetFeedbackForwardingStatus() const { return m_feedbackForwardingStatus; }
69 inline void SetFeedbackForwardingStatus(bool value) {
70 m_feedbackForwardingStatusHasBeenSet = true;
71 m_feedbackForwardingStatus = value;
72 }
75 return *this;
76 }
78
80
87 inline bool GetVerifiedForSendingStatus() const { return m_verifiedForSendingStatus; }
88 inline void SetVerifiedForSendingStatus(bool value) {
89 m_verifiedForSendingStatusHasBeenSet = true;
90 m_verifiedForSendingStatus = value;
91 }
94 return *this;
95 }
97
99
104 inline const DkimAttributes& GetDkimAttributes() const { return m_dkimAttributes; }
105 template <typename DkimAttributesT = DkimAttributes>
106 void SetDkimAttributes(DkimAttributesT&& value) {
107 m_dkimAttributesHasBeenSet = true;
108 m_dkimAttributes = std::forward<DkimAttributesT>(value);
109 }
110 template <typename DkimAttributesT = DkimAttributes>
111 GetEmailIdentityResult& WithDkimAttributes(DkimAttributesT&& value) {
112 SetDkimAttributes(std::forward<DkimAttributesT>(value));
113 return *this;
114 }
116
118
122 inline const MailFromAttributes& GetMailFromAttributes() const { return m_mailFromAttributes; }
123 template <typename MailFromAttributesT = MailFromAttributes>
124 void SetMailFromAttributes(MailFromAttributesT&& value) {
125 m_mailFromAttributesHasBeenSet = true;
126 m_mailFromAttributes = std::forward<MailFromAttributesT>(value);
127 }
128 template <typename MailFromAttributesT = MailFromAttributes>
129 GetEmailIdentityResult& WithMailFromAttributes(MailFromAttributesT&& value) {
130 SetMailFromAttributes(std::forward<MailFromAttributesT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
141 template <typename TagsT = Aws::Vector<Tag>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Vector<Tag>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsT = Tag>
153 m_tagsHasBeenSet = true;
154 m_tags.emplace_back(std::forward<TagsT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 template <typename RequestIdT = Aws::String>
163 void SetRequestId(RequestIdT&& value) {
164 m_requestIdHasBeenSet = true;
165 m_requestId = std::forward<RequestIdT>(value);
166 }
167 template <typename RequestIdT = Aws::String>
169 SetRequestId(std::forward<RequestIdT>(value));
170 return *this;
171 }
173 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
174
175 private:
176 IdentityType m_identityType{IdentityType::NOT_SET};
177
178 bool m_feedbackForwardingStatus{false};
179
180 bool m_verifiedForSendingStatus{false};
181
182 DkimAttributes m_dkimAttributes;
183
184 MailFromAttributes m_mailFromAttributes;
185
186 Aws::Vector<Tag> m_tags;
187
188 Aws::String m_requestId;
189 Aws::Http::HttpResponseCode m_HttpResponseCode;
190 bool m_identityTypeHasBeenSet = false;
191 bool m_feedbackForwardingStatusHasBeenSet = false;
192 bool m_verifiedForSendingStatusHasBeenSet = false;
193 bool m_dkimAttributesHasBeenSet = false;
194 bool m_mailFromAttributesHasBeenSet = false;
195 bool m_tagsHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace PinpointEmail
201} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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