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/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/appstream/model/AuthenticationType.h>
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:
36 AWS_APPSTREAM_API User();
37 AWS_APPSTREAM_API User(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline User& WithArn(const char* value) { SetArn(value); return *this;}
55
57
61 inline const Aws::String& GetUserName() const{ return m_userName; }
62 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
63 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
64 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
65 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
66 inline User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
67 inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
68 inline User& WithUserName(const char* value) { SetUserName(value); return *this;}
70
72
75 inline bool GetEnabled() const{ return m_enabled; }
76 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
78 inline User& WithEnabled(bool value) { SetEnabled(value); return *this;}
80
82
90 inline const Aws::String& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
95 inline User& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
96 inline User& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
97 inline User& WithStatus(const char* value) { SetStatus(value); return *this;}
99
101
104 inline const Aws::String& GetFirstName() const{ return m_firstName; }
105 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
106 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
107 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
108 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
109 inline User& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
110 inline User& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
111 inline User& WithFirstName(const char* value) { SetFirstName(value); return *this;}
113
115
118 inline const Aws::String& GetLastName() const{ return m_lastName; }
119 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
120 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
121 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
122 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
123 inline User& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
124 inline User& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
125 inline User& WithLastName(const char* value) { SetLastName(value); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
133 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
134 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
135 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
136 inline User& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
137 inline User& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
139
141
144 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
145 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
146 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
147 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
148 inline User& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;}
149 inline User& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
151 private:
152
153 Aws::String m_arn;
154 bool m_arnHasBeenSet = false;
155
156 Aws::String m_userName;
157 bool m_userNameHasBeenSet = false;
158
159 bool m_enabled;
160 bool m_enabledHasBeenSet = false;
161
162 Aws::String m_status;
163 bool m_statusHasBeenSet = false;
164
165 Aws::String m_firstName;
166 bool m_firstNameHasBeenSet = false;
167
168 Aws::String m_lastName;
169 bool m_lastNameHasBeenSet = false;
170
171 Aws::Utils::DateTime m_createdTime;
172 bool m_createdTimeHasBeenSet = false;
173
174 AuthenticationType m_authenticationType;
175 bool m_authenticationTypeHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace AppStream
180} // namespace Aws
const Aws::String & GetStatus() const
Definition User.h:90
User & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition User.h:136
const AuthenticationType & GetAuthenticationType() const
Definition User.h:144
User & WithFirstName(const Aws::String &value)
Definition User.h:109
bool EnabledHasBeenSet() const
Definition User.h:76
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition User.h:134
User & WithStatus(Aws::String &&value)
Definition User.h:96
bool AuthenticationTypeHasBeenSet() const
Definition User.h:145
void SetStatus(Aws::String &&value)
Definition User.h:93
const Aws::String & GetLastName() const
Definition User.h:118
void SetStatus(const char *value)
Definition User.h:94
AWS_APPSTREAM_API User()
const Aws::String & GetUserName() const
Definition User.h:61
const Aws::Utils::DateTime & GetCreatedTime() const
Definition User.h:132
void SetArn(const char *value)
Definition User.h:50
void SetUserName(const Aws::String &value)
Definition User.h:63
User & WithStatus(const char *value)
Definition User.h:97
User & WithUserName(const Aws::String &value)
Definition User.h:66
User & WithFirstName(const char *value)
Definition User.h:111
void SetArn(Aws::String &&value)
Definition User.h:49
User & WithLastName(const Aws::String &value)
Definition User.h:123
void SetUserName(Aws::String &&value)
Definition User.h:64
bool LastNameHasBeenSet() const
Definition User.h:119
User & WithLastName(const char *value)
Definition User.h:125
void SetAuthenticationType(const AuthenticationType &value)
Definition User.h:146
User & WithUserName(const char *value)
Definition User.h:68
User & WithAuthenticationType(AuthenticationType &&value)
Definition User.h:149
bool UserNameHasBeenSet() const
Definition User.h:62
User & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition User.h:137
void SetLastName(Aws::String &&value)
Definition User.h:121
void SetFirstName(const Aws::String &value)
Definition User.h:106
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition User.h:135
void SetStatus(const Aws::String &value)
Definition User.h:92
bool FirstNameHasBeenSet() const
Definition User.h:105
User & WithLastName(Aws::String &&value)
Definition User.h:124
User & WithArn(const char *value)
Definition User.h:53
void SetEnabled(bool value)
Definition User.h:77
void SetFirstName(Aws::String &&value)
Definition User.h:107
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArnHasBeenSet() const
Definition User.h:47
bool CreatedTimeHasBeenSet() const
Definition User.h:133
User & WithStatus(const Aws::String &value)
Definition User.h:95
void SetLastName(const Aws::String &value)
Definition User.h:120
void SetAuthenticationType(AuthenticationType &&value)
Definition User.h:147
User & WithEnabled(bool value)
Definition User.h:78
const Aws::String & GetArn() const
Definition User.h:46
User & WithUserName(Aws::String &&value)
Definition User.h:67
AWS_APPSTREAM_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirstName() const
Definition User.h:104
void SetFirstName(const char *value)
Definition User.h:108
User & WithArn(Aws::String &&value)
Definition User.h:52
User & WithAuthenticationType(const AuthenticationType &value)
Definition User.h:148
void SetUserName(const char *value)
Definition User.h:65
AWS_APPSTREAM_API User(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const Aws::String &value)
Definition User.h:48
bool StatusHasBeenSet() const
Definition User.h:91
User & WithArn(const Aws::String &value)
Definition User.h:51
bool GetEnabled() const
Definition User.h:75
User & WithFirstName(Aws::String &&value)
Definition User.h:110
void SetLastName(const char *value)
Definition User.h:122
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue