AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetUserResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wickr/Wickr_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Wickr {
24namespace Model {
26 public:
27 AWS_WICKR_API GetUserResult() = default;
30
32
35 inline const Aws::String& GetUserId() const { return m_userId; }
36 template <typename UserIdT = Aws::String>
37 void SetUserId(UserIdT&& value) {
38 m_userIdHasBeenSet = true;
39 m_userId = std::forward<UserIdT>(value);
40 }
41 template <typename UserIdT = Aws::String>
42 GetUserResult& WithUserId(UserIdT&& value) {
43 SetUserId(std::forward<UserIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetFirstName() const { return m_firstName; }
53 template <typename FirstNameT = Aws::String>
54 void SetFirstName(FirstNameT&& value) {
55 m_firstNameHasBeenSet = true;
56 m_firstName = std::forward<FirstNameT>(value);
57 }
58 template <typename FirstNameT = Aws::String>
59 GetUserResult& WithFirstName(FirstNameT&& value) {
60 SetFirstName(std::forward<FirstNameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetLastName() const { return m_lastName; }
70 template <typename LastNameT = Aws::String>
71 void SetLastName(LastNameT&& value) {
72 m_lastNameHasBeenSet = true;
73 m_lastName = std::forward<LastNameT>(value);
74 }
75 template <typename LastNameT = Aws::String>
76 GetUserResult& WithLastName(LastNameT&& value) {
77 SetLastName(std::forward<LastNameT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetUsername() const { return m_username; }
87 template <typename UsernameT = Aws::String>
88 void SetUsername(UsernameT&& value) {
89 m_usernameHasBeenSet = true;
90 m_username = std::forward<UsernameT>(value);
91 }
92 template <typename UsernameT = Aws::String>
93 GetUserResult& WithUsername(UsernameT&& value) {
94 SetUsername(std::forward<UsernameT>(value));
95 return *this;
96 }
98
100
103 inline bool GetIsAdmin() const { return m_isAdmin; }
104 inline void SetIsAdmin(bool value) {
105 m_isAdminHasBeenSet = true;
106 m_isAdmin = value;
107 }
108 inline GetUserResult& WithIsAdmin(bool value) {
109 SetIsAdmin(value);
110 return *this;
111 }
113
115
118 inline bool GetSuspended() const { return m_suspended; }
119 inline void SetSuspended(bool value) {
120 m_suspendedHasBeenSet = true;
121 m_suspended = value;
122 }
123 inline GetUserResult& WithSuspended(bool value) {
124 SetSuspended(value);
125 return *this;
126 }
128
130
133 inline int GetStatus() const { return m_status; }
134 inline void SetStatus(int value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
138 inline GetUserResult& WithStatus(int value) {
139 SetStatus(value);
140 return *this;
141 }
143
145
149 inline int GetLastActivity() const { return m_lastActivity; }
150 inline void SetLastActivity(int value) {
151 m_lastActivityHasBeenSet = true;
152 m_lastActivity = value;
153 }
154 inline GetUserResult& WithLastActivity(int value) {
155 SetLastActivity(value);
156 return *this;
157 }
159
161
165 inline int GetLastLogin() const { return m_lastLogin; }
166 inline void SetLastLogin(int value) {
167 m_lastLoginHasBeenSet = true;
168 m_lastLogin = value;
169 }
170 inline GetUserResult& WithLastLogin(int value) {
171 SetLastLogin(value);
172 return *this;
173 }
175
177
180 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
181 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
182 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
183 m_securityGroupIdsHasBeenSet = true;
184 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
185 }
186 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
187 GetUserResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
188 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
189 return *this;
190 }
191 template <typename SecurityGroupIdsT = Aws::String>
192 GetUserResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
193 m_securityGroupIdsHasBeenSet = true;
194 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
208 GetUserResult& WithRequestId(RequestIdT&& value) {
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_userId;
217
218 Aws::String m_firstName;
219
220 Aws::String m_lastName;
221
222 Aws::String m_username;
223
224 bool m_isAdmin{false};
225
226 bool m_suspended{false};
227
228 int m_status{0};
229
230 int m_lastActivity{0};
231
232 int m_lastLogin{0};
233
234 Aws::Vector<Aws::String> m_securityGroupIds;
235
236 Aws::String m_requestId;
237 Aws::Http::HttpResponseCode m_HttpResponseCode;
238 bool m_userIdHasBeenSet = false;
239 bool m_firstNameHasBeenSet = false;
240 bool m_lastNameHasBeenSet = false;
241 bool m_usernameHasBeenSet = false;
242 bool m_isAdminHasBeenSet = false;
243 bool m_suspendedHasBeenSet = false;
244 bool m_statusHasBeenSet = false;
245 bool m_lastActivityHasBeenSet = false;
246 bool m_lastLoginHasBeenSet = false;
247 bool m_securityGroupIdsHasBeenSet = false;
248 bool m_requestIdHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace Wickr
253} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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