AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 User& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
65 template<typename UsernameT = Aws::String>
66 User& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
74 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
75 template<typename EmailAddressT = Aws::String>
76 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
77 template<typename EmailAddressT = Aws::String>
78 User& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
80
82
85 inline const Aws::String& GetGivenName() const { return m_givenName; }
86 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
87 template<typename GivenNameT = Aws::String>
88 void SetGivenName(GivenNameT&& value) { m_givenNameHasBeenSet = true; m_givenName = std::forward<GivenNameT>(value); }
89 template<typename GivenNameT = Aws::String>
90 User& WithGivenName(GivenNameT&& value) { SetGivenName(std::forward<GivenNameT>(value)); return *this;}
92
94
97 inline const Aws::String& GetSurname() const { return m_surname; }
98 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
99 template<typename SurnameT = Aws::String>
100 void SetSurname(SurnameT&& value) { m_surnameHasBeenSet = true; m_surname = std::forward<SurnameT>(value); }
101 template<typename SurnameT = Aws::String>
102 User& WithSurname(SurnameT&& value) { SetSurname(std::forward<SurnameT>(value)); return *this;}
104
106
109 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
110 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
111 template<typename OrganizationIdT = Aws::String>
112 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
113 template<typename OrganizationIdT = Aws::String>
114 User& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
116
118
121 inline const Aws::String& GetRootFolderId() const { return m_rootFolderId; }
122 inline bool RootFolderIdHasBeenSet() const { return m_rootFolderIdHasBeenSet; }
123 template<typename RootFolderIdT = Aws::String>
124 void SetRootFolderId(RootFolderIdT&& value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId = std::forward<RootFolderIdT>(value); }
125 template<typename RootFolderIdT = Aws::String>
126 User& WithRootFolderId(RootFolderIdT&& value) { SetRootFolderId(std::forward<RootFolderIdT>(value)); return *this;}
128
130
133 inline const Aws::String& GetRecycleBinFolderId() const { return m_recycleBinFolderId; }
134 inline bool RecycleBinFolderIdHasBeenSet() const { return m_recycleBinFolderIdHasBeenSet; }
135 template<typename RecycleBinFolderIdT = Aws::String>
136 void SetRecycleBinFolderId(RecycleBinFolderIdT&& value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId = std::forward<RecycleBinFolderIdT>(value); }
137 template<typename RecycleBinFolderIdT = Aws::String>
138 User& WithRecycleBinFolderId(RecycleBinFolderIdT&& value) { SetRecycleBinFolderId(std::forward<RecycleBinFolderIdT>(value)); return *this;}
140
142
145 inline UserStatusType GetStatus() const { return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
147 inline void SetStatus(UserStatusType value) { m_statusHasBeenSet = true; m_status = value; }
148 inline User& WithStatus(UserStatusType value) { SetStatus(value); return *this;}
150
152
155 inline UserType GetType() const { return m_type; }
156 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
157 inline void SetType(UserType value) { m_typeHasBeenSet = true; m_type = value; }
158 inline User& WithType(UserType value) { SetType(value); return *this;}
160
162
165 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
166 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
167 template<typename CreatedTimestampT = Aws::Utils::DateTime>
168 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
169 template<typename CreatedTimestampT = Aws::Utils::DateTime>
170 User& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
172
174
177 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
178 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
179 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
180 void SetModifiedTimestamp(ModifiedTimestampT&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value); }
181 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
182 User& WithModifiedTimestamp(ModifiedTimestampT&& value) { SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value)); return *this;}
184
186
189 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
190 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
191 template<typename TimeZoneIdT = Aws::String>
192 void SetTimeZoneId(TimeZoneIdT&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::forward<TimeZoneIdT>(value); }
193 template<typename TimeZoneIdT = Aws::String>
194 User& WithTimeZoneId(TimeZoneIdT&& value) { SetTimeZoneId(std::forward<TimeZoneIdT>(value)); return *this;}
196
198
201 inline LocaleType GetLocale() const { return m_locale; }
202 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
203 inline void SetLocale(LocaleType value) { m_localeHasBeenSet = true; m_locale = value; }
204 inline User& WithLocale(LocaleType value) { SetLocale(value); return *this;}
206
208
211 inline const UserStorageMetadata& GetStorage() const { return m_storage; }
212 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
213 template<typename StorageT = UserStorageMetadata>
214 void SetStorage(StorageT&& value) { m_storageHasBeenSet = true; m_storage = std::forward<StorageT>(value); }
215 template<typename StorageT = UserStorageMetadata>
216 User& WithStorage(StorageT&& value) { SetStorage(std::forward<StorageT>(value)); return *this;}
218 private:
219
220 Aws::String m_id;
221 bool m_idHasBeenSet = false;
222
223 Aws::String m_username;
224 bool m_usernameHasBeenSet = false;
225
226 Aws::String m_emailAddress;
227 bool m_emailAddressHasBeenSet = false;
228
229 Aws::String m_givenName;
230 bool m_givenNameHasBeenSet = false;
231
232 Aws::String m_surname;
233 bool m_surnameHasBeenSet = false;
234
235 Aws::String m_organizationId;
236 bool m_organizationIdHasBeenSet = false;
237
238 Aws::String m_rootFolderId;
239 bool m_rootFolderIdHasBeenSet = false;
240
241 Aws::String m_recycleBinFolderId;
242 bool m_recycleBinFolderIdHasBeenSet = false;
243
245 bool m_statusHasBeenSet = false;
246
248 bool m_typeHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createdTimestamp{};
251 bool m_createdTimestampHasBeenSet = false;
252
253 Aws::Utils::DateTime m_modifiedTimestamp{};
254 bool m_modifiedTimestampHasBeenSet = false;
255
256 Aws::String m_timeZoneId;
257 bool m_timeZoneIdHasBeenSet = false;
258
260 bool m_localeHasBeenSet = false;
261
262 UserStorageMetadata m_storage;
263 bool m_storageHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace WorkDocs
268} // namespace Aws
bool RecycleBinFolderIdHasBeenSet() const
Definition User.h:134
User & WithUsername(UsernameT &&value)
Definition User.h:66
User & WithLocale(LocaleType value)
Definition User.h:204
void SetSurname(SurnameT &&value)
Definition User.h:100
User & WithTimeZoneId(TimeZoneIdT &&value)
Definition User.h:194
const Aws::String & GetSurname() const
Definition User.h:97
bool SurnameHasBeenSet() const
Definition User.h:98
bool GivenNameHasBeenSet() const
Definition User.h:86
const Aws::String & GetRecycleBinFolderId() const
Definition User.h:133
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmailAddress(EmailAddressT &&value)
Definition User.h:76
User & WithEmailAddress(EmailAddressT &&value)
Definition User.h:78
User & WithId(IdT &&value)
Definition User.h:54
void SetId(IdT &&value)
Definition User.h:52
User & WithModifiedTimestamp(ModifiedTimestampT &&value)
Definition User.h:182
UserStatusType GetStatus() const
Definition User.h:145
bool RootFolderIdHasBeenSet() const
Definition User.h:122
UserType GetType() const
Definition User.h:155
bool ModifiedTimestampHasBeenSet() const
Definition User.h:178
const Aws::String & GetGivenName() const
Definition User.h:85
bool IdHasBeenSet() const
Definition User.h:50
User & WithSurname(SurnameT &&value)
Definition User.h:102
User & WithRootFolderId(RootFolderIdT &&value)
Definition User.h:126
LocaleType GetLocale() const
Definition User.h:201
void SetLocale(LocaleType value)
Definition User.h:203
const Aws::Utils::DateTime & GetModifiedTimestamp() const
Definition User.h:177
void SetTimeZoneId(TimeZoneIdT &&value)
Definition User.h:192
bool EmailAddressHasBeenSet() const
Definition User.h:74
bool StatusHasBeenSet() const
Definition User.h:146
User & WithStatus(UserStatusType value)
Definition User.h:148
const UserStorageMetadata & GetStorage() const
Definition User.h:211
AWS_WORKDOCS_API User()=default
const Aws::String & GetRootFolderId() const
Definition User.h:121
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition User.h:165
void SetOrganizationId(OrganizationIdT &&value)
Definition User.h:112
bool StorageHasBeenSet() const
Definition User.h:212
const Aws::String & GetUsername() const
Definition User.h:61
User & WithRecycleBinFolderId(RecycleBinFolderIdT &&value)
Definition User.h:138
User & WithOrganizationId(OrganizationIdT &&value)
Definition User.h:114
User & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition User.h:170
bool CreatedTimestampHasBeenSet() const
Definition User.h:166
AWS_WORKDOCS_API User(Aws::Utils::Json::JsonView jsonValue)
User & WithGivenName(GivenNameT &&value)
Definition User.h:90
bool UsernameHasBeenSet() const
Definition User.h:62
void SetRecycleBinFolderId(RecycleBinFolderIdT &&value)
Definition User.h:136
void SetGivenName(GivenNameT &&value)
Definition User.h:88
bool TypeHasBeenSet() const
Definition User.h:156
const Aws::String & GetOrganizationId() const
Definition User.h:109
void SetType(UserType value)
Definition User.h:157
void SetUsername(UsernameT &&value)
Definition User.h:64
bool TimeZoneIdHasBeenSet() const
Definition User.h:190
User & WithType(UserType value)
Definition User.h:158
const Aws::String & GetId() const
Definition User.h:49
void SetModifiedTimestamp(ModifiedTimestampT &&value)
Definition User.h:180
void SetStatus(UserStatusType value)
Definition User.h:147
User & WithStorage(StorageT &&value)
Definition User.h:216
bool LocaleHasBeenSet() const
Definition User.h:202
bool OrganizationIdHasBeenSet() const
Definition User.h:110
void SetStorage(StorageT &&value)
Definition User.h:214
const Aws::String & GetTimeZoneId() const
Definition User.h:189
AWS_WORKDOCS_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition User.h:168
void SetRootFolderId(RootFolderIdT &&value)
Definition User.h:124
const Aws::String & GetEmailAddress() const
Definition User.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue