AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/LocaleType.h>
11#include <aws/workdocs/model/UserStatusType.h>
12#include <aws/workdocs/model/UserStorageMetadata.h>
13#include <aws/workdocs/model/UserType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkDocs {
25namespace Model {
26
32class User {
33 public:
34 AWS_WORKDOCS_API User() = default;
35 AWS_WORKDOCS_API User(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKDOCS_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 User& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetUsername() const { return m_username; }
62 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
63 template <typename UsernameT = Aws::String>
64 void SetUsername(UsernameT&& value) {
65 m_usernameHasBeenSet = true;
66 m_username = std::forward<UsernameT>(value);
67 }
68 template <typename UsernameT = Aws::String>
69 User& WithUsername(UsernameT&& value) {
70 SetUsername(std::forward<UsernameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
80 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
81 template <typename EmailAddressT = Aws::String>
82 void SetEmailAddress(EmailAddressT&& value) {
83 m_emailAddressHasBeenSet = true;
84 m_emailAddress = std::forward<EmailAddressT>(value);
85 }
86 template <typename EmailAddressT = Aws::String>
87 User& WithEmailAddress(EmailAddressT&& value) {
88 SetEmailAddress(std::forward<EmailAddressT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetGivenName() const { return m_givenName; }
98 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
99 template <typename GivenNameT = Aws::String>
100 void SetGivenName(GivenNameT&& value) {
101 m_givenNameHasBeenSet = true;
102 m_givenName = std::forward<GivenNameT>(value);
103 }
104 template <typename GivenNameT = Aws::String>
105 User& WithGivenName(GivenNameT&& value) {
106 SetGivenName(std::forward<GivenNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetSurname() const { return m_surname; }
116 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
117 template <typename SurnameT = Aws::String>
118 void SetSurname(SurnameT&& value) {
119 m_surnameHasBeenSet = true;
120 m_surname = std::forward<SurnameT>(value);
121 }
122 template <typename SurnameT = Aws::String>
123 User& WithSurname(SurnameT&& value) {
124 SetSurname(std::forward<SurnameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
134 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
135 template <typename OrganizationIdT = Aws::String>
136 void SetOrganizationId(OrganizationIdT&& value) {
137 m_organizationIdHasBeenSet = true;
138 m_organizationId = std::forward<OrganizationIdT>(value);
139 }
140 template <typename OrganizationIdT = Aws::String>
141 User& WithOrganizationId(OrganizationIdT&& value) {
142 SetOrganizationId(std::forward<OrganizationIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetRootFolderId() const { return m_rootFolderId; }
152 inline bool RootFolderIdHasBeenSet() const { return m_rootFolderIdHasBeenSet; }
153 template <typename RootFolderIdT = Aws::String>
154 void SetRootFolderId(RootFolderIdT&& value) {
155 m_rootFolderIdHasBeenSet = true;
156 m_rootFolderId = std::forward<RootFolderIdT>(value);
157 }
158 template <typename RootFolderIdT = Aws::String>
159 User& WithRootFolderId(RootFolderIdT&& value) {
160 SetRootFolderId(std::forward<RootFolderIdT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetRecycleBinFolderId() const { return m_recycleBinFolderId; }
170 inline bool RecycleBinFolderIdHasBeenSet() const { return m_recycleBinFolderIdHasBeenSet; }
171 template <typename RecycleBinFolderIdT = Aws::String>
172 void SetRecycleBinFolderId(RecycleBinFolderIdT&& value) {
173 m_recycleBinFolderIdHasBeenSet = true;
174 m_recycleBinFolderId = std::forward<RecycleBinFolderIdT>(value);
175 }
176 template <typename RecycleBinFolderIdT = Aws::String>
177 User& WithRecycleBinFolderId(RecycleBinFolderIdT&& value) {
178 SetRecycleBinFolderId(std::forward<RecycleBinFolderIdT>(value));
179 return *this;
180 }
182
184
187 inline UserStatusType GetStatus() const { return m_status; }
188 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
189 inline void SetStatus(UserStatusType value) {
190 m_statusHasBeenSet = true;
191 m_status = value;
192 }
194 SetStatus(value);
195 return *this;
196 }
198
200
203 inline UserType GetType() const { return m_type; }
204 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
205 inline void SetType(UserType value) {
206 m_typeHasBeenSet = true;
207 m_type = value;
208 }
209 inline User& WithType(UserType value) {
210 SetType(value);
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
220 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
221 template <typename CreatedTimestampT = Aws::Utils::DateTime>
222 void SetCreatedTimestamp(CreatedTimestampT&& value) {
223 m_createdTimestampHasBeenSet = true;
224 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
225 }
226 template <typename CreatedTimestampT = Aws::Utils::DateTime>
227 User& WithCreatedTimestamp(CreatedTimestampT&& value) {
228 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
238 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
239 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
240 void SetModifiedTimestamp(ModifiedTimestampT&& value) {
241 m_modifiedTimestampHasBeenSet = true;
242 m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value);
243 }
244 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
245 User& WithModifiedTimestamp(ModifiedTimestampT&& value) {
246 SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
256 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
257 template <typename TimeZoneIdT = Aws::String>
258 void SetTimeZoneId(TimeZoneIdT&& value) {
259 m_timeZoneIdHasBeenSet = true;
260 m_timeZoneId = std::forward<TimeZoneIdT>(value);
261 }
262 template <typename TimeZoneIdT = Aws::String>
263 User& WithTimeZoneId(TimeZoneIdT&& value) {
264 SetTimeZoneId(std::forward<TimeZoneIdT>(value));
265 return *this;
266 }
268
270
273 inline LocaleType GetLocale() const { return m_locale; }
274 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
275 inline void SetLocale(LocaleType value) {
276 m_localeHasBeenSet = true;
277 m_locale = value;
278 }
279 inline User& WithLocale(LocaleType value) {
280 SetLocale(value);
281 return *this;
282 }
284
286
289 inline const UserStorageMetadata& GetStorage() const { return m_storage; }
290 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
291 template <typename StorageT = UserStorageMetadata>
292 void SetStorage(StorageT&& value) {
293 m_storageHasBeenSet = true;
294 m_storage = std::forward<StorageT>(value);
295 }
296 template <typename StorageT = UserStorageMetadata>
297 User& WithStorage(StorageT&& value) {
298 SetStorage(std::forward<StorageT>(value));
299 return *this;
300 }
302 private:
303 Aws::String m_id;
304
305 Aws::String m_username;
306
307 Aws::String m_emailAddress;
308
309 Aws::String m_givenName;
310
311 Aws::String m_surname;
312
313 Aws::String m_organizationId;
314
315 Aws::String m_rootFolderId;
316
317 Aws::String m_recycleBinFolderId;
318
320
322
323 Aws::Utils::DateTime m_createdTimestamp{};
324
325 Aws::Utils::DateTime m_modifiedTimestamp{};
326
327 Aws::String m_timeZoneId;
328
330
331 UserStorageMetadata m_storage;
332 bool m_idHasBeenSet = false;
333 bool m_usernameHasBeenSet = false;
334 bool m_emailAddressHasBeenSet = false;
335 bool m_givenNameHasBeenSet = false;
336 bool m_surnameHasBeenSet = false;
337 bool m_organizationIdHasBeenSet = false;
338 bool m_rootFolderIdHasBeenSet = false;
339 bool m_recycleBinFolderIdHasBeenSet = false;
340 bool m_statusHasBeenSet = false;
341 bool m_typeHasBeenSet = false;
342 bool m_createdTimestampHasBeenSet = false;
343 bool m_modifiedTimestampHasBeenSet = false;
344 bool m_timeZoneIdHasBeenSet = false;
345 bool m_localeHasBeenSet = false;
346 bool m_storageHasBeenSet = false;
347};
348
349} // namespace Model
350} // namespace WorkDocs
351} // namespace Aws
bool RecycleBinFolderIdHasBeenSet() const
Definition User.h:170
User & WithUsername(UsernameT &&value)
Definition User.h:69
User & WithLocale(LocaleType value)
Definition User.h:279
void SetSurname(SurnameT &&value)
Definition User.h:118
User & WithTimeZoneId(TimeZoneIdT &&value)
Definition User.h:263
const Aws::String & GetSurname() const
Definition User.h:115
bool SurnameHasBeenSet() const
Definition User.h:116
bool GivenNameHasBeenSet() const
Definition User.h:98
const Aws::String & GetRecycleBinFolderId() const
Definition User.h:169
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmailAddress(EmailAddressT &&value)
Definition User.h:82
User & WithEmailAddress(EmailAddressT &&value)
Definition User.h:87
User & WithId(IdT &&value)
Definition User.h:51
void SetId(IdT &&value)
Definition User.h:46
User & WithModifiedTimestamp(ModifiedTimestampT &&value)
Definition User.h:245
UserStatusType GetStatus() const
Definition User.h:187
bool RootFolderIdHasBeenSet() const
Definition User.h:152
UserType GetType() const
Definition User.h:203
bool ModifiedTimestampHasBeenSet() const
Definition User.h:238
const Aws::String & GetGivenName() const
Definition User.h:97
bool IdHasBeenSet() const
Definition User.h:44
User & WithSurname(SurnameT &&value)
Definition User.h:123
User & WithRootFolderId(RootFolderIdT &&value)
Definition User.h:159
LocaleType GetLocale() const
Definition User.h:273
void SetLocale(LocaleType value)
Definition User.h:275
const Aws::Utils::DateTime & GetModifiedTimestamp() const
Definition User.h:237
void SetTimeZoneId(TimeZoneIdT &&value)
Definition User.h:258
bool EmailAddressHasBeenSet() const
Definition User.h:80
bool StatusHasBeenSet() const
Definition User.h:188
User & WithStatus(UserStatusType value)
Definition User.h:193
const UserStorageMetadata & GetStorage() const
Definition User.h:289
AWS_WORKDOCS_API User()=default
const Aws::String & GetRootFolderId() const
Definition User.h:151
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition User.h:219
void SetOrganizationId(OrganizationIdT &&value)
Definition User.h:136
bool StorageHasBeenSet() const
Definition User.h:290
const Aws::String & GetUsername() const
Definition User.h:61
User & WithRecycleBinFolderId(RecycleBinFolderIdT &&value)
Definition User.h:177
User & WithOrganizationId(OrganizationIdT &&value)
Definition User.h:141
User & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition User.h:227
bool CreatedTimestampHasBeenSet() const
Definition User.h:220
AWS_WORKDOCS_API User(Aws::Utils::Json::JsonView jsonValue)
User & WithGivenName(GivenNameT &&value)
Definition User.h:105
bool UsernameHasBeenSet() const
Definition User.h:62
void SetRecycleBinFolderId(RecycleBinFolderIdT &&value)
Definition User.h:172
void SetGivenName(GivenNameT &&value)
Definition User.h:100
bool TypeHasBeenSet() const
Definition User.h:204
const Aws::String & GetOrganizationId() const
Definition User.h:133
void SetType(UserType value)
Definition User.h:205
void SetUsername(UsernameT &&value)
Definition User.h:64
bool TimeZoneIdHasBeenSet() const
Definition User.h:256
User & WithType(UserType value)
Definition User.h:209
const Aws::String & GetId() const
Definition User.h:43
void SetModifiedTimestamp(ModifiedTimestampT &&value)
Definition User.h:240
void SetStatus(UserStatusType value)
Definition User.h:189
User & WithStorage(StorageT &&value)
Definition User.h:297
bool LocaleHasBeenSet() const
Definition User.h:274
bool OrganizationIdHasBeenSet() const
Definition User.h:134
void SetStorage(StorageT &&value)
Definition User.h:292
const Aws::String & GetTimeZoneId() const
Definition User.h:255
AWS_WORKDOCS_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition User.h:222
void SetRootFolderId(RootFolderIdT &&value)
Definition User.h:154
const Aws::String & GetEmailAddress() const
Definition User.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue