AWS SDK for C++  1.9.109
AWS SDK for C++
DescribeUserResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace WorkMail
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetUserId() const{ return m_userId; }
42 
46  inline void SetUserId(const Aws::String& value) { m_userId = value; }
47 
51  inline void SetUserId(Aws::String&& value) { m_userId = std::move(value); }
52 
56  inline void SetUserId(const char* value) { m_userId.assign(value); }
57 
61  inline DescribeUserResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
62 
66  inline DescribeUserResult& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
67 
71  inline DescribeUserResult& WithUserId(const char* value) { SetUserId(value); return *this;}
72 
73 
77  inline const Aws::String& GetName() const{ return m_name; }
78 
82  inline void SetName(const Aws::String& value) { m_name = value; }
83 
87  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
88 
92  inline void SetName(const char* value) { m_name.assign(value); }
93 
97  inline DescribeUserResult& WithName(const Aws::String& value) { SetName(value); return *this;}
98 
102  inline DescribeUserResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
103 
107  inline DescribeUserResult& WithName(const char* value) { SetName(value); return *this;}
108 
109 
113  inline const Aws::String& GetEmail() const{ return m_email; }
114 
118  inline void SetEmail(const Aws::String& value) { m_email = value; }
119 
123  inline void SetEmail(Aws::String&& value) { m_email = std::move(value); }
124 
128  inline void SetEmail(const char* value) { m_email.assign(value); }
129 
133  inline DescribeUserResult& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
134 
138  inline DescribeUserResult& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
139 
143  inline DescribeUserResult& WithEmail(const char* value) { SetEmail(value); return *this;}
144 
145 
149  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
150 
154  inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
155 
159  inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
160 
164  inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
165 
169  inline DescribeUserResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
170 
174  inline DescribeUserResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
175 
179  inline DescribeUserResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
180 
181 
186  inline const EntityState& GetState() const{ return m_state; }
187 
192  inline void SetState(const EntityState& value) { m_state = value; }
193 
198  inline void SetState(EntityState&& value) { m_state = std::move(value); }
199 
204  inline DescribeUserResult& WithState(const EntityState& value) { SetState(value); return *this;}
205 
210  inline DescribeUserResult& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
211 
212 
221  inline const UserRole& GetUserRole() const{ return m_userRole; }
222 
231  inline void SetUserRole(const UserRole& value) { m_userRole = value; }
232 
241  inline void SetUserRole(UserRole&& value) { m_userRole = std::move(value); }
242 
251  inline DescribeUserResult& WithUserRole(const UserRole& value) { SetUserRole(value); return *this;}
252 
261  inline DescribeUserResult& WithUserRole(UserRole&& value) { SetUserRole(std::move(value)); return *this;}
262 
263 
268  inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
269 
274  inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDate = value; }
275 
280  inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDate = std::move(value); }
281 
286  inline DescribeUserResult& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
287 
292  inline DescribeUserResult& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
293 
294 
299  inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
300 
305  inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDate = value; }
306 
311  inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDate = std::move(value); }
312 
317  inline DescribeUserResult& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
318 
323  inline DescribeUserResult& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
324 
325  private:
326 
327  Aws::String m_userId;
328 
329  Aws::String m_name;
330 
331  Aws::String m_email;
332 
333  Aws::String m_displayName;
334 
335  EntityState m_state;
336 
337  UserRole m_userRole;
338 
339  Aws::Utils::DateTime m_enabledDate;
340 
341  Aws::Utils::DateTime m_disabledDate;
342  };
343 
344 } // namespace Model
345 } // namespace WorkMail
346 } // namespace Aws
Aws::WorkMail::Model::DescribeUserResult::WithEmail
DescribeUserResult & WithEmail(const char *value)
Definition: DescribeUserResult.h:143
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::DescribeUserResult::SetUserId
void SetUserId(Aws::String &&value)
Definition: DescribeUserResult.h:51
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::DescribeUserResult::operator=
DescribeUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::DescribeUserResult::GetUserId
const Aws::String & GetUserId() const
Definition: DescribeUserResult.h:41
Aws::WorkMail::Model::DescribeUserResult::WithDisplayName
DescribeUserResult & WithDisplayName(const Aws::String &value)
Definition: DescribeUserResult.h:169
Aws::WorkMail::Model::DescribeUserResult::WithUserRole
DescribeUserResult & WithUserRole(const UserRole &value)
Definition: DescribeUserResult.h:251
Aws::WorkMail::Model::DescribeUserResult::WithEnabledDate
DescribeUserResult & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeUserResult.h:292
Aws::WorkMail::Model::DescribeUserResult::WithEmail
DescribeUserResult & WithEmail(const Aws::String &value)
Definition: DescribeUserResult.h:133
Aws::WorkMail::Model::DescribeUserResult::WithName
DescribeUserResult & WithName(Aws::String &&value)
Definition: DescribeUserResult.h:102
Aws::WorkMail::Model::UserRole
UserRole
Definition: UserRole.h:17
Aws::WorkMail::Model::DescribeUserResult::WithUserId
DescribeUserResult & WithUserId(const Aws::String &value)
Definition: DescribeUserResult.h:61
DateTime.h
UserRole.h
Aws::WorkMail::Model::DescribeUserResult::WithDisplayName
DescribeUserResult & WithDisplayName(const char *value)
Definition: DescribeUserResult.h:179
Aws::WorkMail::Model::DescribeUserResult::SetDisplayName
void SetDisplayName(const char *value)
Definition: DescribeUserResult.h:164
Aws::WorkMail::Model::DescribeUserResult::WithEnabledDate
DescribeUserResult & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeUserResult.h:286
Aws::WorkMail::Model::DescribeUserResult::SetName
void SetName(Aws::String &&value)
Definition: DescribeUserResult.h:87
WorkMail_EXPORTS.h
Aws::WorkMail::Model::DescribeUserResult::SetState
void SetState(const EntityState &value)
Definition: DescribeUserResult.h:192
Aws::WorkMail::Model::DescribeUserResult::WithState
DescribeUserResult & WithState(EntityState &&value)
Definition: DescribeUserResult.h:210
Aws::WorkMail::Model::DescribeUserResult::GetEmail
const Aws::String & GetEmail() const
Definition: DescribeUserResult.h:113
Aws::WorkMail::Model::DescribeUserResult::WithName
DescribeUserResult & WithName(const Aws::String &value)
Definition: DescribeUserResult.h:97
Aws::WorkMail::Model::DescribeUserResult::SetEnabledDate
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeUserResult.h:280
Aws::WorkMail::Model::DescribeUserResult::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: DescribeUserResult.h:149
Aws::WorkMail::Model::DescribeUserResult::SetState
void SetState(EntityState &&value)
Definition: DescribeUserResult.h:198
Aws::WorkMail::Model::DescribeUserResult::SetEmail
void SetEmail(Aws::String &&value)
Definition: DescribeUserResult.h:123
Aws::WorkMail::Model::DescribeUserResult::GetEnabledDate
const Aws::Utils::DateTime & GetEnabledDate() const
Definition: DescribeUserResult.h:268
Aws::WorkMail::Model::DescribeUserResult::SetEmail
void SetEmail(const Aws::String &value)
Definition: DescribeUserResult.h:118
Aws::WorkMail::Model::DescribeUserResult::SetUserId
void SetUserId(const Aws::String &value)
Definition: DescribeUserResult.h:46
Aws::WorkMail::Model::DescribeUserResult::WithUserId
DescribeUserResult & WithUserId(Aws::String &&value)
Definition: DescribeUserResult.h:66
Aws::WorkMail::Model::DescribeUserResult::WithUserId
DescribeUserResult & WithUserId(const char *value)
Definition: DescribeUserResult.h:71
Aws::WorkMail::Model::DescribeUserResult::DescribeUserResult
DescribeUserResult()
Aws::WorkMail::Model::DescribeUserResult::SetUserRole
void SetUserRole(UserRole &&value)
Definition: DescribeUserResult.h:241
Aws::WorkMail::Model::DescribeUserResult::SetName
void SetName(const char *value)
Definition: DescribeUserResult.h:92
AWSString.h
Aws::WorkMail::Model::DescribeUserResult::SetDisabledDate
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeUserResult.h:311
Aws::WorkMail::Model::DescribeUserResult::SetUserRole
void SetUserRole(const UserRole &value)
Definition: DescribeUserResult.h:231
Aws::WorkMail::Model::DescribeUserResult::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: DescribeUserResult.h:154
Aws::WorkMail::Model::DescribeUserResult::SetEnabledDate
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeUserResult.h:274
Aws::WorkMail::Model::DescribeUserResult::WithDisabledDate
DescribeUserResult & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeUserResult.h:317
Aws::WorkMail::Model::DescribeUserResult::SetName
void SetName(const Aws::String &value)
Definition: DescribeUserResult.h:82
Aws::WorkMail::Model::DescribeUserResult::SetDisabledDate
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeUserResult.h:305
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::DescribeUserResult::GetDisabledDate
const Aws::Utils::DateTime & GetDisabledDate() const
Definition: DescribeUserResult.h:299
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::DescribeUserResult::SetUserId
void SetUserId(const char *value)
Definition: DescribeUserResult.h:56
EntityState.h
Aws::WorkMail::Model::DescribeUserResult::WithName
DescribeUserResult & WithName(const char *value)
Definition: DescribeUserResult.h:107
Aws::WorkMail::Model::DescribeUserResult::GetName
const Aws::String & GetName() const
Definition: DescribeUserResult.h:77
Aws::WorkMail::Model::DescribeUserResult::GetState
const EntityState & GetState() const
Definition: DescribeUserResult.h:186
Aws::WorkMail::Model::DescribeUserResult::WithDisabledDate
DescribeUserResult & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeUserResult.h:323
Aws::WorkMail::Model::DescribeUserResult
Definition: DescribeUserResult.h:31
Aws::WorkMail::Model::DescribeUserResult::WithDisplayName
DescribeUserResult & WithDisplayName(Aws::String &&value)
Definition: DescribeUserResult.h:174
Aws::WorkMail::Model::DescribeUserResult::DescribeUserResult
DescribeUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::DescribeUserResult::WithEmail
DescribeUserResult & WithEmail(Aws::String &&value)
Definition: DescribeUserResult.h:138
Aws::WorkMail::Model::DescribeUserResult::SetEmail
void SetEmail(const char *value)
Definition: DescribeUserResult.h:128
Aws::WorkMail::Model::DescribeUserResult::GetUserRole
const UserRole & GetUserRole() const
Definition: DescribeUserResult.h:221
Aws::WorkMail::Model::DescribeUserResult::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: DescribeUserResult.h:159
Aws::WorkMail::Model::DescribeUserResult::WithUserRole
DescribeUserResult & WithUserRole(UserRole &&value)
Definition: DescribeUserResult.h:261
Aws::WorkMail::Model::DescribeUserResult::WithState
DescribeUserResult & WithState(const EntityState &value)
Definition: DescribeUserResult.h:204
Aws::WorkMail::Model::EntityState
EntityState
Definition: EntityState.h:17