AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetUserResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Wickr {
23namespace Model {
25 public:
26 AWS_WICKR_API GetUserResult() = default;
29
31
34 inline const Aws::String& GetUserId() const { return m_userId; }
35 template <typename UserIdT = Aws::String>
36 void SetUserId(UserIdT&& value) {
37 m_userIdHasBeenSet = true;
38 m_userId = std::forward<UserIdT>(value);
39 }
40 template <typename UserIdT = Aws::String>
41 GetUserResult& WithUserId(UserIdT&& value) {
42 SetUserId(std::forward<UserIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetFirstName() const { return m_firstName; }
52 template <typename FirstNameT = Aws::String>
53 void SetFirstName(FirstNameT&& value) {
54 m_firstNameHasBeenSet = true;
55 m_firstName = std::forward<FirstNameT>(value);
56 }
57 template <typename FirstNameT = Aws::String>
58 GetUserResult& WithFirstName(FirstNameT&& value) {
59 SetFirstName(std::forward<FirstNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetLastName() const { return m_lastName; }
69 template <typename LastNameT = Aws::String>
70 void SetLastName(LastNameT&& value) {
71 m_lastNameHasBeenSet = true;
72 m_lastName = std::forward<LastNameT>(value);
73 }
74 template <typename LastNameT = Aws::String>
75 GetUserResult& WithLastName(LastNameT&& value) {
76 SetLastName(std::forward<LastNameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetUsername() const { return m_username; }
86 template <typename UsernameT = Aws::String>
87 void SetUsername(UsernameT&& value) {
88 m_usernameHasBeenSet = true;
89 m_username = std::forward<UsernameT>(value);
90 }
91 template <typename UsernameT = Aws::String>
92 GetUserResult& WithUsername(UsernameT&& value) {
93 SetUsername(std::forward<UsernameT>(value));
94 return *this;
95 }
97
99
102 inline bool GetIsAdmin() const { return m_isAdmin; }
103 inline void SetIsAdmin(bool value) {
104 m_isAdminHasBeenSet = true;
105 m_isAdmin = value;
106 }
107 inline GetUserResult& WithIsAdmin(bool value) {
108 SetIsAdmin(value);
109 return *this;
110 }
112
114
117 inline bool GetSuspended() const { return m_suspended; }
118 inline void SetSuspended(bool value) {
119 m_suspendedHasBeenSet = true;
120 m_suspended = value;
121 }
122 inline GetUserResult& WithSuspended(bool value) {
123 SetSuspended(value);
124 return *this;
125 }
127
129
132 inline int GetStatus() const { return m_status; }
133 inline void SetStatus(int value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
137 inline GetUserResult& WithStatus(int value) {
138 SetStatus(value);
139 return *this;
140 }
142
144
148 inline int GetLastActivity() const { return m_lastActivity; }
149 inline void SetLastActivity(int value) {
150 m_lastActivityHasBeenSet = true;
151 m_lastActivity = value;
152 }
153 inline GetUserResult& WithLastActivity(int value) {
154 SetLastActivity(value);
155 return *this;
156 }
158
160
164 inline int GetLastLogin() const { return m_lastLogin; }
165 inline void SetLastLogin(int value) {
166 m_lastLoginHasBeenSet = true;
167 m_lastLogin = value;
168 }
169 inline GetUserResult& WithLastLogin(int value) {
170 SetLastLogin(value);
171 return *this;
172 }
174
176
179 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
180 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
181 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
182 m_securityGroupIdsHasBeenSet = true;
183 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
184 }
185 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
186 GetUserResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
187 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
188 return *this;
189 }
190 template <typename SecurityGroupIdsT = Aws::String>
191 GetUserResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
192 m_securityGroupIdsHasBeenSet = true;
193 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
207 GetUserResult& WithRequestId(RequestIdT&& value) {
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_userId;
214
215 Aws::String m_firstName;
216
217 Aws::String m_lastName;
218
219 Aws::String m_username;
220
221 bool m_isAdmin{false};
222
223 bool m_suspended{false};
224
225 int m_status{0};
226
227 int m_lastActivity{0};
228
229 int m_lastLogin{0};
230
231 Aws::Vector<Aws::String> m_securityGroupIds;
232
233 Aws::String m_requestId;
234 bool m_userIdHasBeenSet = false;
235 bool m_firstNameHasBeenSet = false;
236 bool m_lastNameHasBeenSet = false;
237 bool m_usernameHasBeenSet = false;
238 bool m_isAdminHasBeenSet = false;
239 bool m_suspendedHasBeenSet = false;
240 bool m_statusHasBeenSet = false;
241 bool m_lastActivityHasBeenSet = false;
242 bool m_lastLoginHasBeenSet = false;
243 bool m_securityGroupIdsHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace Wickr
249} // namespace Aws
GetUserResult & WithStatus(int value)
const Aws::String & GetLastName() const
GetUserResult & WithFirstName(FirstNameT &&value)
AWS_WICKR_API GetUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUserResult & WithLastActivity(int value)
AWS_WICKR_API GetUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUserResult & WithSecurityGroupIds(SecurityGroupIdsT &&value)
GetUserResult & WithLastName(LastNameT &&value)
GetUserResult & WithUserId(UserIdT &&value)
void SetLastName(LastNameT &&value)
AWS_WICKR_API GetUserResult()=default
void SetRequestId(RequestIdT &&value)
void SetUserId(UserIdT &&value)
GetUserResult & WithRequestId(RequestIdT &&value)
GetUserResult & WithUsername(UsernameT &&value)
GetUserResult & WithLastLogin(int value)
GetUserResult & WithSuspended(bool value)
const Aws::String & GetUserId() const
const Aws::String & GetFirstName() const
void SetUsername(UsernameT &&value)
GetUserResult & AddSecurityGroupIds(SecurityGroupIdsT &&value)
GetUserResult & WithIsAdmin(bool value)
const Aws::String & GetUsername() const
void SetFirstName(FirstNameT &&value)
const Aws::String & GetRequestId() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue