AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Member.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 {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2 {
23namespace Model {
24
31class Member {
32 public:
33 AWS_MACIE2_API Member() = default;
34 AWS_MACIE2_API Member(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACIE2_API Member& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
50 Member& WithAccountId(AccountIdT&& value) {
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAdministratorAccountId() const { return m_administratorAccountId; }
61 inline bool AdministratorAccountIdHasBeenSet() const { return m_administratorAccountIdHasBeenSet; }
62 template <typename AdministratorAccountIdT = Aws::String>
63 void SetAdministratorAccountId(AdministratorAccountIdT&& value) {
64 m_administratorAccountIdHasBeenSet = true;
65 m_administratorAccountId = std::forward<AdministratorAccountIdT>(value);
66 }
67 template <typename AdministratorAccountIdT = Aws::String>
68 Member& WithAdministratorAccountId(AdministratorAccountIdT&& value) {
69 SetAdministratorAccountId(std::forward<AdministratorAccountIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 Member& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetEmail() const { return m_email; }
98 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
99 template <typename EmailT = Aws::String>
100 void SetEmail(EmailT&& value) {
101 m_emailHasBeenSet = true;
102 m_email = std::forward<EmailT>(value);
103 }
104 template <typename EmailT = Aws::String>
105 Member& WithEmail(EmailT&& value) {
106 SetEmail(std::forward<EmailT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Utils::DateTime& GetInvitedAt() const { return m_invitedAt; }
118 inline bool InvitedAtHasBeenSet() const { return m_invitedAtHasBeenSet; }
119 template <typename InvitedAtT = Aws::Utils::DateTime>
120 void SetInvitedAt(InvitedAtT&& value) {
121 m_invitedAtHasBeenSet = true;
122 m_invitedAt = std::forward<InvitedAtT>(value);
123 }
124 template <typename InvitedAtT = Aws::Utils::DateTime>
125 Member& WithInvitedAt(InvitedAtT&& value) {
126 SetInvitedAt(std::forward<InvitedAtT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::String& GetMasterAccountId() const { return m_masterAccountId; }
138 inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
139 template <typename MasterAccountIdT = Aws::String>
140 void SetMasterAccountId(MasterAccountIdT&& value) {
141 m_masterAccountIdHasBeenSet = true;
142 m_masterAccountId = std::forward<MasterAccountIdT>(value);
143 }
144 template <typename MasterAccountIdT = Aws::String>
145 Member& WithMasterAccountId(MasterAccountIdT&& value) {
146 SetMasterAccountId(std::forward<MasterAccountIdT>(value));
147 return *this;
148 }
150
152
156 inline RelationshipStatus GetRelationshipStatus() const { return m_relationshipStatus; }
157 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
159 m_relationshipStatusHasBeenSet = true;
160 m_relationshipStatus = value;
161 }
164 return *this;
165 }
167
169
173 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 void SetTags(TagsT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags = std::forward<TagsT>(value);
179 }
180 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 Member& WithTags(TagsT&& value) {
182 SetTags(std::forward<TagsT>(value));
183 return *this;
184 }
185 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
186 Member& AddTags(TagsKeyT&& key, TagsValueT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
200 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
201 template <typename UpdatedAtT = Aws::Utils::DateTime>
202 void SetUpdatedAt(UpdatedAtT&& value) {
203 m_updatedAtHasBeenSet = true;
204 m_updatedAt = std::forward<UpdatedAtT>(value);
205 }
206 template <typename UpdatedAtT = Aws::Utils::DateTime>
207 Member& WithUpdatedAt(UpdatedAtT&& value) {
208 SetUpdatedAt(std::forward<UpdatedAtT>(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 bool m_accountIdHasBeenSet = false;
231 bool m_administratorAccountIdHasBeenSet = false;
232 bool m_arnHasBeenSet = false;
233 bool m_emailHasBeenSet = false;
234 bool m_invitedAtHasBeenSet = false;
235 bool m_masterAccountIdHasBeenSet = false;
236 bool m_relationshipStatusHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238 bool m_updatedAtHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace Macie2
243} // namespace Aws
void SetEmail(EmailT &&value)
Definition Member.h:100
Member & WithRelationshipStatus(RelationshipStatus value)
Definition Member.h:162
bool AccountIdHasBeenSet() const
Definition Member.h:43
Member & WithInvitedAt(InvitedAtT &&value)
Definition Member.h:125
bool AdministratorAccountIdHasBeenSet() const
Definition Member.h:61
Member & WithAccountId(AccountIdT &&value)
Definition Member.h:50
Member & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Member.h:186
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Member.h:199
void SetAccountId(AccountIdT &&value)
Definition Member.h:45
void SetUpdatedAt(UpdatedAtT &&value)
Definition Member.h:202
bool ArnHasBeenSet() const
Definition Member.h:79
bool TagsHasBeenSet() const
Definition Member.h:174
bool InvitedAtHasBeenSet() const
Definition Member.h:118
AWS_MACIE2_API Member & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Member()=default
void SetRelationshipStatus(RelationshipStatus value)
Definition Member.h:158
void SetTags(TagsT &&value)
Definition Member.h:176
Member & WithArn(ArnT &&value)
Definition Member.h:86
RelationshipStatus GetRelationshipStatus() const
Definition Member.h:156
const Aws::String & GetMasterAccountId() const
Definition Member.h:137
AWS_MACIE2_API Member(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAdministratorAccountId() const
Definition Member.h:60
const Aws::Utils::DateTime & GetInvitedAt() const
Definition Member.h:117
void SetMasterAccountId(MasterAccountIdT &&value)
Definition Member.h:140
Member & WithUpdatedAt(UpdatedAtT &&value)
Definition Member.h:207
void SetArn(ArnT &&value)
Definition Member.h:81
void SetInvitedAt(InvitedAtT &&value)
Definition Member.h:120
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEmail() const
Definition Member.h:97
bool UpdatedAtHasBeenSet() const
Definition Member.h:200
bool MasterAccountIdHasBeenSet() const
Definition Member.h:138
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Member.h:173
bool EmailHasBeenSet() const
Definition Member.h:98
Member & WithEmail(EmailT &&value)
Definition Member.h:105
Member & WithTags(TagsT &&value)
Definition Member.h:181
const Aws::String & GetAccountId() const
Definition Member.h:42
void SetAdministratorAccountId(AdministratorAccountIdT &&value)
Definition Member.h:63
bool RelationshipStatusHasBeenSet() const
Definition Member.h:157
Member & WithAdministratorAccountId(AdministratorAccountIdT &&value)
Definition Member.h:68
Member & WithMasterAccountId(MasterAccountIdT &&value)
Definition Member.h:145
const Aws::String & GetArn() const
Definition Member.h:78
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