AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
User.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppStream
24{
25namespace Model
26{
27
33 class User
34 {
35 public:
40
41
45 inline const Aws::String& GetArn() const{ return m_arn; }
46
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51
55 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56
60 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61
65 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66
70 inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71
75 inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76
80 inline User& WithArn(const char* value) { SetArn(value); return *this;}
81
82
87 inline const Aws::String& GetUserName() const{ return m_userName; }
88
93 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
94
99 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
100
105 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
106
111 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
112
117 inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
118
123 inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
124
129 inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
130
131
135 inline bool GetEnabled() const{ return m_enabled; }
136
140 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
141
145 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
146
150 inline User& WithEnabled(bool value) { SetEnabled(value); return *this;}
151
152
161 inline const Aws::String& GetStatus() const{ return m_status; }
162
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172
181 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
182
191 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
192
201 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
202
211 inline User& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
212
221 inline User& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
222
231 inline User& WithStatus(const char* value) { SetStatus(value); return *this;}
232
233
237 inline const Aws::String& GetFirstName() const{ return m_firstName; }
238
242 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
243
247 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
248
252 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
253
257 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
258
262 inline User& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
263
267 inline User& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
268
272 inline User& WithFirstName(const char* value) { SetFirstName(value); return *this;}
273
274
278 inline const Aws::String& GetLastName() const{ return m_lastName; }
279
283 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
284
288 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
289
293 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
294
298 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
299
303 inline User& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
304
308 inline User& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
309
313 inline User& WithLastName(const char* value) { SetLastName(value); return *this;}
314
315
319 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
320
324 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
325
329 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
330
334 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
335
339 inline User& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
340
344 inline User& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
345
346
350 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
351
355 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
356
360 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
361
365 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
366
370 inline User& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;}
371
375 inline User& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
376
377 private:
378
379 Aws::String m_arn;
380 bool m_arnHasBeenSet = false;
381
382 Aws::String m_userName;
383 bool m_userNameHasBeenSet = false;
384
385 bool m_enabled;
386 bool m_enabledHasBeenSet = false;
387
388 Aws::String m_status;
389 bool m_statusHasBeenSet = false;
390
391 Aws::String m_firstName;
392 bool m_firstNameHasBeenSet = false;
393
394 Aws::String m_lastName;
395 bool m_lastNameHasBeenSet = false;
396
397 Aws::Utils::DateTime m_createdTime;
398 bool m_createdTimeHasBeenSet = false;
399
400 AuthenticationType m_authenticationType;
401 bool m_authenticationTypeHasBeenSet = false;
402 };
403
404} // namespace Model
405} // namespace AppStream
406} // namespace Aws
#define AWS_APPSTREAM_API
const Aws::String & GetStatus() const
Definition: User.h:161
User & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition: User.h:339
const AuthenticationType & GetAuthenticationType() const
Definition: User.h:350
User & WithFirstName(const Aws::String &value)
Definition: User.h:262
bool EnabledHasBeenSet() const
Definition: User.h:140
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition: User.h:329
User & WithStatus(Aws::String &&value)
Definition: User.h:221
bool AuthenticationTypeHasBeenSet() const
Definition: User.h:355
void SetStatus(Aws::String &&value)
Definition: User.h:191
const Aws::String & GetLastName() const
Definition: User.h:278
void SetStatus(const char *value)
Definition: User.h:201
AWS_APPSTREAM_API User()
const Aws::String & GetUserName() const
Definition: User.h:87
const Aws::Utils::DateTime & GetCreatedTime() const
Definition: User.h:319
void SetArn(const char *value)
Definition: User.h:65
void SetUserName(const Aws::String &value)
Definition: User.h:99
User & WithStatus(const char *value)
Definition: User.h:231
User & WithUserName(const Aws::String &value)
Definition: User.h:117
User & WithFirstName(const char *value)
Definition: User.h:272
void SetArn(Aws::String &&value)
Definition: User.h:60
User & WithLastName(const Aws::String &value)
Definition: User.h:303
void SetUserName(Aws::String &&value)
Definition: User.h:105
bool LastNameHasBeenSet() const
Definition: User.h:283
User & WithLastName(const char *value)
Definition: User.h:313
void SetAuthenticationType(const AuthenticationType &value)
Definition: User.h:360
User & WithUserName(const char *value)
Definition: User.h:129
User & WithAuthenticationType(AuthenticationType &&value)
Definition: User.h:375
bool UserNameHasBeenSet() const
Definition: User.h:93
User & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition: User.h:344
void SetLastName(Aws::String &&value)
Definition: User.h:293
void SetFirstName(const Aws::String &value)
Definition: User.h:247
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition: User.h:334
void SetStatus(const Aws::String &value)
Definition: User.h:181
bool FirstNameHasBeenSet() const
Definition: User.h:242
User & WithLastName(Aws::String &&value)
Definition: User.h:308
User & WithArn(const char *value)
Definition: User.h:80
void SetEnabled(bool value)
Definition: User.h:145
void SetFirstName(Aws::String &&value)
Definition: User.h:252
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArnHasBeenSet() const
Definition: User.h:50
bool CreatedTimeHasBeenSet() const
Definition: User.h:324
User & WithStatus(const Aws::String &value)
Definition: User.h:211
void SetLastName(const Aws::String &value)
Definition: User.h:288
void SetAuthenticationType(AuthenticationType &&value)
Definition: User.h:365
User & WithEnabled(bool value)
Definition: User.h:150
const Aws::String & GetArn() const
Definition: User.h:45
User & WithUserName(Aws::String &&value)
Definition: User.h:123
AWS_APPSTREAM_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirstName() const
Definition: User.h:237
void SetFirstName(const char *value)
Definition: User.h:257
User & WithArn(Aws::String &&value)
Definition: User.h:75
User & WithAuthenticationType(const AuthenticationType &value)
Definition: User.h:370
void SetUserName(const char *value)
Definition: User.h:111
AWS_APPSTREAM_API User(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const Aws::String &value)
Definition: User.h:55
bool StatusHasBeenSet() const
Definition: User.h:171
User & WithArn(const Aws::String &value)
Definition: User.h:70
bool GetEnabled() const
Definition: User.h:135
User & WithFirstName(Aws::String &&value)
Definition: User.h:267
void SetLastName(const char *value)
Definition: User.h:298
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String