AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename UserIdT = Aws::String>
50 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
51 template<typename UserIdT = Aws::String>
52 User& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
54
56
62 inline UserStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(UserStatus value) { m_statusHasBeenSet = true; m_status = value; }
65 inline User& WithStatus(UserStatus value) { SetStatus(value); return *this;}
67
69
72 inline const Aws::String& GetFirstName() const { return m_firstName; }
73 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
74 template<typename FirstNameT = Aws::String>
75 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
76 template<typename FirstNameT = Aws::String>
77 User& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetLastName() const { return m_lastName; }
85 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
86 template<typename LastNameT = Aws::String>
87 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
88 template<typename LastNameT = Aws::String>
89 User& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
91
93
97 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
98 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
99 template<typename EmailAddressT = Aws::String>
100 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
101 template<typename EmailAddressT = Aws::String>
102 User& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
104
106
113 inline UserType GetType() const { return m_type; }
114 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
115 inline void SetType(UserType value) { m_typeHasBeenSet = true; m_type = value; }
116 inline User& WithType(UserType value) { SetType(value); return *this;}
118
120
128 inline ApiAccess GetApiAccess() const { return m_apiAccess; }
129 inline bool ApiAccessHasBeenSet() const { return m_apiAccessHasBeenSet; }
130 inline void SetApiAccess(ApiAccess value) { m_apiAccessHasBeenSet = true; m_apiAccess = value; }
131 inline User& WithApiAccess(ApiAccess value) { SetApiAccess(value); return *this;}
133
135
141 inline const Aws::String& GetApiAccessPrincipalArn() const { return m_apiAccessPrincipalArn; }
142 inline bool ApiAccessPrincipalArnHasBeenSet() const { return m_apiAccessPrincipalArnHasBeenSet; }
143 template<typename ApiAccessPrincipalArnT = Aws::String>
144 void SetApiAccessPrincipalArn(ApiAccessPrincipalArnT&& value) { m_apiAccessPrincipalArnHasBeenSet = true; m_apiAccessPrincipalArn = std::forward<ApiAccessPrincipalArnT>(value); }
145 template<typename ApiAccessPrincipalArnT = Aws::String>
146 User& WithApiAccessPrincipalArn(ApiAccessPrincipalArnT&& value) { SetApiAccessPrincipalArn(std::forward<ApiAccessPrincipalArnT>(value)); return *this;}
148
150
154 inline long long GetCreateTime() const { return m_createTime; }
155 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
156 inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; }
157 inline User& WithCreateTime(long long value) { SetCreateTime(value); return *this;}
159
161
165 inline long long GetLastEnabledTime() const { return m_lastEnabledTime; }
166 inline bool LastEnabledTimeHasBeenSet() const { return m_lastEnabledTimeHasBeenSet; }
167 inline void SetLastEnabledTime(long long value) { m_lastEnabledTimeHasBeenSet = true; m_lastEnabledTime = value; }
168 inline User& WithLastEnabledTime(long long value) { SetLastEnabledTime(value); return *this;}
170
172
176 inline long long GetLastDisabledTime() const { return m_lastDisabledTime; }
177 inline bool LastDisabledTimeHasBeenSet() const { return m_lastDisabledTimeHasBeenSet; }
178 inline void SetLastDisabledTime(long long value) { m_lastDisabledTimeHasBeenSet = true; m_lastDisabledTime = value; }
179 inline User& WithLastDisabledTime(long long value) { SetLastDisabledTime(value); return *this;}
181
183
187 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
188 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
189 inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
190 inline User& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
192
194
198 inline long long GetLastLoginTime() const { return m_lastLoginTime; }
199 inline bool LastLoginTimeHasBeenSet() const { return m_lastLoginTimeHasBeenSet; }
200 inline void SetLastLoginTime(long long value) { m_lastLoginTimeHasBeenSet = true; m_lastLoginTime = value; }
201 inline User& WithLastLoginTime(long long value) { SetLastLoginTime(value); return *this;}
203 private:
204
205 Aws::String m_userId;
206 bool m_userIdHasBeenSet = false;
207
209 bool m_statusHasBeenSet = false;
210
211 Aws::String m_firstName;
212 bool m_firstNameHasBeenSet = false;
213
214 Aws::String m_lastName;
215 bool m_lastNameHasBeenSet = false;
216
217 Aws::String m_emailAddress;
218 bool m_emailAddressHasBeenSet = false;
219
221 bool m_typeHasBeenSet = false;
222
223 ApiAccess m_apiAccess{ApiAccess::NOT_SET};
224 bool m_apiAccessHasBeenSet = false;
225
226 Aws::String m_apiAccessPrincipalArn;
227 bool m_apiAccessPrincipalArnHasBeenSet = false;
228
229 long long m_createTime{0};
230 bool m_createTimeHasBeenSet = false;
231
232 long long m_lastEnabledTime{0};
233 bool m_lastEnabledTimeHasBeenSet = false;
234
235 long long m_lastDisabledTime{0};
236 bool m_lastDisabledTimeHasBeenSet = false;
237
238 long long m_lastModifiedTime{0};
239 bool m_lastModifiedTimeHasBeenSet = false;
240
241 long long m_lastLoginTime{0};
242 bool m_lastLoginTimeHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace FinSpaceData
247} // namespace Aws
void SetLastModifiedTime(long long value)
Definition User.h:189
long long GetLastEnabledTime() const
Definition User.h:165
User & WithStatus(UserStatus value)
Definition User.h:65
const Aws::String & GetFirstName() const
Definition User.h:72
User & WithUserId(UserIdT &&value)
Definition User.h:52
void SetFirstName(FirstNameT &&value)
Definition User.h:75
const Aws::String & GetLastName() const
Definition User.h:84
UserType GetType() const
Definition User.h:113
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
User & WithLastDisabledTime(long long value)
Definition User.h:179
User & WithType(UserType value)
Definition User.h:116
User & WithLastLoginTime(long long value)
Definition User.h:201
void SetLastLoginTime(long long value)
Definition User.h:200
bool StatusHasBeenSet() const
Definition User.h:63
void SetApiAccess(ApiAccess value)
Definition User.h:130
bool LastNameHasBeenSet() const
Definition User.h:85
const Aws::String & GetApiAccessPrincipalArn() const
Definition User.h:141
long long GetLastDisabledTime() const
Definition User.h:176
UserStatus GetStatus() const
Definition User.h:62
const Aws::String & GetUserId() const
Definition User.h:47
User & WithCreateTime(long long value)
Definition User.h:157
User & WithLastName(LastNameT &&value)
Definition User.h:89
void SetLastName(LastNameT &&value)
Definition User.h:87
User & WithFirstName(FirstNameT &&value)
Definition User.h:77
User & WithLastEnabledTime(long long value)
Definition User.h:168
AWS_FINSPACEDATA_API User(Aws::Utils::Json::JsonView jsonValue)
long long GetLastModifiedTime() const
Definition User.h:187
void SetType(UserType value)
Definition User.h:115
const Aws::String & GetEmailAddress() const
Definition User.h:97
bool FirstNameHasBeenSet() const
Definition User.h:73
bool ApiAccessPrincipalArnHasBeenSet() const
Definition User.h:142
ApiAccess GetApiAccess() const
Definition User.h:128
User & WithEmailAddress(EmailAddressT &&value)
Definition User.h:102
bool LastEnabledTimeHasBeenSet() const
Definition User.h:166
bool LastDisabledTimeHasBeenSet() const
Definition User.h:177
AWS_FINSPACEDATA_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACEDATA_API User()=default
bool LastModifiedTimeHasBeenSet() const
Definition User.h:188
User & WithApiAccess(ApiAccess value)
Definition User.h:131
long long GetLastLoginTime() const
Definition User.h:198
User & WithLastModifiedTime(long long value)
Definition User.h:190
User & WithApiAccessPrincipalArn(ApiAccessPrincipalArnT &&value)
Definition User.h:146
bool ApiAccessHasBeenSet() const
Definition User.h:129
bool EmailAddressHasBeenSet() const
Definition User.h:98
bool CreateTimeHasBeenSet() const
Definition User.h:155
long long GetCreateTime() const
Definition User.h:154
void SetApiAccessPrincipalArn(ApiAccessPrincipalArnT &&value)
Definition User.h:144
void SetEmailAddress(EmailAddressT &&value)
Definition User.h:100
void SetLastEnabledTime(long long value)
Definition User.h:167
bool TypeHasBeenSet() const
Definition User.h:114
void SetStatus(UserStatus value)
Definition User.h:64
bool UserIdHasBeenSet() const
Definition User.h:48
void SetCreateTime(long long value)
Definition User.h:156
void SetUserId(UserIdT &&value)
Definition User.h:50
bool LastLoginTimeHasBeenSet() const
Definition User.h:199
void SetLastDisabledTime(long long value)
Definition User.h:178
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue