AWS SDK for C++  1.9.153
AWS SDK for C++
User.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Connect
26 {
27 namespace Model
28 {
29 
37  {
38  public:
39  User();
43 
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
73  inline User& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
78  inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
79 
83  inline User& WithId(const char* value) { SetId(value); return *this;}
84 
85 
89  inline const Aws::String& GetArn() const{ return m_arn; }
90 
94  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
95 
99  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
100 
104  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
105 
109  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
110 
114  inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
115 
119  inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
120 
124  inline User& WithArn(const char* value) { SetArn(value); return *this;}
125 
126 
130  inline const Aws::String& GetUsername() const{ return m_username; }
131 
135  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
136 
140  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
141 
145  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
146 
150  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
151 
155  inline User& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
156 
160  inline User& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
161 
165  inline User& WithUsername(const char* value) { SetUsername(value); return *this;}
166 
167 
171  inline const UserIdentityInfo& GetIdentityInfo() const{ return m_identityInfo; }
172 
176  inline bool IdentityInfoHasBeenSet() const { return m_identityInfoHasBeenSet; }
177 
181  inline void SetIdentityInfo(const UserIdentityInfo& value) { m_identityInfoHasBeenSet = true; m_identityInfo = value; }
182 
186  inline void SetIdentityInfo(UserIdentityInfo&& value) { m_identityInfoHasBeenSet = true; m_identityInfo = std::move(value); }
187 
191  inline User& WithIdentityInfo(const UserIdentityInfo& value) { SetIdentityInfo(value); return *this;}
192 
196  inline User& WithIdentityInfo(UserIdentityInfo&& value) { SetIdentityInfo(std::move(value)); return *this;}
197 
198 
202  inline const UserPhoneConfig& GetPhoneConfig() const{ return m_phoneConfig; }
203 
207  inline bool PhoneConfigHasBeenSet() const { return m_phoneConfigHasBeenSet; }
208 
212  inline void SetPhoneConfig(const UserPhoneConfig& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = value; }
213 
217  inline void SetPhoneConfig(UserPhoneConfig&& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = std::move(value); }
218 
222  inline User& WithPhoneConfig(const UserPhoneConfig& value) { SetPhoneConfig(value); return *this;}
223 
227  inline User& WithPhoneConfig(UserPhoneConfig&& value) { SetPhoneConfig(std::move(value)); return *this;}
228 
229 
234  inline const Aws::String& GetDirectoryUserId() const{ return m_directoryUserId; }
235 
240  inline bool DirectoryUserIdHasBeenSet() const { return m_directoryUserIdHasBeenSet; }
241 
246  inline void SetDirectoryUserId(const Aws::String& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = value; }
247 
252  inline void SetDirectoryUserId(Aws::String&& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = std::move(value); }
253 
258  inline void SetDirectoryUserId(const char* value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId.assign(value); }
259 
264  inline User& WithDirectoryUserId(const Aws::String& value) { SetDirectoryUserId(value); return *this;}
265 
270  inline User& WithDirectoryUserId(Aws::String&& value) { SetDirectoryUserId(std::move(value)); return *this;}
271 
276  inline User& WithDirectoryUserId(const char* value) { SetDirectoryUserId(value); return *this;}
277 
278 
282  inline const Aws::Vector<Aws::String>& GetSecurityProfileIds() const{ return m_securityProfileIds; }
283 
287  inline bool SecurityProfileIdsHasBeenSet() const { return m_securityProfileIdsHasBeenSet; }
288 
292  inline void SetSecurityProfileIds(const Aws::Vector<Aws::String>& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = value; }
293 
297  inline void SetSecurityProfileIds(Aws::Vector<Aws::String>&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = std::move(value); }
298 
302  inline User& WithSecurityProfileIds(const Aws::Vector<Aws::String>& value) { SetSecurityProfileIds(value); return *this;}
303 
307  inline User& WithSecurityProfileIds(Aws::Vector<Aws::String>&& value) { SetSecurityProfileIds(std::move(value)); return *this;}
308 
312  inline User& AddSecurityProfileIds(const Aws::String& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(value); return *this; }
313 
317  inline User& AddSecurityProfileIds(Aws::String&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(std::move(value)); return *this; }
318 
322  inline User& AddSecurityProfileIds(const char* value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(value); return *this; }
323 
324 
328  inline const Aws::String& GetRoutingProfileId() const{ return m_routingProfileId; }
329 
333  inline bool RoutingProfileIdHasBeenSet() const { return m_routingProfileIdHasBeenSet; }
334 
338  inline void SetRoutingProfileId(const Aws::String& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = value; }
339 
343  inline void SetRoutingProfileId(Aws::String&& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = std::move(value); }
344 
348  inline void SetRoutingProfileId(const char* value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId.assign(value); }
349 
353  inline User& WithRoutingProfileId(const Aws::String& value) { SetRoutingProfileId(value); return *this;}
354 
358  inline User& WithRoutingProfileId(Aws::String&& value) { SetRoutingProfileId(std::move(value)); return *this;}
359 
363  inline User& WithRoutingProfileId(const char* value) { SetRoutingProfileId(value); return *this;}
364 
365 
369  inline const Aws::String& GetHierarchyGroupId() const{ return m_hierarchyGroupId; }
370 
374  inline bool HierarchyGroupIdHasBeenSet() const { return m_hierarchyGroupIdHasBeenSet; }
375 
379  inline void SetHierarchyGroupId(const Aws::String& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = value; }
380 
384  inline void SetHierarchyGroupId(Aws::String&& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = std::move(value); }
385 
389  inline void SetHierarchyGroupId(const char* value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId.assign(value); }
390 
394  inline User& WithHierarchyGroupId(const Aws::String& value) { SetHierarchyGroupId(value); return *this;}
395 
399  inline User& WithHierarchyGroupId(Aws::String&& value) { SetHierarchyGroupId(std::move(value)); return *this;}
400 
404  inline User& WithHierarchyGroupId(const char* value) { SetHierarchyGroupId(value); return *this;}
405 
406 
410  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
411 
415  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
416 
420  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
421 
425  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
426 
430  inline User& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
431 
435  inline User& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
436 
440  inline User& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
441 
445  inline User& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
446 
450  inline User& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
451 
455  inline User& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
456 
460  inline User& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
461 
465  inline User& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
466 
470  inline User& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
471 
472  private:
473 
474  Aws::String m_id;
475  bool m_idHasBeenSet;
476 
477  Aws::String m_arn;
478  bool m_arnHasBeenSet;
479 
480  Aws::String m_username;
481  bool m_usernameHasBeenSet;
482 
483  UserIdentityInfo m_identityInfo;
484  bool m_identityInfoHasBeenSet;
485 
486  UserPhoneConfig m_phoneConfig;
487  bool m_phoneConfigHasBeenSet;
488 
489  Aws::String m_directoryUserId;
490  bool m_directoryUserIdHasBeenSet;
491 
492  Aws::Vector<Aws::String> m_securityProfileIds;
493  bool m_securityProfileIdsHasBeenSet;
494 
495  Aws::String m_routingProfileId;
496  bool m_routingProfileIdHasBeenSet;
497 
498  Aws::String m_hierarchyGroupId;
499  bool m_hierarchyGroupIdHasBeenSet;
500 
502  bool m_tagsHasBeenSet;
503  };
504 
505 } // namespace Model
506 } // namespace Connect
507 } // namespace Aws
Aws::Connect::Model::User::WithArn
User & WithArn(Aws::String &&value)
Definition: User.h:119
Aws::Connect::Model::User::AddTags
User & AddTags(Aws::String &&key, Aws::String &&value)
Definition: User.h:455
Aws::Connect::Model::User::RoutingProfileIdHasBeenSet
bool RoutingProfileIdHasBeenSet() const
Definition: User.h:333
Aws::Connect::Model::User::WithHierarchyGroupId
User & WithHierarchyGroupId(const char *value)
Definition: User.h:404
Aws::Connect::Model::User::AddTags
User & AddTags(const Aws::String &key, Aws::String &&value)
Definition: User.h:450
Aws::Connect::Model::User::SetArn
void SetArn(Aws::String &&value)
Definition: User.h:104
Aws::Connect::Model::User::SetHierarchyGroupId
void SetHierarchyGroupId(Aws::String &&value)
Definition: User.h:384
Aws::Connect::Model::User::GetHierarchyGroupId
const Aws::String & GetHierarchyGroupId() const
Definition: User.h:369
Aws::Connect::Model::User
Definition: User.h:37
Aws::Connect::Model::User::WithTags
User & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: User.h:430
Aws::Connect::Model::User::WithUsername
User & WithUsername(const char *value)
Definition: User.h:165
Aws::Connect::Model::User::IdHasBeenSet
bool IdHasBeenSet() const
Definition: User.h:53
Aws::Connect::Model::User::SetIdentityInfo
void SetIdentityInfo(UserIdentityInfo &&value)
Definition: User.h:186
Aws::Connect::Model::User::SetDirectoryUserId
void SetDirectoryUserId(Aws::String &&value)
Definition: User.h:252
Aws::Connect::Model::User::SetArn
void SetArn(const char *value)
Definition: User.h:109
Aws::Connect::Model::User::GetPhoneConfig
const UserPhoneConfig & GetPhoneConfig() const
Definition: User.h:202
Aws::Connect::Model::User::SetSecurityProfileIds
void SetSecurityProfileIds(const Aws::Vector< Aws::String > &value)
Definition: User.h:292
Aws::Connect::Model::User::SetRoutingProfileId
void SetRoutingProfileId(const Aws::String &value)
Definition: User.h:338
Aws::Connect::Model::User::SetId
void SetId(Aws::String &&value)
Definition: User.h:63
Aws::Connect::Model::User::GetId
const Aws::String & GetId() const
Definition: User.h:48
Aws::Connect::Model::User::SetUsername
void SetUsername(const Aws::String &value)
Definition: User.h:140
Aws::Connect::Model::User::DirectoryUserIdHasBeenSet
bool DirectoryUserIdHasBeenSet() const
Definition: User.h:240
UserPhoneConfig.h
Aws::Connect::Model::UserPhoneConfig
Definition: UserPhoneConfig.h:34
Aws::Connect::Model::User::AddTags
User & AddTags(const char *key, Aws::String &&value)
Definition: User.h:460
Aws::Connect::Model::User::WithPhoneConfig
User & WithPhoneConfig(const UserPhoneConfig &value)
Definition: User.h:222
Aws::Connect::Model::User::SetUsername
void SetUsername(const char *value)
Definition: User.h:150
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::UserIdentityInfo
Definition: UserIdentityInfo.h:33
Aws::Connect::Model::User::WithArn
User & WithArn(const char *value)
Definition: User.h:124
Aws::Connect::Model::User::WithHierarchyGroupId
User & WithHierarchyGroupId(const Aws::String &value)
Definition: User.h:394
AWSVector.h
Aws::Connect::Model::User::SetHierarchyGroupId
void SetHierarchyGroupId(const char *value)
Definition: User.h:389
Aws::Connect::Model::User::WithId
User & WithId(const char *value)
Definition: User.h:83
Aws::Connect::Model::User::SecurityProfileIdsHasBeenSet
bool SecurityProfileIdsHasBeenSet() const
Definition: User.h:287
Aws::Connect::Model::User::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: User.h:135
Aws::Connect::Model::User::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: User.h:425
Aws::Connect::Model::User::GetSecurityProfileIds
const Aws::Vector< Aws::String > & GetSecurityProfileIds() const
Definition: User.h:282
Aws::Connect::Model::User::SetRoutingProfileId
void SetRoutingProfileId(const char *value)
Definition: User.h:348
Aws::Connect::Model::User::GetIdentityInfo
const UserIdentityInfo & GetIdentityInfo() const
Definition: User.h:171
Aws::Connect::Model::User::GetRoutingProfileId
const Aws::String & GetRoutingProfileId() const
Definition: User.h:328
Aws::Connect::Model::User::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::User::SetIdentityInfo
void SetIdentityInfo(const UserIdentityInfo &value)
Definition: User.h:181
Aws::Connect::Model::User::GetDirectoryUserId
const Aws::String & GetDirectoryUserId() const
Definition: User.h:234
Aws::Connect::Model::User::WithUsername
User & WithUsername(const Aws::String &value)
Definition: User.h:155
Aws::Connect::Model::User::SetUsername
void SetUsername(Aws::String &&value)
Definition: User.h:145
Aws::Connect::Model::User::SetId
void SetId(const char *value)
Definition: User.h:68
Aws::Connect::Model::User::SetDirectoryUserId
void SetDirectoryUserId(const Aws::String &value)
Definition: User.h:246
Aws::Connect::Model::User::WithRoutingProfileId
User & WithRoutingProfileId(const Aws::String &value)
Definition: User.h:353
Aws::Connect::Model::User::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: User.h:94
Aws::Connect::Model::User::User
User()
Aws::Connect::Model::User::SetPhoneConfig
void SetPhoneConfig(UserPhoneConfig &&value)
Definition: User.h:217
Aws::Connect::Model::User::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: User.h:410
Aws::Connect::Model::User::WithPhoneConfig
User & WithPhoneConfig(UserPhoneConfig &&value)
Definition: User.h:227
Aws::Connect::Model::User::HierarchyGroupIdHasBeenSet
bool HierarchyGroupIdHasBeenSet() const
Definition: User.h:374
Aws::Connect::Model::User::WithTags
User & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: User.h:435
Aws::Connect::Model::User::WithId
User & WithId(Aws::String &&value)
Definition: User.h:78
Aws::Connect::Model::User::WithIdentityInfo
User & WithIdentityInfo(UserIdentityInfo &&value)
Definition: User.h:196
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Connect::Model::User::WithUsername
User & WithUsername(Aws::String &&value)
Definition: User.h:160
Aws::Connect::Model::User::GetArn
const Aws::String & GetArn() const
Definition: User.h:89
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::User::IdentityInfoHasBeenSet
bool IdentityInfoHasBeenSet() const
Definition: User.h:176
Aws::Connect::Model::User::AddSecurityProfileIds
User & AddSecurityProfileIds(Aws::String &&value)
Definition: User.h:317
Aws::Connect::Model::User::PhoneConfigHasBeenSet
bool PhoneConfigHasBeenSet() const
Definition: User.h:207
Aws::Connect::Model::User::SetArn
void SetArn(const Aws::String &value)
Definition: User.h:99
Aws::Connect::Model::User::SetSecurityProfileIds
void SetSecurityProfileIds(Aws::Vector< Aws::String > &&value)
Definition: User.h:297
Aws::Connect::Model::User::WithArn
User & WithArn(const Aws::String &value)
Definition: User.h:114
Aws::Connect::Model::User::WithSecurityProfileIds
User & WithSecurityProfileIds(Aws::Vector< Aws::String > &&value)
Definition: User.h:307
Aws::Connect::Model::User::SetRoutingProfileId
void SetRoutingProfileId(Aws::String &&value)
Definition: User.h:343
Aws::Connect::Model::User::WithId
User & WithId(const Aws::String &value)
Definition: User.h:73
Aws::Connect::Model::User::AddSecurityProfileIds
User & AddSecurityProfileIds(const char *value)
Definition: User.h:322
Aws::Connect::Model::User::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: User.h:415
Aws::Connect::Model::User::WithDirectoryUserId
User & WithDirectoryUserId(const char *value)
Definition: User.h:276
Aws::Connect::Model::User::AddTags
User & AddTags(const char *key, const char *value)
Definition: User.h:470
Aws::Connect::Model::User::SetDirectoryUserId
void SetDirectoryUserId(const char *value)
Definition: User.h:258
Aws::Connect::Model::User::WithDirectoryUserId
User & WithDirectoryUserId(Aws::String &&value)
Definition: User.h:270
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
UserIdentityInfo.h
Aws::Connect::Model::User::WithDirectoryUserId
User & WithDirectoryUserId(const Aws::String &value)
Definition: User.h:264
Aws::Connect::Model::User::AddTags
User & AddTags(Aws::String &&key, const char *value)
Definition: User.h:465
Aws::Connect::Model::User::WithIdentityInfo
User & WithIdentityInfo(const UserIdentityInfo &value)
Definition: User.h:191
Aws::Connect::Model::User::WithRoutingProfileId
User & WithRoutingProfileId(Aws::String &&value)
Definition: User.h:358
Aws::Connect::Model::User::GetUsername
const Aws::String & GetUsername() const
Definition: User.h:130
Aws::Connect::Model::User::SetPhoneConfig
void SetPhoneConfig(const UserPhoneConfig &value)
Definition: User.h:212
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::User::AddSecurityProfileIds
User & AddSecurityProfileIds(const Aws::String &value)
Definition: User.h:312
Aws::Connect::Model::User::operator=
User & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::User::User
User(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::User::WithSecurityProfileIds
User & WithSecurityProfileIds(const Aws::Vector< Aws::String > &value)
Definition: User.h:302
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::User::WithHierarchyGroupId
User & WithHierarchyGroupId(Aws::String &&value)
Definition: User.h:399
Connect_EXPORTS.h
AWSMap.h
Aws::Connect::Model::User::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: User.h:420
Aws::Connect::Model::User::SetId
void SetId(const Aws::String &value)
Definition: User.h:58
Aws::Connect::Model::User::SetHierarchyGroupId
void SetHierarchyGroupId(const Aws::String &value)
Definition: User.h:379
Aws::Connect::Model::User::WithRoutingProfileId
User & WithRoutingProfileId(const char *value)
Definition: User.h:363
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Connect::Model::User::AddTags
User & AddTags(const Aws::String &key, const Aws::String &value)
Definition: User.h:440
Aws::Connect::Model::User::AddTags
User & AddTags(Aws::String &&key, const Aws::String &value)
Definition: User.h:445