AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/model/UserStatusType.h>
10#include <aws/workdocs/model/UserType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/workdocs/model/LocaleType.h>
13#include <aws/workdocs/model/UserStorageMetadata.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WorkDocs
27{
28namespace Model
29{
30
36 class User
37 {
38 public:
39 AWS_WORKDOCS_API User();
40 AWS_WORKDOCS_API User(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKDOCS_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline User& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline User& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetUsername() const{ return m_username; }
64 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
65 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
66 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
67 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
68 inline User& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
69 inline User& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
70 inline User& WithUsername(const char* value) { SetUsername(value); return *this;}
72
74
77 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
78 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
79 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
80 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
81 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
82 inline User& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
83 inline User& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
84 inline User& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
86
88
91 inline const Aws::String& GetGivenName() const{ return m_givenName; }
92 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
93 inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; }
94 inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); }
95 inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); }
96 inline User& WithGivenName(const Aws::String& value) { SetGivenName(value); return *this;}
97 inline User& WithGivenName(Aws::String&& value) { SetGivenName(std::move(value)); return *this;}
98 inline User& WithGivenName(const char* value) { SetGivenName(value); return *this;}
100
102
105 inline const Aws::String& GetSurname() const{ return m_surname; }
106 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
107 inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; }
108 inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); }
109 inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); }
110 inline User& WithSurname(const Aws::String& value) { SetSurname(value); return *this;}
111 inline User& WithSurname(Aws::String&& value) { SetSurname(std::move(value)); return *this;}
112 inline User& WithSurname(const char* value) { SetSurname(value); return *this;}
114
116
119 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
120 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
121 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
122 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
123 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
124 inline User& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
125 inline User& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
126 inline User& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
128
130
133 inline const Aws::String& GetRootFolderId() const{ return m_rootFolderId; }
134 inline bool RootFolderIdHasBeenSet() const { return m_rootFolderIdHasBeenSet; }
135 inline void SetRootFolderId(const Aws::String& value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId = value; }
136 inline void SetRootFolderId(Aws::String&& value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId = std::move(value); }
137 inline void SetRootFolderId(const char* value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId.assign(value); }
138 inline User& WithRootFolderId(const Aws::String& value) { SetRootFolderId(value); return *this;}
139 inline User& WithRootFolderId(Aws::String&& value) { SetRootFolderId(std::move(value)); return *this;}
140 inline User& WithRootFolderId(const char* value) { SetRootFolderId(value); return *this;}
142
144
147 inline const Aws::String& GetRecycleBinFolderId() const{ return m_recycleBinFolderId; }
148 inline bool RecycleBinFolderIdHasBeenSet() const { return m_recycleBinFolderIdHasBeenSet; }
149 inline void SetRecycleBinFolderId(const Aws::String& value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId = value; }
150 inline void SetRecycleBinFolderId(Aws::String&& value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId = std::move(value); }
151 inline void SetRecycleBinFolderId(const char* value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId.assign(value); }
152 inline User& WithRecycleBinFolderId(const Aws::String& value) { SetRecycleBinFolderId(value); return *this;}
153 inline User& WithRecycleBinFolderId(Aws::String&& value) { SetRecycleBinFolderId(std::move(value)); return *this;}
154 inline User& WithRecycleBinFolderId(const char* value) { SetRecycleBinFolderId(value); return *this;}
156
158
161 inline const UserStatusType& GetStatus() const{ return m_status; }
162 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
163 inline void SetStatus(const UserStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
164 inline void SetStatus(UserStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
165 inline User& WithStatus(const UserStatusType& value) { SetStatus(value); return *this;}
166 inline User& WithStatus(UserStatusType&& value) { SetStatus(std::move(value)); return *this;}
168
170
173 inline const UserType& GetType() const{ return m_type; }
174 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
175 inline void SetType(const UserType& value) { m_typeHasBeenSet = true; m_type = value; }
176 inline void SetType(UserType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
177 inline User& WithType(const UserType& value) { SetType(value); return *this;}
178 inline User& WithType(UserType&& value) { SetType(std::move(value)); return *this;}
180
182
185 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
186 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
187 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
188 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
189 inline User& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
190 inline User& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
192
194
197 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
198 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
199 inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
200 inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
201 inline User& WithModifiedTimestamp(const Aws::Utils::DateTime& value) { SetModifiedTimestamp(value); return *this;}
202 inline User& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;}
204
206
209 inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; }
210 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
211 inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; }
212 inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); }
213 inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); }
214 inline User& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
215 inline User& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
216 inline User& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
218
220
223 inline const LocaleType& GetLocale() const{ return m_locale; }
224 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
225 inline void SetLocale(const LocaleType& value) { m_localeHasBeenSet = true; m_locale = value; }
226 inline void SetLocale(LocaleType&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
227 inline User& WithLocale(const LocaleType& value) { SetLocale(value); return *this;}
228 inline User& WithLocale(LocaleType&& value) { SetLocale(std::move(value)); return *this;}
230
232
235 inline const UserStorageMetadata& GetStorage() const{ return m_storage; }
236 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
237 inline void SetStorage(const UserStorageMetadata& value) { m_storageHasBeenSet = true; m_storage = value; }
238 inline void SetStorage(UserStorageMetadata&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
239 inline User& WithStorage(const UserStorageMetadata& value) { SetStorage(value); return *this;}
240 inline User& WithStorage(UserStorageMetadata&& value) { SetStorage(std::move(value)); return *this;}
242 private:
243
244 Aws::String m_id;
245 bool m_idHasBeenSet = false;
246
247 Aws::String m_username;
248 bool m_usernameHasBeenSet = false;
249
250 Aws::String m_emailAddress;
251 bool m_emailAddressHasBeenSet = false;
252
253 Aws::String m_givenName;
254 bool m_givenNameHasBeenSet = false;
255
256 Aws::String m_surname;
257 bool m_surnameHasBeenSet = false;
258
259 Aws::String m_organizationId;
260 bool m_organizationIdHasBeenSet = false;
261
262 Aws::String m_rootFolderId;
263 bool m_rootFolderIdHasBeenSet = false;
264
265 Aws::String m_recycleBinFolderId;
266 bool m_recycleBinFolderIdHasBeenSet = false;
267
268 UserStatusType m_status;
269 bool m_statusHasBeenSet = false;
270
271 UserType m_type;
272 bool m_typeHasBeenSet = false;
273
274 Aws::Utils::DateTime m_createdTimestamp;
275 bool m_createdTimestampHasBeenSet = false;
276
277 Aws::Utils::DateTime m_modifiedTimestamp;
278 bool m_modifiedTimestampHasBeenSet = false;
279
280 Aws::String m_timeZoneId;
281 bool m_timeZoneIdHasBeenSet = false;
282
283 LocaleType m_locale;
284 bool m_localeHasBeenSet = false;
285
286 UserStorageMetadata m_storage;
287 bool m_storageHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace WorkDocs
292} // namespace Aws
void SetSurname(const char *value)
Definition User.h:109
void SetSurname(Aws::String &&value)
Definition User.h:108
bool RecycleBinFolderIdHasBeenSet() const
Definition User.h:148
void SetTimeZoneId(const char *value)
Definition User.h:213
void SetEmailAddress(const char *value)
Definition User.h:81
void SetUsername(const char *value)
Definition User.h:67
void SetStatus(UserStatusType &&value)
Definition User.h:164
User & WithEmailAddress(Aws::String &&value)
Definition User.h:83
void SetOrganizationId(Aws::String &&value)
Definition User.h:122
void SetId(const char *value)
Definition User.h:53
const Aws::String & GetSurname() const
Definition User.h:105
User & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition User.h:189
bool SurnameHasBeenSet() const
Definition User.h:106
User & WithRecycleBinFolderId(const char *value)
Definition User.h:154
void SetOrganizationId(const Aws::String &value)
Definition User.h:121
User & WithRecycleBinFolderId(Aws::String &&value)
Definition User.h:153
bool GivenNameHasBeenSet() const
Definition User.h:92
const Aws::String & GetRecycleBinFolderId() const
Definition User.h:147
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStorage(const UserStorageMetadata &value)
Definition User.h:237
User & WithType(UserType &&value)
Definition User.h:178
User & WithOrganizationId(Aws::String &&value)
Definition User.h:125
User & WithEmailAddress(const Aws::String &value)
Definition User.h:82
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition User.h:188
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition User.h:187
User & WithId(const Aws::String &value)
Definition User.h:54
User & WithEmailAddress(const char *value)
Definition User.h:84
User & WithRootFolderId(Aws::String &&value)
Definition User.h:139
User & WithRecycleBinFolderId(const Aws::String &value)
Definition User.h:152
void SetType(const UserType &value)
Definition User.h:175
void SetLocale(LocaleType &&value)
Definition User.h:226
void SetTimeZoneId(Aws::String &&value)
Definition User.h:212
const UserType & GetType() const
Definition User.h:173
User & WithRootFolderId(const Aws::String &value)
Definition User.h:138
User & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition User.h:190
User & WithType(const UserType &value)
Definition User.h:177
bool RootFolderIdHasBeenSet() const
Definition User.h:134
User & WithGivenName(Aws::String &&value)
Definition User.h:97
User & WithTimeZoneId(const Aws::String &value)
Definition User.h:214
User & WithGivenName(const Aws::String &value)
Definition User.h:96
void SetUsername(Aws::String &&value)
Definition User.h:66
bool ModifiedTimestampHasBeenSet() const
Definition User.h:198
const Aws::String & GetGivenName() const
Definition User.h:91
bool IdHasBeenSet() const
Definition User.h:50
const Aws::Utils::DateTime & GetModifiedTimestamp() const
Definition User.h:197
const LocaleType & GetLocale() const
Definition User.h:223
void SetTimeZoneId(const Aws::String &value)
Definition User.h:211
void SetGivenName(Aws::String &&value)
Definition User.h:94
bool EmailAddressHasBeenSet() const
Definition User.h:78
void SetId(const Aws::String &value)
Definition User.h:51
bool StatusHasBeenSet() const
Definition User.h:162
void SetEmailAddress(const Aws::String &value)
Definition User.h:79
void SetRootFolderId(const char *value)
Definition User.h:137
void SetGivenName(const char *value)
Definition User.h:95
const UserStorageMetadata & GetStorage() const
Definition User.h:235
void SetUsername(const Aws::String &value)
Definition User.h:65
void SetLocale(const LocaleType &value)
Definition User.h:225
const Aws::String & GetRootFolderId() const
Definition User.h:133
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition User.h:185
User & WithUsername(const Aws::String &value)
Definition User.h:68
void SetEmailAddress(Aws::String &&value)
Definition User.h:80
bool StorageHasBeenSet() const
Definition User.h:236
User & WithOrganizationId(const char *value)
Definition User.h:126
User & WithId(const char *value)
Definition User.h:56
User & WithUsername(Aws::String &&value)
Definition User.h:69
User & WithModifiedTimestamp(const Aws::Utils::DateTime &value)
Definition User.h:201
const UserStatusType & GetStatus() const
Definition User.h:161
const Aws::String & GetUsername() const
Definition User.h:63
User & WithRootFolderId(const char *value)
Definition User.h:140
User & WithOrganizationId(const Aws::String &value)
Definition User.h:124
User & WithLocale(LocaleType &&value)
Definition User.h:228
User & WithGivenName(const char *value)
Definition User.h:98
AWS_WORKDOCS_API User()
void SetStorage(UserStorageMetadata &&value)
Definition User.h:238
User & WithSurname(Aws::String &&value)
Definition User.h:111
bool CreatedTimestampHasBeenSet() const
Definition User.h:186
AWS_WORKDOCS_API User(Aws::Utils::Json::JsonView jsonValue)
void SetRecycleBinFolderId(Aws::String &&value)
Definition User.h:150
void SetRootFolderId(const Aws::String &value)
Definition User.h:135
User & WithStorage(const UserStorageMetadata &value)
Definition User.h:239
void SetId(Aws::String &&value)
Definition User.h:52
void SetModifiedTimestamp(Aws::Utils::DateTime &&value)
Definition User.h:200
User & WithStatus(const UserStatusType &value)
Definition User.h:165
bool UsernameHasBeenSet() const
Definition User.h:64
void SetModifiedTimestamp(const Aws::Utils::DateTime &value)
Definition User.h:199
void SetOrganizationId(const char *value)
Definition User.h:123
User & WithSurname(const char *value)
Definition User.h:112
bool TypeHasBeenSet() const
Definition User.h:174
User & WithId(Aws::String &&value)
Definition User.h:55
const Aws::String & GetOrganizationId() const
Definition User.h:119
User & WithLocale(const LocaleType &value)
Definition User.h:227
User & WithUsername(const char *value)
Definition User.h:70
void SetStatus(const UserStatusType &value)
Definition User.h:163
void SetRecycleBinFolderId(const char *value)
Definition User.h:151
bool TimeZoneIdHasBeenSet() const
Definition User.h:210
User & WithTimeZoneId(Aws::String &&value)
Definition User.h:215
const Aws::String & GetId() const
Definition User.h:49
User & WithModifiedTimestamp(Aws::Utils::DateTime &&value)
Definition User.h:202
User & WithStorage(UserStorageMetadata &&value)
Definition User.h:240
User & WithStatus(UserStatusType &&value)
Definition User.h:166
void SetSurname(const Aws::String &value)
Definition User.h:107
void SetType(UserType &&value)
Definition User.h:176
bool LocaleHasBeenSet() const
Definition User.h:224
bool OrganizationIdHasBeenSet() const
Definition User.h:120
User & WithTimeZoneId(const char *value)
Definition User.h:216
const Aws::String & GetTimeZoneId() const
Definition User.h:209
AWS_WORKDOCS_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGivenName(const Aws::String &value)
Definition User.h:93
User & WithSurname(const Aws::String &value)
Definition User.h:110
const Aws::String & GetEmailAddress() const
Definition User.h:77
void SetRootFolderId(Aws::String &&value)
Definition User.h:136
void SetRecycleBinFolderId(const Aws::String &value)
Definition User.h:149
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue