AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace-data/model/UserStatus.h>
10#include <aws/finspace-data/model/UserType.h>
11#include <aws/finspace-data/model/ApiAccess.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FinSpaceData
25{
26namespace Model
27{
28
34 class User
35 {
36 public:
37 AWS_FINSPACEDATA_API User();
38 AWS_FINSPACEDATA_API User(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FINSPACEDATA_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetUserId() const{ return m_userId; }
48 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
49 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
50 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
51 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
52 inline User& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
53 inline User& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
54 inline User& WithUserId(const char* value) { SetUserId(value); return *this;}
56
58
64 inline const UserStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const UserStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(UserStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline User& WithStatus(const UserStatus& value) { SetStatus(value); return *this;}
69 inline User& WithStatus(UserStatus&& value) { SetStatus(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetFirstName() const{ return m_firstName; }
77 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
78 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
79 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
80 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
81 inline User& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
82 inline User& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
83 inline User& WithFirstName(const char* value) { SetFirstName(value); return *this;}
85
87
90 inline const Aws::String& GetLastName() const{ return m_lastName; }
91 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
92 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
93 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
94 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
95 inline User& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
96 inline User& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
97 inline User& WithLastName(const char* value) { SetLastName(value); return *this;}
99
101
105 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
106 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
107 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
108 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
109 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
110 inline User& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
111 inline User& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
112 inline User& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
114
116
123 inline const UserType& GetType() const{ return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(const UserType& value) { m_typeHasBeenSet = true; m_type = value; }
126 inline void SetType(UserType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 inline User& WithType(const UserType& value) { SetType(value); return *this;}
128 inline User& WithType(UserType&& value) { SetType(std::move(value)); return *this;}
130
132
140 inline const ApiAccess& GetApiAccess() const{ return m_apiAccess; }
141 inline bool ApiAccessHasBeenSet() const { return m_apiAccessHasBeenSet; }
142 inline void SetApiAccess(const ApiAccess& value) { m_apiAccessHasBeenSet = true; m_apiAccess = value; }
143 inline void SetApiAccess(ApiAccess&& value) { m_apiAccessHasBeenSet = true; m_apiAccess = std::move(value); }
144 inline User& WithApiAccess(const ApiAccess& value) { SetApiAccess(value); return *this;}
145 inline User& WithApiAccess(ApiAccess&& value) { SetApiAccess(std::move(value)); return *this;}
147
149
155 inline const Aws::String& GetApiAccessPrincipalArn() const{ return m_apiAccessPrincipalArn; }
156 inline bool ApiAccessPrincipalArnHasBeenSet() const { return m_apiAccessPrincipalArnHasBeenSet; }
157 inline void SetApiAccessPrincipalArn(const Aws::String& value) { m_apiAccessPrincipalArnHasBeenSet = true; m_apiAccessPrincipalArn = value; }
158 inline void SetApiAccessPrincipalArn(Aws::String&& value) { m_apiAccessPrincipalArnHasBeenSet = true; m_apiAccessPrincipalArn = std::move(value); }
159 inline void SetApiAccessPrincipalArn(const char* value) { m_apiAccessPrincipalArnHasBeenSet = true; m_apiAccessPrincipalArn.assign(value); }
160 inline User& WithApiAccessPrincipalArn(const Aws::String& value) { SetApiAccessPrincipalArn(value); return *this;}
161 inline User& WithApiAccessPrincipalArn(Aws::String&& value) { SetApiAccessPrincipalArn(std::move(value)); return *this;}
162 inline User& WithApiAccessPrincipalArn(const char* value) { SetApiAccessPrincipalArn(value); return *this;}
164
166
170 inline long long GetCreateTime() const{ return m_createTime; }
171 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
172 inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; }
173 inline User& WithCreateTime(long long value) { SetCreateTime(value); return *this;}
175
177
181 inline long long GetLastEnabledTime() const{ return m_lastEnabledTime; }
182 inline bool LastEnabledTimeHasBeenSet() const { return m_lastEnabledTimeHasBeenSet; }
183 inline void SetLastEnabledTime(long long value) { m_lastEnabledTimeHasBeenSet = true; m_lastEnabledTime = value; }
184 inline User& WithLastEnabledTime(long long value) { SetLastEnabledTime(value); return *this;}
186
188
192 inline long long GetLastDisabledTime() const{ return m_lastDisabledTime; }
193 inline bool LastDisabledTimeHasBeenSet() const { return m_lastDisabledTimeHasBeenSet; }
194 inline void SetLastDisabledTime(long long value) { m_lastDisabledTimeHasBeenSet = true; m_lastDisabledTime = value; }
195 inline User& WithLastDisabledTime(long long value) { SetLastDisabledTime(value); return *this;}
197
199
203 inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; }
204 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
205 inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
206 inline User& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
208
210
214 inline long long GetLastLoginTime() const{ return m_lastLoginTime; }
215 inline bool LastLoginTimeHasBeenSet() const { return m_lastLoginTimeHasBeenSet; }
216 inline void SetLastLoginTime(long long value) { m_lastLoginTimeHasBeenSet = true; m_lastLoginTime = value; }
217 inline User& WithLastLoginTime(long long value) { SetLastLoginTime(value); return *this;}
219 private:
220
221 Aws::String m_userId;
222 bool m_userIdHasBeenSet = false;
223
224 UserStatus m_status;
225 bool m_statusHasBeenSet = false;
226
227 Aws::String m_firstName;
228 bool m_firstNameHasBeenSet = false;
229
230 Aws::String m_lastName;
231 bool m_lastNameHasBeenSet = false;
232
233 Aws::String m_emailAddress;
234 bool m_emailAddressHasBeenSet = false;
235
236 UserType m_type;
237 bool m_typeHasBeenSet = false;
238
239 ApiAccess m_apiAccess;
240 bool m_apiAccessHasBeenSet = false;
241
242 Aws::String m_apiAccessPrincipalArn;
243 bool m_apiAccessPrincipalArnHasBeenSet = false;
244
245 long long m_createTime;
246 bool m_createTimeHasBeenSet = false;
247
248 long long m_lastEnabledTime;
249 bool m_lastEnabledTimeHasBeenSet = false;
250
251 long long m_lastDisabledTime;
252 bool m_lastDisabledTimeHasBeenSet = false;
253
254 long long m_lastModifiedTime;
255 bool m_lastModifiedTimeHasBeenSet = false;
256
257 long long m_lastLoginTime;
258 bool m_lastLoginTimeHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace FinSpaceData
263} // namespace Aws
void SetFirstName(const Aws::String &value)
Definition User.h:78
void SetEmailAddress(const char *value)
Definition User.h:109
void SetLastModifiedTime(long long value)
Definition User.h:205
void SetUserId(Aws::String &&value)
Definition User.h:50
long long GetLastEnabledTime() const
Definition User.h:181
User & WithStatus(const UserStatus &value)
Definition User.h:68
void SetApiAccess(const ApiAccess &value)
Definition User.h:142
User & WithEmailAddress(Aws::String &&value)
Definition User.h:111
const Aws::String & GetFirstName() const
Definition User.h:76
void SetLastName(Aws::String &&value)
Definition User.h:93
User & WithApiAccessPrincipalArn(const char *value)
Definition User.h:162
const UserStatus & GetStatus() const
Definition User.h:64
User & WithFirstName(const Aws::String &value)
Definition User.h:81
const Aws::String & GetLastName() const
Definition User.h:90
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(UserType &&value)
Definition User.h:126
User & WithLastDisabledTime(long long value)
Definition User.h:195
User & WithStatus(UserStatus &&value)
Definition User.h:69
User & WithLastLoginTime(long long value)
Definition User.h:217
void SetLastLoginTime(long long value)
Definition User.h:216
void SetApiAccessPrincipalArn(Aws::String &&value)
Definition User.h:158
bool StatusHasBeenSet() const
Definition User.h:65
User & WithApiAccessPrincipalArn(Aws::String &&value)
Definition User.h:161
User & WithUserId(Aws::String &&value)
Definition User.h:53
void SetLastName(const Aws::String &value)
Definition User.h:92
bool LastNameHasBeenSet() const
Definition User.h:91
const Aws::String & GetApiAccessPrincipalArn() const
Definition User.h:155
long long GetLastDisabledTime() const
Definition User.h:192
User & WithType(const UserType &value)
Definition User.h:127
const Aws::String & GetUserId() const
Definition User.h:47
User & WithCreateTime(long long value)
Definition User.h:173
const ApiAccess & GetApiAccess() const
Definition User.h:140
void SetUserId(const char *value)
Definition User.h:51
void SetEmailAddress(const Aws::String &value)
Definition User.h:107
void SetApiAccessPrincipalArn(const char *value)
Definition User.h:159
void SetStatus(const UserStatus &value)
Definition User.h:66
User & WithLastEnabledTime(long long value)
Definition User.h:184
void SetType(const UserType &value)
Definition User.h:125
AWS_FINSPACEDATA_API User(Aws::Utils::Json::JsonView jsonValue)
void SetUserId(const Aws::String &value)
Definition User.h:49
void SetLastName(const char *value)
Definition User.h:94
long long GetLastModifiedTime() const
Definition User.h:203
User & WithApiAccessPrincipalArn(const Aws::String &value)
Definition User.h:160
void SetEmailAddress(Aws::String &&value)
Definition User.h:108
const Aws::String & GetEmailAddress() const
Definition User.h:105
bool FirstNameHasBeenSet() const
Definition User.h:77
void SetApiAccessPrincipalArn(const Aws::String &value)
Definition User.h:157
bool ApiAccessPrincipalArnHasBeenSet() const
Definition User.h:156
User & WithEmailAddress(const char *value)
Definition User.h:112
void SetFirstName(const char *value)
Definition User.h:80
User & WithLastName(const Aws::String &value)
Definition User.h:95
const UserType & GetType() const
Definition User.h:123
User & WithApiAccess(ApiAccess &&value)
Definition User.h:145
AWS_FINSPACEDATA_API User()
User & WithApiAccess(const ApiAccess &value)
Definition User.h:144
User & WithUserId(const char *value)
Definition User.h:54
User & WithUserId(const Aws::String &value)
Definition User.h:52
bool LastEnabledTimeHasBeenSet() const
Definition User.h:182
User & WithFirstName(Aws::String &&value)
Definition User.h:82
bool LastDisabledTimeHasBeenSet() const
Definition User.h:193
User & WithLastName(Aws::String &&value)
Definition User.h:96
AWS_FINSPACEDATA_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
User & WithType(UserType &&value)
Definition User.h:128
User & WithFirstName(const char *value)
Definition User.h:83
void SetFirstName(Aws::String &&value)
Definition User.h:79
bool LastModifiedTimeHasBeenSet() const
Definition User.h:204
User & WithLastName(const char *value)
Definition User.h:97
void SetStatus(UserStatus &&value)
Definition User.h:67
long long GetLastLoginTime() const
Definition User.h:214
User & WithLastModifiedTime(long long value)
Definition User.h:206
bool ApiAccessHasBeenSet() const
Definition User.h:141
bool EmailAddressHasBeenSet() const
Definition User.h:106
void SetApiAccess(ApiAccess &&value)
Definition User.h:143
bool CreateTimeHasBeenSet() const
Definition User.h:171
long long GetCreateTime() const
Definition User.h:170
void SetLastEnabledTime(long long value)
Definition User.h:183
bool TypeHasBeenSet() const
Definition User.h:124
bool UserIdHasBeenSet() const
Definition User.h:48
void SetCreateTime(long long value)
Definition User.h:172
User & WithEmailAddress(const Aws::String &value)
Definition User.h:110
bool LastLoginTimeHasBeenSet() const
Definition User.h:215
void SetLastDisabledTime(long long value)
Definition User.h:194
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue