AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AuthenticationType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppStream {
22namespace Model {
23
29class User {
30 public:
31 AWS_APPSTREAM_API User() = default;
32 AWS_APPSTREAM_API User(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPSTREAM_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 User& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetUserName() const { return m_userName; }
60 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
61 template <typename UserNameT = Aws::String>
62 void SetUserName(UserNameT&& value) {
63 m_userNameHasBeenSet = true;
64 m_userName = std::forward<UserNameT>(value);
65 }
66 template <typename UserNameT = Aws::String>
67 User& WithUserName(UserNameT&& value) {
68 SetUserName(std::forward<UserNameT>(value));
69 return *this;
70 }
72
74
77 inline bool GetEnabled() const { return m_enabled; }
78 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
79 inline void SetEnabled(bool value) {
80 m_enabledHasBeenSet = true;
81 m_enabled = value;
82 }
83 inline User& WithEnabled(bool value) {
84 SetEnabled(value);
85 return *this;
86 }
88
90
98 inline const Aws::String& GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 template <typename StatusT = Aws::String>
101 void SetStatus(StatusT&& value) {
102 m_statusHasBeenSet = true;
103 m_status = std::forward<StatusT>(value);
104 }
105 template <typename StatusT = Aws::String>
106 User& WithStatus(StatusT&& value) {
107 SetStatus(std::forward<StatusT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetFirstName() const { return m_firstName; }
117 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
118 template <typename FirstNameT = Aws::String>
119 void SetFirstName(FirstNameT&& value) {
120 m_firstNameHasBeenSet = true;
121 m_firstName = std::forward<FirstNameT>(value);
122 }
123 template <typename FirstNameT = Aws::String>
124 User& WithFirstName(FirstNameT&& value) {
125 SetFirstName(std::forward<FirstNameT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetLastName() const { return m_lastName; }
135 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
136 template <typename LastNameT = Aws::String>
137 void SetLastName(LastNameT&& value) {
138 m_lastNameHasBeenSet = true;
139 m_lastName = std::forward<LastNameT>(value);
140 }
141 template <typename LastNameT = Aws::String>
142 User& WithLastName(LastNameT&& value) {
143 SetLastName(std::forward<LastNameT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
153 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
154 template <typename CreatedTimeT = Aws::Utils::DateTime>
155 void SetCreatedTime(CreatedTimeT&& value) {
156 m_createdTimeHasBeenSet = true;
157 m_createdTime = std::forward<CreatedTimeT>(value);
158 }
159 template <typename CreatedTimeT = Aws::Utils::DateTime>
160 User& WithCreatedTime(CreatedTimeT&& value) {
161 SetCreatedTime(std::forward<CreatedTimeT>(value));
162 return *this;
163 }
165
167
170 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
171 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
173 m_authenticationTypeHasBeenSet = true;
174 m_authenticationType = value;
175 }
178 return *this;
179 }
181 private:
182 Aws::String m_arn;
183
184 Aws::String m_userName;
185
186 bool m_enabled{false};
187
188 Aws::String m_status;
189
190 Aws::String m_firstName;
191
192 Aws::String m_lastName;
193
194 Aws::Utils::DateTime m_createdTime{};
195
197 bool m_arnHasBeenSet = false;
198 bool m_userNameHasBeenSet = false;
199 bool m_enabledHasBeenSet = false;
200 bool m_statusHasBeenSet = false;
201 bool m_firstNameHasBeenSet = false;
202 bool m_lastNameHasBeenSet = false;
203 bool m_createdTimeHasBeenSet = false;
204 bool m_authenticationTypeHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace AppStream
209} // namespace Aws
const Aws::String & GetStatus() const
Definition User.h:98
bool EnabledHasBeenSet() const
Definition User.h:78
User & WithCreatedTime(CreatedTimeT &&value)
Definition User.h:160
bool AuthenticationTypeHasBeenSet() const
Definition User.h:171
void SetLastName(LastNameT &&value)
Definition User.h:137
const Aws::String & GetLastName() const
Definition User.h:134
User & WithFirstName(FirstNameT &&value)
Definition User.h:124
void SetUserName(UserNameT &&value)
Definition User.h:62
const Aws::String & GetUserName() const
Definition User.h:59
User & WithLastName(LastNameT &&value)
Definition User.h:142
const Aws::Utils::DateTime & GetCreatedTime() const
Definition User.h:152
User & WithAuthenticationType(AuthenticationType value)
Definition User.h:176
User & WithStatus(StatusT &&value)
Definition User.h:106
bool LastNameHasBeenSet() const
Definition User.h:135
User & WithArn(ArnT &&value)
Definition User.h:48
AWS_APPSTREAM_API User()=default
bool UserNameHasBeenSet() const
Definition User.h:60
bool FirstNameHasBeenSet() const
Definition User.h:117
AuthenticationType GetAuthenticationType() const
Definition User.h:170
void SetEnabled(bool value)
Definition User.h:79
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArnHasBeenSet() const
Definition User.h:41
bool CreatedTimeHasBeenSet() const
Definition User.h:153
void SetArn(ArnT &&value)
Definition User.h:43
void SetAuthenticationType(AuthenticationType value)
Definition User.h:172
User & WithEnabled(bool value)
Definition User.h:83
const Aws::String & GetArn() const
Definition User.h:40
AWS_APPSTREAM_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirstName() const
Definition User.h:116
User & WithUserName(UserNameT &&value)
Definition User.h:67
AWS_APPSTREAM_API User(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition User.h:99
void SetStatus(StatusT &&value)
Definition User.h:101
void SetFirstName(FirstNameT &&value)
Definition User.h:119
bool GetEnabled() const
Definition User.h:77
void SetCreatedTime(CreatedTimeT &&value)
Definition User.h:155
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue