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/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/UserIdentityInfo.h>
10#include <aws/connect/model/UserPhoneConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.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 Connect
27{
28namespace Model
29{
30
37 class User
38 {
39 public:
40 AWS_CONNECT_API User();
41 AWS_CONNECT_API User(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline User& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline User& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const Aws::String& GetArn() const{ return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
67 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
71 inline User& WithArn(const char* value) { SetArn(value); return *this;}
73
75
78 inline const Aws::String& GetUsername() const{ return m_username; }
79 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
80 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
81 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
82 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
83 inline User& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
84 inline User& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
85 inline User& WithUsername(const char* value) { SetUsername(value); return *this;}
87
89
92 inline const UserIdentityInfo& GetIdentityInfo() const{ return m_identityInfo; }
93 inline bool IdentityInfoHasBeenSet() const { return m_identityInfoHasBeenSet; }
94 inline void SetIdentityInfo(const UserIdentityInfo& value) { m_identityInfoHasBeenSet = true; m_identityInfo = value; }
95 inline void SetIdentityInfo(UserIdentityInfo&& value) { m_identityInfoHasBeenSet = true; m_identityInfo = std::move(value); }
96 inline User& WithIdentityInfo(const UserIdentityInfo& value) { SetIdentityInfo(value); return *this;}
97 inline User& WithIdentityInfo(UserIdentityInfo&& value) { SetIdentityInfo(std::move(value)); return *this;}
99
101
104 inline const UserPhoneConfig& GetPhoneConfig() const{ return m_phoneConfig; }
105 inline bool PhoneConfigHasBeenSet() const { return m_phoneConfigHasBeenSet; }
106 inline void SetPhoneConfig(const UserPhoneConfig& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = value; }
107 inline void SetPhoneConfig(UserPhoneConfig&& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = std::move(value); }
108 inline User& WithPhoneConfig(const UserPhoneConfig& value) { SetPhoneConfig(value); return *this;}
109 inline User& WithPhoneConfig(UserPhoneConfig&& value) { SetPhoneConfig(std::move(value)); return *this;}
111
113
117 inline const Aws::String& GetDirectoryUserId() const{ return m_directoryUserId; }
118 inline bool DirectoryUserIdHasBeenSet() const { return m_directoryUserIdHasBeenSet; }
119 inline void SetDirectoryUserId(const Aws::String& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = value; }
120 inline void SetDirectoryUserId(Aws::String&& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = std::move(value); }
121 inline void SetDirectoryUserId(const char* value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId.assign(value); }
122 inline User& WithDirectoryUserId(const Aws::String& value) { SetDirectoryUserId(value); return *this;}
123 inline User& WithDirectoryUserId(Aws::String&& value) { SetDirectoryUserId(std::move(value)); return *this;}
124 inline User& WithDirectoryUserId(const char* value) { SetDirectoryUserId(value); return *this;}
126
128
131 inline const Aws::Vector<Aws::String>& GetSecurityProfileIds() const{ return m_securityProfileIds; }
132 inline bool SecurityProfileIdsHasBeenSet() const { return m_securityProfileIdsHasBeenSet; }
133 inline void SetSecurityProfileIds(const Aws::Vector<Aws::String>& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = value; }
134 inline void SetSecurityProfileIds(Aws::Vector<Aws::String>&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = std::move(value); }
135 inline User& WithSecurityProfileIds(const Aws::Vector<Aws::String>& value) { SetSecurityProfileIds(value); return *this;}
136 inline User& WithSecurityProfileIds(Aws::Vector<Aws::String>&& value) { SetSecurityProfileIds(std::move(value)); return *this;}
137 inline User& AddSecurityProfileIds(const Aws::String& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(value); return *this; }
138 inline User& AddSecurityProfileIds(Aws::String&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(std::move(value)); return *this; }
139 inline User& AddSecurityProfileIds(const char* value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(value); return *this; }
141
143
146 inline const Aws::String& GetRoutingProfileId() const{ return m_routingProfileId; }
147 inline bool RoutingProfileIdHasBeenSet() const { return m_routingProfileIdHasBeenSet; }
148 inline void SetRoutingProfileId(const Aws::String& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = value; }
149 inline void SetRoutingProfileId(Aws::String&& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = std::move(value); }
150 inline void SetRoutingProfileId(const char* value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId.assign(value); }
151 inline User& WithRoutingProfileId(const Aws::String& value) { SetRoutingProfileId(value); return *this;}
152 inline User& WithRoutingProfileId(Aws::String&& value) { SetRoutingProfileId(std::move(value)); return *this;}
153 inline User& WithRoutingProfileId(const char* value) { SetRoutingProfileId(value); return *this;}
155
157
160 inline const Aws::String& GetHierarchyGroupId() const{ return m_hierarchyGroupId; }
161 inline bool HierarchyGroupIdHasBeenSet() const { return m_hierarchyGroupIdHasBeenSet; }
162 inline void SetHierarchyGroupId(const Aws::String& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = value; }
163 inline void SetHierarchyGroupId(Aws::String&& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = std::move(value); }
164 inline void SetHierarchyGroupId(const char* value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId.assign(value); }
165 inline User& WithHierarchyGroupId(const Aws::String& value) { SetHierarchyGroupId(value); return *this;}
166 inline User& WithHierarchyGroupId(Aws::String&& value) { SetHierarchyGroupId(std::move(value)); return *this;}
167 inline User& WithHierarchyGroupId(const char* value) { SetHierarchyGroupId(value); return *this;}
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
177 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
178 inline User& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
179 inline User& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
180 inline User& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
181 inline User& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
182 inline User& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
183 inline User& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
184 inline User& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
185 inline User& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
186 inline User& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
188
190
193 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
194 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
195 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
196 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
197 inline User& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
198 inline User& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
200
202
205 inline const Aws::String& GetLastModifiedRegion() const{ return m_lastModifiedRegion; }
206 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
207 inline void SetLastModifiedRegion(const Aws::String& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = value; }
208 inline void SetLastModifiedRegion(Aws::String&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::move(value); }
209 inline void SetLastModifiedRegion(const char* value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion.assign(value); }
210 inline User& WithLastModifiedRegion(const Aws::String& value) { SetLastModifiedRegion(value); return *this;}
211 inline User& WithLastModifiedRegion(Aws::String&& value) { SetLastModifiedRegion(std::move(value)); return *this;}
212 inline User& WithLastModifiedRegion(const char* value) { SetLastModifiedRegion(value); return *this;}
214 private:
215
216 Aws::String m_id;
217 bool m_idHasBeenSet = false;
218
219 Aws::String m_arn;
220 bool m_arnHasBeenSet = false;
221
222 Aws::String m_username;
223 bool m_usernameHasBeenSet = false;
224
225 UserIdentityInfo m_identityInfo;
226 bool m_identityInfoHasBeenSet = false;
227
228 UserPhoneConfig m_phoneConfig;
229 bool m_phoneConfigHasBeenSet = false;
230
231 Aws::String m_directoryUserId;
232 bool m_directoryUserIdHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_securityProfileIds;
235 bool m_securityProfileIdsHasBeenSet = false;
236
237 Aws::String m_routingProfileId;
238 bool m_routingProfileIdHasBeenSet = false;
239
240 Aws::String m_hierarchyGroupId;
241 bool m_hierarchyGroupIdHasBeenSet = false;
242
244 bool m_tagsHasBeenSet = false;
245
246 Aws::Utils::DateTime m_lastModifiedTime;
247 bool m_lastModifiedTimeHasBeenSet = false;
248
249 Aws::String m_lastModifiedRegion;
250 bool m_lastModifiedRegionHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace Connect
255} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition User.h:176
User & AddTags(Aws::String &&key, Aws::String &&value)
Definition User.h:183
const Aws::String & GetLastModifiedRegion() const
Definition User.h:205
void SetArn(const char *value)
Definition User.h:68
User & AddSecurityProfileIds(const char *value)
Definition User.h:139
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
User & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition User.h:178
User & WithIdentityInfo(UserIdentityInfo &&value)
Definition User.h:97
User & WithArn(const Aws::String &value)
Definition User.h:69
void SetHierarchyGroupId(Aws::String &&value)
Definition User.h:163
bool SecurityProfileIdsHasBeenSet() const
Definition User.h:132
User & WithSecurityProfileIds(Aws::Vector< Aws::String > &&value)
Definition User.h:136
void SetHierarchyGroupId(const Aws::String &value)
Definition User.h:162
User & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition User.h:197
void SetDirectoryUserId(Aws::String &&value)
Definition User.h:120
void SetArn(const Aws::String &value)
Definition User.h:66
User & WithSecurityProfileIds(const Aws::Vector< Aws::String > &value)
Definition User.h:135
User & WithHierarchyGroupId(const char *value)
Definition User.h:167
bool DirectoryUserIdHasBeenSet() const
Definition User.h:118
void SetLastModifiedRegion(Aws::String &&value)
Definition User.h:208
void SetRoutingProfileId(Aws::String &&value)
Definition User.h:149
User & AddTags(const char *key, const char *value)
Definition User.h:186
const Aws::String & GetArn() const
Definition User.h:64
User & WithId(const char *value)
Definition User.h:57
const Aws::Vector< Aws::String > & GetSecurityProfileIds() const
Definition User.h:131
const Aws::String & GetDirectoryUserId() const
Definition User.h:117
void SetDirectoryUserId(const Aws::String &value)
Definition User.h:119
User & AddTags(Aws::String &&key, const Aws::String &value)
Definition User.h:181
User & AddTags(const char *key, Aws::String &&value)
Definition User.h:184
User & WithUsername(Aws::String &&value)
Definition User.h:84
bool PhoneConfigHasBeenSet() const
Definition User.h:105
void SetId(Aws::String &&value)
Definition User.h:53
User & WithDirectoryUserId(const Aws::String &value)
Definition User.h:122
AWS_CONNECT_API User()
User & WithLastModifiedRegion(Aws::String &&value)
Definition User.h:211
User & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition User.h:179
void SetHierarchyGroupId(const char *value)
Definition User.h:164
const Aws::String & GetUsername() const
Definition User.h:78
bool RoutingProfileIdHasBeenSet() const
Definition User.h:147
User & WithId(Aws::String &&value)
Definition User.h:56
void SetSecurityProfileIds(Aws::Vector< Aws::String > &&value)
Definition User.h:134
User & WithLastModifiedRegion(const Aws::String &value)
Definition User.h:210
bool UsernameHasBeenSet() const
Definition User.h:79
User & WithHierarchyGroupId(const Aws::String &value)
Definition User.h:165
User & WithArn(Aws::String &&value)
Definition User.h:70
bool HierarchyGroupIdHasBeenSet() const
Definition User.h:161
void SetPhoneConfig(UserPhoneConfig &&value)
Definition User.h:107
User & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition User.h:198
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition User.h:195
void SetId(const Aws::String &value)
Definition User.h:52
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition User.h:177
void SetArn(Aws::String &&value)
Definition User.h:67
const UserPhoneConfig & GetPhoneConfig() const
Definition User.h:104
void SetLastModifiedRegion(const char *value)
Definition User.h:209
bool LastModifiedTimeHasBeenSet() const
Definition User.h:194
bool IdHasBeenSet() const
Definition User.h:51
User & WithRoutingProfileId(const Aws::String &value)
Definition User.h:151
User & WithDirectoryUserId(const char *value)
Definition User.h:124
void SetIdentityInfo(UserIdentityInfo &&value)
Definition User.h:95
AWS_CONNECT_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdentityInfoHasBeenSet() const
Definition User.h:93
void SetLastModifiedRegion(const Aws::String &value)
Definition User.h:207
User & WithUsername(const Aws::String &value)
Definition User.h:83
void SetUsername(const Aws::String &value)
Definition User.h:80
User & AddTags(Aws::String &&key, const char *value)
Definition User.h:185
User & WithRoutingProfileId(const char *value)
Definition User.h:153
bool ArnHasBeenSet() const
Definition User.h:65
void SetId(const char *value)
Definition User.h:54
bool LastModifiedRegionHasBeenSet() const
Definition User.h:206
void SetSecurityProfileIds(const Aws::Vector< Aws::String > &value)
Definition User.h:133
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition User.h:196
User & WithUsername(const char *value)
Definition User.h:85
AWS_CONNECT_API User(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition User.h:174
void SetRoutingProfileId(const char *value)
Definition User.h:150
const UserIdentityInfo & GetIdentityInfo() const
Definition User.h:92
bool TagsHasBeenSet() const
Definition User.h:175
const Aws::String & GetHierarchyGroupId() const
Definition User.h:160
User & WithPhoneConfig(UserPhoneConfig &&value)
Definition User.h:109
void SetDirectoryUserId(const char *value)
Definition User.h:121
User & WithId(const Aws::String &value)
Definition User.h:55
User & WithPhoneConfig(const UserPhoneConfig &value)
Definition User.h:108
const Aws::String & GetRoutingProfileId() const
Definition User.h:146
void SetUsername(const char *value)
Definition User.h:82
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition User.h:193
void SetUsername(Aws::String &&value)
Definition User.h:81
User & AddSecurityProfileIds(Aws::String &&value)
Definition User.h:138
void SetIdentityInfo(const UserIdentityInfo &value)
Definition User.h:94
User & AddTags(const Aws::String &key, Aws::String &&value)
Definition User.h:182
void SetRoutingProfileId(const Aws::String &value)
Definition User.h:148
User & WithArn(const char *value)
Definition User.h:71
User & WithHierarchyGroupId(Aws::String &&value)
Definition User.h:166
User & WithRoutingProfileId(Aws::String &&value)
Definition User.h:152
User & WithDirectoryUserId(Aws::String &&value)
Definition User.h:123
User & AddTags(const Aws::String &key, const Aws::String &value)
Definition User.h:180
const Aws::String & GetId() const
Definition User.h:50
User & WithLastModifiedRegion(const char *value)
Definition User.h:212
User & WithIdentityInfo(const UserIdentityInfo &value)
Definition User.h:96
User & AddSecurityProfileIds(const Aws::String &value)
Definition User.h:137
void SetPhoneConfig(const UserPhoneConfig &value)
Definition User.h:106
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue