AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 User& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
63 template<typename UserNameT = Aws::String>
64 User& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
66
68
71 inline bool GetEnabled() const { return m_enabled; }
72 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
73 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
74 inline User& WithEnabled(bool value) { SetEnabled(value); return *this;}
76
78
86 inline const Aws::String& GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 template<typename StatusT = Aws::String>
89 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
90 template<typename StatusT = Aws::String>
91 User& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
93
95
98 inline const Aws::String& GetFirstName() const { return m_firstName; }
99 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
100 template<typename FirstNameT = Aws::String>
101 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
102 template<typename FirstNameT = Aws::String>
103 User& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
105
107
110 inline const Aws::String& GetLastName() const { return m_lastName; }
111 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
112 template<typename LastNameT = Aws::String>
113 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
114 template<typename LastNameT = Aws::String>
115 User& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
123 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
124 template<typename CreatedTimeT = Aws::Utils::DateTime>
125 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
126 template<typename CreatedTimeT = Aws::Utils::DateTime>
127 User& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
129
131
134 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
135 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
136 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
139 private:
140
141 Aws::String m_arn;
142 bool m_arnHasBeenSet = false;
143
144 Aws::String m_userName;
145 bool m_userNameHasBeenSet = false;
146
147 bool m_enabled{false};
148 bool m_enabledHasBeenSet = false;
149
150 Aws::String m_status;
151 bool m_statusHasBeenSet = false;
152
153 Aws::String m_firstName;
154 bool m_firstNameHasBeenSet = false;
155
156 Aws::String m_lastName;
157 bool m_lastNameHasBeenSet = false;
158
159 Aws::Utils::DateTime m_createdTime{};
160 bool m_createdTimeHasBeenSet = false;
161
163 bool m_authenticationTypeHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace AppStream
168} // namespace Aws
const Aws::String & GetStatus() const
Definition User.h:86
bool EnabledHasBeenSet() const
Definition User.h:72
User & WithCreatedTime(CreatedTimeT &&value)
Definition User.h:127
bool AuthenticationTypeHasBeenSet() const
Definition User.h:135
void SetLastName(LastNameT &&value)
Definition User.h:113
const Aws::String & GetLastName() const
Definition User.h:110
User & WithFirstName(FirstNameT &&value)
Definition User.h:103
void SetUserName(UserNameT &&value)
Definition User.h:62
const Aws::String & GetUserName() const
Definition User.h:59
User & WithLastName(LastNameT &&value)
Definition User.h:115
const Aws::Utils::DateTime & GetCreatedTime() const
Definition User.h:122
User & WithAuthenticationType(AuthenticationType value)
Definition User.h:137
User & WithStatus(StatusT &&value)
Definition User.h:91
bool LastNameHasBeenSet() const
Definition User.h:111
User & WithArn(ArnT &&value)
Definition User.h:51
AWS_APPSTREAM_API User()=default
bool UserNameHasBeenSet() const
Definition User.h:60
bool FirstNameHasBeenSet() const
Definition User.h:99
AuthenticationType GetAuthenticationType() const
Definition User.h:134
void SetEnabled(bool value)
Definition User.h:73
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArnHasBeenSet() const
Definition User.h:47
bool CreatedTimeHasBeenSet() const
Definition User.h:123
void SetArn(ArnT &&value)
Definition User.h:49
void SetAuthenticationType(AuthenticationType value)
Definition User.h:136
User & WithEnabled(bool value)
Definition User.h:74
const Aws::String & GetArn() const
Definition User.h:46
AWS_APPSTREAM_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirstName() const
Definition User.h:98
User & WithUserName(UserNameT &&value)
Definition User.h:64
AWS_APPSTREAM_API User(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition User.h:87
void SetStatus(StatusT &&value)
Definition User.h:89
void SetFirstName(FirstNameT &&value)
Definition User.h:101
bool GetEnabled() const
Definition User.h:71
void SetCreatedTime(CreatedTimeT &&value)
Definition User.h:125
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue