AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateUserResult.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 UpdateUserResult() = 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 UpdateUserResult& WithUserId(UserIdT&& value) {
42 SetUserId(std::forward<UserIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetNetworkId() const { return m_networkId; }
52 template <typename NetworkIdT = Aws::String>
53 void SetNetworkId(NetworkIdT&& value) {
54 m_networkIdHasBeenSet = true;
55 m_networkId = std::forward<NetworkIdT>(value);
56 }
57 template <typename NetworkIdT = Aws::String>
58 UpdateUserResult& WithNetworkId(NetworkIdT&& value) {
59 SetNetworkId(std::forward<NetworkIdT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
70 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
71 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
72 m_securityGroupIdsHasBeenSet = true;
73 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
74 }
75 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
76 UpdateUserResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
77 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
78 return *this;
79 }
80 template <typename SecurityGroupIdsT = Aws::String>
81 UpdateUserResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
82 m_securityGroupIdsHasBeenSet = true;
83 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetFirstName() const { return m_firstName; }
93 template <typename FirstNameT = Aws::String>
94 void SetFirstName(FirstNameT&& value) {
95 m_firstNameHasBeenSet = true;
96 m_firstName = std::forward<FirstNameT>(value);
97 }
98 template <typename FirstNameT = Aws::String>
99 UpdateUserResult& WithFirstName(FirstNameT&& value) {
100 SetFirstName(std::forward<FirstNameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetLastName() const { return m_lastName; }
110 template <typename LastNameT = Aws::String>
111 void SetLastName(LastNameT&& value) {
112 m_lastNameHasBeenSet = true;
113 m_lastName = std::forward<LastNameT>(value);
114 }
115 template <typename LastNameT = Aws::String>
116 UpdateUserResult& WithLastName(LastNameT&& value) {
117 SetLastName(std::forward<LastNameT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetMiddleName() const { return m_middleName; }
127 template <typename MiddleNameT = Aws::String>
128 void SetMiddleName(MiddleNameT&& value) {
129 m_middleNameHasBeenSet = true;
130 m_middleName = std::forward<MiddleNameT>(value);
131 }
132 template <typename MiddleNameT = Aws::String>
133 UpdateUserResult& WithMiddleName(MiddleNameT&& value) {
134 SetMiddleName(std::forward<MiddleNameT>(value));
135 return *this;
136 }
138
140
143 inline bool GetSuspended() const { return m_suspended; }
144 inline void SetSuspended(bool value) {
145 m_suspendedHasBeenSet = true;
146 m_suspended = value;
147 }
148 inline UpdateUserResult& WithSuspended(bool value) {
149 SetSuspended(value);
150 return *this;
151 }
153
155
159 inline int GetModified() const { return m_modified; }
160 inline void SetModified(int value) {
161 m_modifiedHasBeenSet = true;
162 m_modified = value;
163 }
164 inline UpdateUserResult& WithModified(int value) {
165 SetModified(value);
166 return *this;
167 }
169
171
174 inline int GetStatus() const { return m_status; }
175 inline void SetStatus(int value) {
176 m_statusHasBeenSet = true;
177 m_status = value;
178 }
179 inline UpdateUserResult& WithStatus(int value) {
180 SetStatus(value);
181 return *this;
182 }
184
186
189 inline const Aws::String& GetInviteCode() const { return m_inviteCode; }
190 template <typename InviteCodeT = Aws::String>
191 void SetInviteCode(InviteCodeT&& value) {
192 m_inviteCodeHasBeenSet = true;
193 m_inviteCode = std::forward<InviteCodeT>(value);
194 }
195 template <typename InviteCodeT = Aws::String>
196 UpdateUserResult& WithInviteCode(InviteCodeT&& value) {
197 SetInviteCode(std::forward<InviteCodeT>(value));
198 return *this;
199 }
201
203
207 inline int GetInviteExpiration() const { return m_inviteExpiration; }
208 inline void SetInviteExpiration(int value) {
209 m_inviteExpirationHasBeenSet = true;
210 m_inviteExpiration = value;
211 }
213 SetInviteExpiration(value);
214 return *this;
215 }
217
219
222 inline bool GetCodeValidation() const { return m_codeValidation; }
223 inline void SetCodeValidation(bool value) {
224 m_codeValidationHasBeenSet = true;
225 m_codeValidation = value;
226 }
228 SetCodeValidation(value);
229 return *this;
230 }
232
234
235 inline const Aws::String& GetRequestId() const { return m_requestId; }
236 template <typename RequestIdT = Aws::String>
237 void SetRequestId(RequestIdT&& value) {
238 m_requestIdHasBeenSet = true;
239 m_requestId = std::forward<RequestIdT>(value);
240 }
241 template <typename RequestIdT = Aws::String>
242 UpdateUserResult& WithRequestId(RequestIdT&& value) {
243 SetRequestId(std::forward<RequestIdT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_userId;
249
250 Aws::String m_networkId;
251
252 Aws::Vector<Aws::String> m_securityGroupIds;
253
254 Aws::String m_firstName;
255
256 Aws::String m_lastName;
257
258 Aws::String m_middleName;
259
260 bool m_suspended{false};
261
262 int m_modified{0};
263
264 int m_status{0};
265
266 Aws::String m_inviteCode;
267
268 int m_inviteExpiration{0};
269
270 bool m_codeValidation{false};
271
272 Aws::String m_requestId;
273 bool m_userIdHasBeenSet = false;
274 bool m_networkIdHasBeenSet = false;
275 bool m_securityGroupIdsHasBeenSet = false;
276 bool m_firstNameHasBeenSet = false;
277 bool m_lastNameHasBeenSet = false;
278 bool m_middleNameHasBeenSet = false;
279 bool m_suspendedHasBeenSet = false;
280 bool m_modifiedHasBeenSet = false;
281 bool m_statusHasBeenSet = false;
282 bool m_inviteCodeHasBeenSet = false;
283 bool m_inviteExpirationHasBeenSet = false;
284 bool m_codeValidationHasBeenSet = false;
285 bool m_requestIdHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace Wickr
290} // 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)
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