AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
9#include <aws/finspace-data/model/ApiAccess.h>
10#include <aws/finspace-data/model/UserStatus.h>
11#include <aws/finspace-data/model/UserType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FinSpaceData {
23namespace Model {
24
30class User {
31 public:
32 AWS_FINSPACEDATA_API User() = default;
33 AWS_FINSPACEDATA_API User(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FINSPACEDATA_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetUserId() const { return m_userId; }
42 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
43 template <typename UserIdT = Aws::String>
44 void SetUserId(UserIdT&& value) {
45 m_userIdHasBeenSet = true;
46 m_userId = std::forward<UserIdT>(value);
47 }
48 template <typename UserIdT = Aws::String>
49 User& WithUserId(UserIdT&& value) {
50 SetUserId(std::forward<UserIdT>(value));
51 return *this;
52 }
54
56
62 inline UserStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(UserStatus value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
68 inline User& WithStatus(UserStatus value) {
69 SetStatus(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetFirstName() const { return m_firstName; }
79 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
80 template <typename FirstNameT = Aws::String>
81 void SetFirstName(FirstNameT&& value) {
82 m_firstNameHasBeenSet = true;
83 m_firstName = std::forward<FirstNameT>(value);
84 }
85 template <typename FirstNameT = Aws::String>
86 User& WithFirstName(FirstNameT&& value) {
87 SetFirstName(std::forward<FirstNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetLastName() const { return m_lastName; }
97 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
98 template <typename LastNameT = Aws::String>
99 void SetLastName(LastNameT&& value) {
100 m_lastNameHasBeenSet = true;
101 m_lastName = std::forward<LastNameT>(value);
102 }
103 template <typename LastNameT = Aws::String>
104 User& WithLastName(LastNameT&& value) {
105 SetLastName(std::forward<LastNameT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
116 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
117 template <typename EmailAddressT = Aws::String>
118 void SetEmailAddress(EmailAddressT&& value) {
119 m_emailAddressHasBeenSet = true;
120 m_emailAddress = std::forward<EmailAddressT>(value);
121 }
122 template <typename EmailAddressT = Aws::String>
123 User& WithEmailAddress(EmailAddressT&& value) {
124 SetEmailAddress(std::forward<EmailAddressT>(value));
125 return *this;
126 }
128
130
137 inline UserType GetType() const { return m_type; }
138 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
139 inline void SetType(UserType value) {
140 m_typeHasBeenSet = true;
141 m_type = value;
142 }
143 inline User& WithType(UserType value) {
144 SetType(value);
145 return *this;
146 }
148
150
158 inline ApiAccess GetApiAccess() const { return m_apiAccess; }
159 inline bool ApiAccessHasBeenSet() const { return m_apiAccessHasBeenSet; }
160 inline void SetApiAccess(ApiAccess value) {
161 m_apiAccessHasBeenSet = true;
162 m_apiAccess = value;
163 }
164 inline User& WithApiAccess(ApiAccess value) {
165 SetApiAccess(value);
166 return *this;
167 }
169
171
177 inline const Aws::String& GetApiAccessPrincipalArn() const { return m_apiAccessPrincipalArn; }
178 inline bool ApiAccessPrincipalArnHasBeenSet() const { return m_apiAccessPrincipalArnHasBeenSet; }
179 template <typename ApiAccessPrincipalArnT = Aws::String>
180 void SetApiAccessPrincipalArn(ApiAccessPrincipalArnT&& value) {
181 m_apiAccessPrincipalArnHasBeenSet = true;
182 m_apiAccessPrincipalArn = std::forward<ApiAccessPrincipalArnT>(value);
183 }
184 template <typename ApiAccessPrincipalArnT = Aws::String>
185 User& WithApiAccessPrincipalArn(ApiAccessPrincipalArnT&& value) {
186 SetApiAccessPrincipalArn(std::forward<ApiAccessPrincipalArnT>(value));
187 return *this;
188 }
190
192
196 inline long long GetCreateTime() const { return m_createTime; }
197 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
198 inline void SetCreateTime(long long value) {
199 m_createTimeHasBeenSet = true;
200 m_createTime = value;
201 }
202 inline User& WithCreateTime(long long value) {
203 SetCreateTime(value);
204 return *this;
205 }
207
209
213 inline long long GetLastEnabledTime() const { return m_lastEnabledTime; }
214 inline bool LastEnabledTimeHasBeenSet() const { return m_lastEnabledTimeHasBeenSet; }
215 inline void SetLastEnabledTime(long long value) {
216 m_lastEnabledTimeHasBeenSet = true;
217 m_lastEnabledTime = value;
218 }
219 inline User& WithLastEnabledTime(long long value) {
220 SetLastEnabledTime(value);
221 return *this;
222 }
224
226
230 inline long long GetLastDisabledTime() const { return m_lastDisabledTime; }
231 inline bool LastDisabledTimeHasBeenSet() const { return m_lastDisabledTimeHasBeenSet; }
232 inline void SetLastDisabledTime(long long value) {
233 m_lastDisabledTimeHasBeenSet = true;
234 m_lastDisabledTime = value;
235 }
236 inline User& WithLastDisabledTime(long long value) {
237 SetLastDisabledTime(value);
238 return *this;
239 }
241
243
247 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
248 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
249 inline void SetLastModifiedTime(long long value) {
250 m_lastModifiedTimeHasBeenSet = true;
251 m_lastModifiedTime = value;
252 }
253 inline User& WithLastModifiedTime(long long value) {
254 SetLastModifiedTime(value);
255 return *this;
256 }
258
260
264 inline long long GetLastLoginTime() const { return m_lastLoginTime; }
265 inline bool LastLoginTimeHasBeenSet() const { return m_lastLoginTimeHasBeenSet; }
266 inline void SetLastLoginTime(long long value) {
267 m_lastLoginTimeHasBeenSet = true;
268 m_lastLoginTime = value;
269 }
270 inline User& WithLastLoginTime(long long value) {
271 SetLastLoginTime(value);
272 return *this;
273 }
275 private:
276 Aws::String m_userId;
277
279
280 Aws::String m_firstName;
281
282 Aws::String m_lastName;
283
284 Aws::String m_emailAddress;
285
287
288 ApiAccess m_apiAccess{ApiAccess::NOT_SET};
289
290 Aws::String m_apiAccessPrincipalArn;
291
292 long long m_createTime{0};
293
294 long long m_lastEnabledTime{0};
295
296 long long m_lastDisabledTime{0};
297
298 long long m_lastModifiedTime{0};
299
300 long long m_lastLoginTime{0};
301 bool m_userIdHasBeenSet = false;
302 bool m_statusHasBeenSet = false;
303 bool m_firstNameHasBeenSet = false;
304 bool m_lastNameHasBeenSet = false;
305 bool m_emailAddressHasBeenSet = false;
306 bool m_typeHasBeenSet = false;
307 bool m_apiAccessHasBeenSet = false;
308 bool m_apiAccessPrincipalArnHasBeenSet = false;
309 bool m_createTimeHasBeenSet = false;
310 bool m_lastEnabledTimeHasBeenSet = false;
311 bool m_lastDisabledTimeHasBeenSet = false;
312 bool m_lastModifiedTimeHasBeenSet = false;
313 bool m_lastLoginTimeHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace FinSpaceData
318} // namespace Aws
void SetLastModifiedTime(long long value)
Definition User.h:249
long long GetLastEnabledTime() const
Definition User.h:213
User & WithStatus(UserStatus value)
Definition User.h:68
const Aws::String & GetFirstName() const
Definition User.h:78
User & WithUserId(UserIdT &&value)
Definition User.h:49
void SetFirstName(FirstNameT &&value)
Definition User.h:81
const Aws::String & GetLastName() const
Definition User.h:96
UserType GetType() const
Definition User.h:137
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
User & WithLastDisabledTime(long long value)
Definition User.h:236
User & WithType(UserType value)
Definition User.h:143
User & WithLastLoginTime(long long value)
Definition User.h:270
void SetLastLoginTime(long long value)
Definition User.h:266
bool StatusHasBeenSet() const
Definition User.h:63
void SetApiAccess(ApiAccess value)
Definition User.h:160
bool LastNameHasBeenSet() const
Definition User.h:97
const Aws::String & GetApiAccessPrincipalArn() const
Definition User.h:177
long long GetLastDisabledTime() const
Definition User.h:230
UserStatus GetStatus() const
Definition User.h:62
const Aws::String & GetUserId() const
Definition User.h:41
User & WithCreateTime(long long value)
Definition User.h:202
User & WithLastName(LastNameT &&value)
Definition User.h:104
void SetLastName(LastNameT &&value)
Definition User.h:99
User & WithFirstName(FirstNameT &&value)
Definition User.h:86
User & WithLastEnabledTime(long long value)
Definition User.h:219
AWS_FINSPACEDATA_API User(Aws::Utils::Json::JsonView jsonValue)
long long GetLastModifiedTime() const
Definition User.h:247
void SetType(UserType value)
Definition User.h:139
const Aws::String & GetEmailAddress() const
Definition User.h:115
bool FirstNameHasBeenSet() const
Definition User.h:79
bool ApiAccessPrincipalArnHasBeenSet() const
Definition User.h:178
ApiAccess GetApiAccess() const
Definition User.h:158
User & WithEmailAddress(EmailAddressT &&value)
Definition User.h:123
bool LastEnabledTimeHasBeenSet() const
Definition User.h:214
bool LastDisabledTimeHasBeenSet() const
Definition User.h:231
AWS_FINSPACEDATA_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACEDATA_API User()=default
bool LastModifiedTimeHasBeenSet() const
Definition User.h:248
User & WithApiAccess(ApiAccess value)
Definition User.h:164
long long GetLastLoginTime() const
Definition User.h:264
User & WithLastModifiedTime(long long value)
Definition User.h:253
User & WithApiAccessPrincipalArn(ApiAccessPrincipalArnT &&value)
Definition User.h:185
bool ApiAccessHasBeenSet() const
Definition User.h:159
bool EmailAddressHasBeenSet() const
Definition User.h:116
bool CreateTimeHasBeenSet() const
Definition User.h:197
long long GetCreateTime() const
Definition User.h:196
void SetApiAccessPrincipalArn(ApiAccessPrincipalArnT &&value)
Definition User.h:180
void SetEmailAddress(EmailAddressT &&value)
Definition User.h:118
void SetLastEnabledTime(long long value)
Definition User.h:215
bool TypeHasBeenSet() const
Definition User.h:138
void SetStatus(UserStatus value)
Definition User.h:64
bool UserIdHasBeenSet() const
Definition User.h:42
void SetCreateTime(long long value)
Definition User.h:198
void SetUserId(UserIdT &&value)
Definition User.h:44
bool LastLoginTimeHasBeenSet() const
Definition User.h:265
void SetLastDisabledTime(long long value)
Definition User.h:232
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue