AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateUserResult.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 UpdateUserResult() = 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 UpdateUserResult& WithUserId(UserIdT&& value) {
43 SetUserId(std::forward<UserIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetNetworkId() const { return m_networkId; }
53 template <typename NetworkIdT = Aws::String>
54 void SetNetworkId(NetworkIdT&& value) {
55 m_networkIdHasBeenSet = true;
56 m_networkId = std::forward<NetworkIdT>(value);
57 }
58 template <typename NetworkIdT = Aws::String>
59 UpdateUserResult& WithNetworkId(NetworkIdT&& value) {
60 SetNetworkId(std::forward<NetworkIdT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
71 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
73 m_securityGroupIdsHasBeenSet = true;
74 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
75 }
76 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
77 UpdateUserResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
78 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
79 return *this;
80 }
81 template <typename SecurityGroupIdsT = Aws::String>
82 UpdateUserResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
83 m_securityGroupIdsHasBeenSet = true;
84 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFirstName() const { return m_firstName; }
94 template <typename FirstNameT = Aws::String>
95 void SetFirstName(FirstNameT&& value) {
96 m_firstNameHasBeenSet = true;
97 m_firstName = std::forward<FirstNameT>(value);
98 }
99 template <typename FirstNameT = Aws::String>
100 UpdateUserResult& WithFirstName(FirstNameT&& value) {
101 SetFirstName(std::forward<FirstNameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetLastName() const { return m_lastName; }
111 template <typename LastNameT = Aws::String>
112 void SetLastName(LastNameT&& value) {
113 m_lastNameHasBeenSet = true;
114 m_lastName = std::forward<LastNameT>(value);
115 }
116 template <typename LastNameT = Aws::String>
117 UpdateUserResult& WithLastName(LastNameT&& value) {
118 SetLastName(std::forward<LastNameT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetMiddleName() const { return m_middleName; }
128 template <typename MiddleNameT = Aws::String>
129 void SetMiddleName(MiddleNameT&& value) {
130 m_middleNameHasBeenSet = true;
131 m_middleName = std::forward<MiddleNameT>(value);
132 }
133 template <typename MiddleNameT = Aws::String>
134 UpdateUserResult& WithMiddleName(MiddleNameT&& value) {
135 SetMiddleName(std::forward<MiddleNameT>(value));
136 return *this;
137 }
139
141
144 inline bool GetSuspended() const { return m_suspended; }
145 inline void SetSuspended(bool value) {
146 m_suspendedHasBeenSet = true;
147 m_suspended = value;
148 }
149 inline UpdateUserResult& WithSuspended(bool value) {
150 SetSuspended(value);
151 return *this;
152 }
154
156
160 inline int GetModified() const { return m_modified; }
161 inline void SetModified(int value) {
162 m_modifiedHasBeenSet = true;
163 m_modified = value;
164 }
165 inline UpdateUserResult& WithModified(int value) {
166 SetModified(value);
167 return *this;
168 }
170
172
175 inline int GetStatus() const { return m_status; }
176 inline void SetStatus(int value) {
177 m_statusHasBeenSet = true;
178 m_status = value;
179 }
180 inline UpdateUserResult& WithStatus(int value) {
181 SetStatus(value);
182 return *this;
183 }
185
187
190 inline const Aws::String& GetInviteCode() const { return m_inviteCode; }
191 template <typename InviteCodeT = Aws::String>
192 void SetInviteCode(InviteCodeT&& value) {
193 m_inviteCodeHasBeenSet = true;
194 m_inviteCode = std::forward<InviteCodeT>(value);
195 }
196 template <typename InviteCodeT = Aws::String>
197 UpdateUserResult& WithInviteCode(InviteCodeT&& value) {
198 SetInviteCode(std::forward<InviteCodeT>(value));
199 return *this;
200 }
202
204
208 inline int GetInviteExpiration() const { return m_inviteExpiration; }
209 inline void SetInviteExpiration(int value) {
210 m_inviteExpirationHasBeenSet = true;
211 m_inviteExpiration = value;
212 }
214 SetInviteExpiration(value);
215 return *this;
216 }
218
220
223 inline bool GetCodeValidation() const { return m_codeValidation; }
224 inline void SetCodeValidation(bool value) {
225 m_codeValidationHasBeenSet = true;
226 m_codeValidation = value;
227 }
229 SetCodeValidation(value);
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 UpdateUserResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
249
250 private:
251 Aws::String m_userId;
252
253 Aws::String m_networkId;
254
255 Aws::Vector<Aws::String> m_securityGroupIds;
256
257 Aws::String m_firstName;
258
259 Aws::String m_lastName;
260
261 Aws::String m_middleName;
262
263 bool m_suspended{false};
264
265 int m_modified{0};
266
267 int m_status{0};
268
269 Aws::String m_inviteCode;
270
271 int m_inviteExpiration{0};
272
273 bool m_codeValidation{false};
274
275 Aws::String m_requestId;
276 Aws::Http::HttpResponseCode m_HttpResponseCode;
277 bool m_userIdHasBeenSet = false;
278 bool m_networkIdHasBeenSet = false;
279 bool m_securityGroupIdsHasBeenSet = false;
280 bool m_firstNameHasBeenSet = false;
281 bool m_lastNameHasBeenSet = false;
282 bool m_middleNameHasBeenSet = false;
283 bool m_suspendedHasBeenSet = false;
284 bool m_modifiedHasBeenSet = false;
285 bool m_statusHasBeenSet = false;
286 bool m_inviteCodeHasBeenSet = false;
287 bool m_inviteExpirationHasBeenSet = false;
288 bool m_codeValidationHasBeenSet = false;
289 bool m_requestIdHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace Wickr
294} // namespace Aws
AWS_WICKR_API UpdateUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
UpdateUserResult & WithStatus(int value)
UpdateUserResult & WithInviteExpiration(int value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetNetworkId() const
const Aws::String & GetUserId() const
UpdateUserResult & WithNetworkId(NetworkIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
UpdateUserResult & WithRequestId(RequestIdT &&value)
void SetFirstName(FirstNameT &&value)
void SetInviteCode(InviteCodeT &&value)
const Aws::String & GetFirstName() const
void SetNetworkId(NetworkIdT &&value)
const Aws::String & GetLastName() const
UpdateUserResult & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetInviteCode() const
UpdateUserResult & WithInviteCode(InviteCodeT &&value)
UpdateUserResult & WithSuspended(bool value)
const Aws::String & GetMiddleName() const
AWS_WICKR_API UpdateUserResult()=default
UpdateUserResult & WithCodeValidation(bool value)
AWS_WICKR_API UpdateUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateUserResult & WithModified(int value)
UpdateUserResult & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetMiddleName(MiddleNameT &&value)
UpdateUserResult & WithLastName(LastNameT &&value)
UpdateUserResult & WithFirstName(FirstNameT &&value)
UpdateUserResult & WithUserId(UserIdT &&value)
UpdateUserResult & WithMiddleName(MiddleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue