AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
GetMemberResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/RelationshipStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Macie2 {
25namespace Model {
27 public:
28 AWS_MACIE2_API GetMemberResult() = default;
31
33
36 inline const Aws::String& GetAccountId() const { return m_accountId; }
37 template <typename AccountIdT = Aws::String>
38 void SetAccountId(AccountIdT&& value) {
39 m_accountIdHasBeenSet = true;
40 m_accountId = std::forward<AccountIdT>(value);
41 }
42 template <typename AccountIdT = Aws::String>
43 GetMemberResult& WithAccountId(AccountIdT&& value) {
44 SetAccountId(std::forward<AccountIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetAdministratorAccountId() const { return m_administratorAccountId; }
54 template <typename AdministratorAccountIdT = Aws::String>
55 void SetAdministratorAccountId(AdministratorAccountIdT&& value) {
56 m_administratorAccountIdHasBeenSet = true;
57 m_administratorAccountId = std::forward<AdministratorAccountIdT>(value);
58 }
59 template <typename AdministratorAccountIdT = Aws::String>
60 GetMemberResult& WithAdministratorAccountId(AdministratorAccountIdT&& value) {
61 SetAdministratorAccountId(std::forward<AdministratorAccountIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetArn() const { return m_arn; }
71 template <typename ArnT = Aws::String>
72 void SetArn(ArnT&& value) {
73 m_arnHasBeenSet = true;
74 m_arn = std::forward<ArnT>(value);
75 }
76 template <typename ArnT = Aws::String>
77 GetMemberResult& WithArn(ArnT&& value) {
78 SetArn(std::forward<ArnT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetEmail() const { return m_email; }
89 template <typename EmailT = Aws::String>
90 void SetEmail(EmailT&& value) {
91 m_emailHasBeenSet = true;
92 m_email = std::forward<EmailT>(value);
93 }
94 template <typename EmailT = Aws::String>
95 GetMemberResult& WithEmail(EmailT&& value) {
96 SetEmail(std::forward<EmailT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Utils::DateTime& GetInvitedAt() const { return m_invitedAt; }
108 template <typename InvitedAtT = Aws::Utils::DateTime>
109 void SetInvitedAt(InvitedAtT&& value) {
110 m_invitedAtHasBeenSet = true;
111 m_invitedAt = std::forward<InvitedAtT>(value);
112 }
113 template <typename InvitedAtT = Aws::Utils::DateTime>
114 GetMemberResult& WithInvitedAt(InvitedAtT&& value) {
115 SetInvitedAt(std::forward<InvitedAtT>(value));
116 return *this;
117 }
119
121
126 inline const Aws::String& GetMasterAccountId() const { return m_masterAccountId; }
127 template <typename MasterAccountIdT = Aws::String>
128 void SetMasterAccountId(MasterAccountIdT&& value) {
129 m_masterAccountIdHasBeenSet = true;
130 m_masterAccountId = std::forward<MasterAccountIdT>(value);
131 }
132 template <typename MasterAccountIdT = Aws::String>
133 GetMemberResult& WithMasterAccountId(MasterAccountIdT&& value) {
134 SetMasterAccountId(std::forward<MasterAccountIdT>(value));
135 return *this;
136 }
138
140
144 inline RelationshipStatus GetRelationshipStatus() const { return m_relationshipStatus; }
146 m_relationshipStatusHasBeenSet = true;
147 m_relationshipStatus = value;
148 }
151 return *this;
152 }
154
156
160 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 void SetTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags = std::forward<TagsT>(value);
165 }
166 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 GetMemberResult& WithTags(TagsT&& value) {
168 SetTags(std::forward<TagsT>(value));
169 return *this;
170 }
171 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
172 GetMemberResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 void SetUpdatedAt(UpdatedAtT&& value) {
188 m_updatedAtHasBeenSet = true;
189 m_updatedAt = std::forward<UpdatedAtT>(value);
190 }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 GetMemberResult& WithUpdatedAt(UpdatedAtT&& value) {
193 SetUpdatedAt(std::forward<UpdatedAtT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
207 GetMemberResult& WithRequestId(RequestIdT&& value) {
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_accountId;
214
215 Aws::String m_administratorAccountId;
216
217 Aws::String m_arn;
218
219 Aws::String m_email;
220
221 Aws::Utils::DateTime m_invitedAt{};
222
223 Aws::String m_masterAccountId;
224
226
228
229 Aws::Utils::DateTime m_updatedAt{};
230
231 Aws::String m_requestId;
232 bool m_accountIdHasBeenSet = false;
233 bool m_administratorAccountIdHasBeenSet = false;
234 bool m_arnHasBeenSet = false;
235 bool m_emailHasBeenSet = false;
236 bool m_invitedAtHasBeenSet = false;
237 bool m_masterAccountIdHasBeenSet = false;
238 bool m_relationshipStatusHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240 bool m_updatedAtHasBeenSet = false;
241 bool m_requestIdHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace Macie2
246} // 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)
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