AWS SDK for C++  1.9.108
AWS SDK for C++
User.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WorkMail
25 {
26 namespace Model
27 {
28 
35  {
36  public:
37  User();
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline User& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline User& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetEmail() const{ return m_email; }
88 
92  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
93 
97  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
98 
102  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
103 
107  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
108 
112  inline User& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
113 
117  inline User& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
118 
122  inline User& WithEmail(const char* value) { SetEmail(value); return *this;}
123 
124 
128  inline const Aws::String& GetName() const{ return m_name; }
129 
133  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 
138  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
139 
143  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
144 
148  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 
153  inline User& WithName(const Aws::String& value) { SetName(value); return *this;}
154 
158  inline User& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
159 
163  inline User& WithName(const char* value) { SetName(value); return *this;}
164 
165 
169  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
170 
174  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
175 
179  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
180 
184  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
185 
189  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
190 
194  inline User& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
195 
199  inline User& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
200 
204  inline User& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
205 
206 
210  inline const EntityState& GetState() const{ return m_state; }
211 
215  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
216 
220  inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
221 
225  inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
226 
230  inline User& WithState(const EntityState& value) { SetState(value); return *this;}
231 
235  inline User& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
236 
237 
241  inline const UserRole& GetUserRole() const{ return m_userRole; }
242 
246  inline bool UserRoleHasBeenSet() const { return m_userRoleHasBeenSet; }
247 
251  inline void SetUserRole(const UserRole& value) { m_userRoleHasBeenSet = true; m_userRole = value; }
252 
256  inline void SetUserRole(UserRole&& value) { m_userRoleHasBeenSet = true; m_userRole = std::move(value); }
257 
261  inline User& WithUserRole(const UserRole& value) { SetUserRole(value); return *this;}
262 
266  inline User& WithUserRole(UserRole&& value) { SetUserRole(std::move(value)); return *this;}
267 
268 
272  inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
273 
277  inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
278 
282  inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
283 
287  inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
288 
292  inline User& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
293 
297  inline User& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
298 
299 
303  inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
304 
308  inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
309 
313  inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
314 
318  inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
319 
323  inline User& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
324 
328  inline User& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
329 
330  private:
331 
332  Aws::String m_id;
333  bool m_idHasBeenSet;
334 
335  Aws::String m_email;
336  bool m_emailHasBeenSet;
337 
338  Aws::String m_name;
339  bool m_nameHasBeenSet;
340 
341  Aws::String m_displayName;
342  bool m_displayNameHasBeenSet;
343 
344  EntityState m_state;
345  bool m_stateHasBeenSet;
346 
347  UserRole m_userRole;
348  bool m_userRoleHasBeenSet;
349 
350  Aws::Utils::DateTime m_enabledDate;
351  bool m_enabledDateHasBeenSet;
352 
353  Aws::Utils::DateTime m_disabledDate;
354  bool m_disabledDateHasBeenSet;
355  };
356 
357 } // namespace Model
358 } // namespace WorkMail
359 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::User::WithDisplayName
User & WithDisplayName(const Aws::String &value)
Definition: User.h:194
Aws::WorkMail::Model::User::WithUserRole
User & WithUserRole(const UserRole &value)
Definition: User.h:261
Aws::WorkMail::Model::User::StateHasBeenSet
bool StateHasBeenSet() const
Definition: User.h:215
Aws::WorkMail::Model::User::WithId
User & WithId(const char *value)
Definition: User.h:81
Aws::WorkMail::Model::User::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: User.h:92
Aws::WorkMail::Model::User::SetEmail
void SetEmail(const char *value)
Definition: User.h:107
Aws::WorkMail::Model::UserRole
UserRole
Definition: UserRole.h:17
Aws::WorkMail::Model::User::GetEmail
const Aws::String & GetEmail() const
Definition: User.h:87
Aws::WorkMail::Model::User::NameHasBeenSet
bool NameHasBeenSet() const
Definition: User.h:133
Aws::WorkMail::Model::User::User
User()
Aws::WorkMail::Model::User::operator=
User & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::User::SetUserRole
void SetUserRole(UserRole &&value)
Definition: User.h:256
DateTime.h
UserRole.h
Aws::WorkMail::Model::User::GetEnabledDate
const Aws::Utils::DateTime & GetEnabledDate() const
Definition: User.h:272
Aws::WorkMail::Model::User::WithName
User & WithName(const char *value)
Definition: User.h:163
Aws::WorkMail::Model::User::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: User.h:174
Aws::WorkMail::Model::User::WithName
User & WithName(const Aws::String &value)
Definition: User.h:153
Aws::WorkMail::Model::User::SetDisplayName
void SetDisplayName(const char *value)
Definition: User.h:189
Aws::WorkMail::Model::User::EnabledDateHasBeenSet
bool EnabledDateHasBeenSet() const
Definition: User.h:277
Aws::WorkMail::Model::User::WithName
User & WithName(Aws::String &&value)
Definition: User.h:158
WorkMail_EXPORTS.h
Aws::WorkMail::Model::User::SetName
void SetName(const Aws::String &value)
Definition: User.h:138
Aws::WorkMail::Model::User::GetName
const Aws::String & GetName() const
Definition: User.h:128
Aws::WorkMail::Model::User::SetId
void SetId(const char *value)
Definition: User.h:66
Aws::WorkMail::Model::User::WithEnabledDate
User & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition: User.h:292
Aws::WorkMail::Model::User::SetEmail
void SetEmail(Aws::String &&value)
Definition: User.h:102
Aws::WorkMail::Model::User::SetDisabledDate
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition: User.h:318
Aws::WorkMail::Model::User::SetEnabledDate
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition: User.h:287
Aws::WorkMail::Model::User::WithState
User & WithState(const EntityState &value)
Definition: User.h:230
Aws::WorkMail::Model::User::User
User(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::User::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: User.h:179
Aws::WorkMail::Model::User::WithId
User & WithId(Aws::String &&value)
Definition: User.h:76
Aws::WorkMail::Model::User::SetUserRole
void SetUserRole(const UserRole &value)
Definition: User.h:251
Aws::WorkMail::Model::User::SetId
void SetId(const Aws::String &value)
Definition: User.h:56
Aws::WorkMail::Model::User::SetState
void SetState(EntityState &&value)
Definition: User.h:225
Aws::WorkMail::Model::User::IdHasBeenSet
bool IdHasBeenSet() const
Definition: User.h:51
Aws::WorkMail::Model::User::WithEmail
User & WithEmail(const char *value)
Definition: User.h:122
Aws::WorkMail::Model::User::WithUserRole
User & WithUserRole(UserRole &&value)
Definition: User.h:266
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::User::WithDisabledDate
User & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition: User.h:323
Aws::WorkMail::Model::User::WithState
User & WithState(EntityState &&value)
Definition: User.h:235
Aws::WorkMail::Model::User::SetName
void SetName(Aws::String &&value)
Definition: User.h:143
Aws::WorkMail::Model::User::SetName
void SetName(const char *value)
Definition: User.h:148
Aws::WorkMail::Model::User::SetDisabledDate
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition: User.h:313
Aws::WorkMail::Model::User::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: User.h:169
Aws::WorkMail::Model::User::WithDisabledDate
User & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition: User.h:328
Aws::WorkMail::Model::User::WithDisplayName
User & WithDisplayName(Aws::String &&value)
Definition: User.h:199
Aws::WorkMail::Model::User::GetId
const Aws::String & GetId() const
Definition: User.h:46
Aws::WorkMail::Model::User::SetId
void SetId(Aws::String &&value)
Definition: User.h:61
Aws::WorkMail::Model::User::DisabledDateHasBeenSet
bool DisabledDateHasBeenSet() const
Definition: User.h:308
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::User::WithEmail
User & WithEmail(Aws::String &&value)
Definition: User.h:117
Aws::WorkMail::Model::User::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: User.h:184
Aws::WorkMail::Model::User::WithEnabledDate
User & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition: User.h:297
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::User::SetEnabledDate
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition: User.h:282
EntityState.h
Aws::WorkMail::Model::User::SetState
void SetState(const EntityState &value)
Definition: User.h:220
Aws::WorkMail::Model::User::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::User::WithId
User & WithId(const Aws::String &value)
Definition: User.h:71
Aws::WorkMail::Model::User::UserRoleHasBeenSet
bool UserRoleHasBeenSet() const
Definition: User.h:246
Aws::WorkMail::Model::User::SetEmail
void SetEmail(const Aws::String &value)
Definition: User.h:97
Aws::WorkMail::Model::User
Definition: User.h:35
Aws::WorkMail::Model::User::WithDisplayName
User & WithDisplayName(const char *value)
Definition: User.h:204
Aws::WorkMail::Model::User::WithEmail
User & WithEmail(const Aws::String &value)
Definition: User.h:112
Aws::WorkMail::Model::User::GetState
const EntityState & GetState() const
Definition: User.h:210
Aws::WorkMail::Model::User::GetDisabledDate
const Aws::Utils::DateTime & GetDisabledDate() const
Definition: User.h:303
Aws::WorkMail::Model::User::GetUserRole
const UserRole & GetUserRole() const
Definition: User.h:241
Aws::WorkMail::Model::EntityState
EntityState
Definition: EntityState.h:17