AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetMemberResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/macie2/Macie2_EXPORTS.h>
12#include <aws/macie2/model/RelationshipStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Macie2 {
26namespace Model {
28 public:
29 AWS_MACIE2_API GetMemberResult() = default;
32
34
37 inline const Aws::String& GetAccountId() const { return m_accountId; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
44 GetMemberResult& WithAccountId(AccountIdT&& value) {
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAdministratorAccountId() const { return m_administratorAccountId; }
55 template <typename AdministratorAccountIdT = Aws::String>
56 void SetAdministratorAccountId(AdministratorAccountIdT&& value) {
57 m_administratorAccountIdHasBeenSet = true;
58 m_administratorAccountId = std::forward<AdministratorAccountIdT>(value);
59 }
60 template <typename AdministratorAccountIdT = Aws::String>
61 GetMemberResult& WithAdministratorAccountId(AdministratorAccountIdT&& value) {
62 SetAdministratorAccountId(std::forward<AdministratorAccountIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetArn() const { return m_arn; }
72 template <typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) {
74 m_arnHasBeenSet = true;
75 m_arn = std::forward<ArnT>(value);
76 }
77 template <typename ArnT = Aws::String>
78 GetMemberResult& WithArn(ArnT&& value) {
79 SetArn(std::forward<ArnT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetEmail() const { return m_email; }
90 template <typename EmailT = Aws::String>
91 void SetEmail(EmailT&& value) {
92 m_emailHasBeenSet = true;
93 m_email = std::forward<EmailT>(value);
94 }
95 template <typename EmailT = Aws::String>
96 GetMemberResult& WithEmail(EmailT&& value) {
97 SetEmail(std::forward<EmailT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Utils::DateTime& GetInvitedAt() const { return m_invitedAt; }
109 template <typename InvitedAtT = Aws::Utils::DateTime>
110 void SetInvitedAt(InvitedAtT&& value) {
111 m_invitedAtHasBeenSet = true;
112 m_invitedAt = std::forward<InvitedAtT>(value);
113 }
114 template <typename InvitedAtT = Aws::Utils::DateTime>
115 GetMemberResult& WithInvitedAt(InvitedAtT&& value) {
116 SetInvitedAt(std::forward<InvitedAtT>(value));
117 return *this;
118 }
120
122
127 inline const Aws::String& GetMasterAccountId() const { return m_masterAccountId; }
128 template <typename MasterAccountIdT = Aws::String>
129 void SetMasterAccountId(MasterAccountIdT&& value) {
130 m_masterAccountIdHasBeenSet = true;
131 m_masterAccountId = std::forward<MasterAccountIdT>(value);
132 }
133 template <typename MasterAccountIdT = Aws::String>
134 GetMemberResult& WithMasterAccountId(MasterAccountIdT&& value) {
135 SetMasterAccountId(std::forward<MasterAccountIdT>(value));
136 return *this;
137 }
139
141
145 inline RelationshipStatus GetRelationshipStatus() const { return m_relationshipStatus; }
147 m_relationshipStatusHasBeenSet = true;
148 m_relationshipStatus = value;
149 }
152 return *this;
153 }
155
157
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 void SetTags(TagsT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags = std::forward<TagsT>(value);
166 }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 GetMemberResult& WithTags(TagsT&& value) {
169 SetTags(std::forward<TagsT>(value));
170 return *this;
171 }
172 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
173 GetMemberResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
174 m_tagsHasBeenSet = true;
175 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
176 return *this;
177 }
179
181
186 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
188 void SetUpdatedAt(UpdatedAtT&& value) {
189 m_updatedAtHasBeenSet = true;
190 m_updatedAt = std::forward<UpdatedAtT>(value);
191 }
192 template <typename UpdatedAtT = Aws::Utils::DateTime>
193 GetMemberResult& WithUpdatedAt(UpdatedAtT&& value) {
194 SetUpdatedAt(std::forward<UpdatedAtT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
208 GetMemberResult& WithRequestId(RequestIdT&& value) {
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_accountId;
217
218 Aws::String m_administratorAccountId;
219
220 Aws::String m_arn;
221
222 Aws::String m_email;
223
224 Aws::Utils::DateTime m_invitedAt{};
225
226 Aws::String m_masterAccountId;
227
229
231
232 Aws::Utils::DateTime m_updatedAt{};
233
234 Aws::String m_requestId;
235 Aws::Http::HttpResponseCode m_HttpResponseCode;
236 bool m_accountIdHasBeenSet = false;
237 bool m_administratorAccountIdHasBeenSet = false;
238 bool m_arnHasBeenSet = false;
239 bool m_emailHasBeenSet = false;
240 bool m_invitedAtHasBeenSet = false;
241 bool m_masterAccountIdHasBeenSet = false;
242 bool m_relationshipStatusHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244 bool m_updatedAtHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace Macie2
250} // namespace Aws
GetMemberResult & WithAccountId(AccountIdT &&value)
AWS_MACIE2_API GetMemberResult()=default
const Aws::String & GetMasterAccountId() const
const Aws::Utils::DateTime & GetInvitedAt() const
GetMemberResult & WithRequestId(RequestIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
GetMemberResult & WithArn(ArnT &&value)
GetMemberResult & WithAdministratorAccountId(AdministratorAccountIdT &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetAccountId() const
GetMemberResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_MACIE2_API GetMemberResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAccountId(AccountIdT &&value)
GetMemberResult & WithEmail(EmailT &&value)
GetMemberResult & WithRelationshipStatus(RelationshipStatus value)
void SetInvitedAt(InvitedAtT &&value)
GetMemberResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAdministratorAccountId(AdministratorAccountIdT &&value)
AWS_MACIE2_API GetMemberResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMemberResult & WithTags(TagsT &&value)
const Aws::String & GetAdministratorAccountId() const
GetMemberResult & WithMasterAccountId(MasterAccountIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetArn() const
const Aws::String & GetEmail() const
void SetRequestId(RequestIdT &&value)
void SetMasterAccountId(MasterAccountIdT &&value)
RelationshipStatus GetRelationshipStatus() const
void SetRelationshipStatus(RelationshipStatus value)
GetMemberResult & WithInvitedAt(InvitedAtT &&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
Aws::Utils::Json::JsonValue JsonValue