AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/UserIdentityInfo.h>
11#include <aws/connect/model/UserPhoneConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Connect
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONNECT_API CreateUserRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
35
36 AWS_CONNECT_API Aws::String SerializePayload() const override;
37
38
40
49 inline const Aws::String& GetUsername() const{ return m_username; }
50 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
51 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
52 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
53 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
54 inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
55 inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
56 inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
58
60
65 inline const Aws::String& GetPassword() const{ return m_password; }
66 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
67 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
68 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
69 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
70 inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
71 inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
72 inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
74
76
79 inline const UserIdentityInfo& GetIdentityInfo() const{ return m_identityInfo; }
80 inline bool IdentityInfoHasBeenSet() const { return m_identityInfoHasBeenSet; }
81 inline void SetIdentityInfo(const UserIdentityInfo& value) { m_identityInfoHasBeenSet = true; m_identityInfo = value; }
82 inline void SetIdentityInfo(UserIdentityInfo&& value) { m_identityInfoHasBeenSet = true; m_identityInfo = std::move(value); }
83 inline CreateUserRequest& WithIdentityInfo(const UserIdentityInfo& value) { SetIdentityInfo(value); return *this;}
84 inline CreateUserRequest& WithIdentityInfo(UserIdentityInfo&& value) { SetIdentityInfo(std::move(value)); return *this;}
86
88
91 inline const UserPhoneConfig& GetPhoneConfig() const{ return m_phoneConfig; }
92 inline bool PhoneConfigHasBeenSet() const { return m_phoneConfigHasBeenSet; }
93 inline void SetPhoneConfig(const UserPhoneConfig& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = value; }
94 inline void SetPhoneConfig(UserPhoneConfig&& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = std::move(value); }
95 inline CreateUserRequest& WithPhoneConfig(const UserPhoneConfig& value) { SetPhoneConfig(value); return *this;}
96 inline CreateUserRequest& WithPhoneConfig(UserPhoneConfig&& value) { SetPhoneConfig(std::move(value)); return *this;}
98
100
111 inline const Aws::String& GetDirectoryUserId() const{ return m_directoryUserId; }
112 inline bool DirectoryUserIdHasBeenSet() const { return m_directoryUserIdHasBeenSet; }
113 inline void SetDirectoryUserId(const Aws::String& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = value; }
114 inline void SetDirectoryUserId(Aws::String&& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = std::move(value); }
115 inline void SetDirectoryUserId(const char* value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId.assign(value); }
116 inline CreateUserRequest& WithDirectoryUserId(const Aws::String& value) { SetDirectoryUserId(value); return *this;}
117 inline CreateUserRequest& WithDirectoryUserId(Aws::String&& value) { SetDirectoryUserId(std::move(value)); return *this;}
118 inline CreateUserRequest& WithDirectoryUserId(const char* value) { SetDirectoryUserId(value); return *this;}
120
122
125 inline const Aws::Vector<Aws::String>& GetSecurityProfileIds() const{ return m_securityProfileIds; }
126 inline bool SecurityProfileIdsHasBeenSet() const { return m_securityProfileIdsHasBeenSet; }
127 inline void SetSecurityProfileIds(const Aws::Vector<Aws::String>& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = value; }
128 inline void SetSecurityProfileIds(Aws::Vector<Aws::String>&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = std::move(value); }
131 inline CreateUserRequest& AddSecurityProfileIds(const Aws::String& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(value); return *this; }
132 inline CreateUserRequest& AddSecurityProfileIds(Aws::String&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(std::move(value)); return *this; }
133 inline CreateUserRequest& AddSecurityProfileIds(const char* value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.push_back(value); return *this; }
135
137
140 inline const Aws::String& GetRoutingProfileId() const{ return m_routingProfileId; }
141 inline bool RoutingProfileIdHasBeenSet() const { return m_routingProfileIdHasBeenSet; }
142 inline void SetRoutingProfileId(const Aws::String& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = value; }
143 inline void SetRoutingProfileId(Aws::String&& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = std::move(value); }
144 inline void SetRoutingProfileId(const char* value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId.assign(value); }
145 inline CreateUserRequest& WithRoutingProfileId(const Aws::String& value) { SetRoutingProfileId(value); return *this;}
146 inline CreateUserRequest& WithRoutingProfileId(Aws::String&& value) { SetRoutingProfileId(std::move(value)); return *this;}
147 inline CreateUserRequest& WithRoutingProfileId(const char* value) { SetRoutingProfileId(value); return *this;}
149
151
154 inline const Aws::String& GetHierarchyGroupId() const{ return m_hierarchyGroupId; }
155 inline bool HierarchyGroupIdHasBeenSet() const { return m_hierarchyGroupIdHasBeenSet; }
156 inline void SetHierarchyGroupId(const Aws::String& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = value; }
157 inline void SetHierarchyGroupId(Aws::String&& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = std::move(value); }
158 inline void SetHierarchyGroupId(const char* value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId.assign(value); }
159 inline CreateUserRequest& WithHierarchyGroupId(const Aws::String& value) { SetHierarchyGroupId(value); return *this;}
160 inline CreateUserRequest& WithHierarchyGroupId(Aws::String&& value) { SetHierarchyGroupId(std::move(value)); return *this;}
161 inline CreateUserRequest& WithHierarchyGroupId(const char* value) { SetHierarchyGroupId(value); return *this;}
163
165
170 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
171 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
172 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
173 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
174 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
175 inline CreateUserRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
176 inline CreateUserRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
177 inline CreateUserRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
179
181
185 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
188 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
189 inline CreateUserRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
190 inline CreateUserRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
191 inline CreateUserRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
192 inline CreateUserRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
193 inline CreateUserRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
194 inline CreateUserRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
195 inline CreateUserRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
196 inline CreateUserRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
197 inline CreateUserRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
199 private:
200
201 Aws::String m_username;
202 bool m_usernameHasBeenSet = false;
203
204 Aws::String m_password;
205 bool m_passwordHasBeenSet = false;
206
207 UserIdentityInfo m_identityInfo;
208 bool m_identityInfoHasBeenSet = false;
209
210 UserPhoneConfig m_phoneConfig;
211 bool m_phoneConfigHasBeenSet = false;
212
213 Aws::String m_directoryUserId;
214 bool m_directoryUserIdHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_securityProfileIds;
217 bool m_securityProfileIdsHasBeenSet = false;
218
219 Aws::String m_routingProfileId;
220 bool m_routingProfileIdHasBeenSet = false;
221
222 Aws::String m_hierarchyGroupId;
223 bool m_hierarchyGroupIdHasBeenSet = false;
224
225 Aws::String m_instanceId;
226 bool m_instanceIdHasBeenSet = false;
227
229 bool m_tagsHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace Connect
234} // namespace Aws
CreateUserRequest & WithPhoneConfig(const UserPhoneConfig &value)
const Aws::String & GetPassword() const
CreateUserRequest & AddTags(const char *key, Aws::String &&value)
void SetUsername(const Aws::String &value)
const Aws::String & GetDirectoryUserId() const
CreateUserRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRoutingProfileId() const
void SetDirectoryUserId(Aws::String &&value)
CreateUserRequest & WithHierarchyGroupId(const Aws::String &value)
CreateUserRequest & AddSecurityProfileIds(const Aws::String &value)
const UserPhoneConfig & GetPhoneConfig() const
CreateUserRequest & WithPassword(const char *value)
void SetPassword(const Aws::String &value)
CreateUserRequest & WithInstanceId(Aws::String &&value)
CreateUserRequest & WithDirectoryUserId(Aws::String &&value)
const Aws::String & GetInstanceId() const
void SetHierarchyGroupId(Aws::String &&value)
CreateUserRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUserRequest & WithHierarchyGroupId(Aws::String &&value)
CreateUserRequest & AddSecurityProfileIds(const char *value)
CreateUserRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateUserRequest & WithRoutingProfileId(Aws::String &&value)
CreateUserRequest & WithRoutingProfileId(const char *value)
CreateUserRequest & AddTags(const char *key, const char *value)
CreateUserRequest & WithDirectoryUserId(const Aws::String &value)
CreateUserRequest & WithIdentityInfo(const UserIdentityInfo &value)
CreateUserRequest & AddTags(Aws::String &&key, const char *value)
CreateUserRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateUserRequest & WithInstanceId(const Aws::String &value)
void SetRoutingProfileId(Aws::String &&value)
const UserIdentityInfo & GetIdentityInfo() const
CreateUserRequest & WithRoutingProfileId(const Aws::String &value)
CreateUserRequest & WithDirectoryUserId(const char *value)
CreateUserRequest & WithPassword(Aws::String &&value)
void SetDirectoryUserId(const Aws::String &value)
void SetIdentityInfo(const UserIdentityInfo &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetSecurityProfileIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithInstanceId(const char *value)
CreateUserRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetHierarchyGroupId() const
void SetRoutingProfileId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUserRequest & WithUsername(const Aws::String &value)
CreateUserRequest & WithPhoneConfig(UserPhoneConfig &&value)
CreateUserRequest & WithUsername(Aws::String &&value)
CreateUserRequest & WithPassword(const Aws::String &value)
CreateUserRequest & WithSecurityProfileIds(const Aws::Vector< Aws::String > &value)
void SetPhoneConfig(UserPhoneConfig &&value)
const Aws::String & GetUsername() const
void SetIdentityInfo(UserIdentityInfo &&value)
void SetHierarchyGroupId(const Aws::String &value)
CreateUserRequest & WithSecurityProfileIds(Aws::Vector< Aws::String > &&value)
CreateUserRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUserRequest & AddSecurityProfileIds(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
CreateUserRequest & WithUsername(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUserRequest & WithHierarchyGroupId(const char *value)
void SetPhoneConfig(const UserPhoneConfig &value)
const Aws::Vector< Aws::String > & GetSecurityProfileIds() const
CreateUserRequest & WithIdentityInfo(UserIdentityInfo &&value)
void SetSecurityProfileIds(Aws::Vector< Aws::String > &&value)
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