AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/UserIdentityInfo.h>
10#include <aws/connect/model/UserPhoneConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Connect {
19namespace Model {
20
24 public:
25 AWS_CONNECT_API CreateUserRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
36
45 inline const Aws::String& GetUsername() const { return m_username; }
46 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
47 template <typename UsernameT = Aws::String>
48 void SetUsername(UsernameT&& value) {
49 m_usernameHasBeenSet = true;
50 m_username = std::forward<UsernameT>(value);
51 }
52 template <typename UsernameT = Aws::String>
53 CreateUserRequest& WithUsername(UsernameT&& value) {
54 SetUsername(std::forward<UsernameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetPassword() const { return m_password; }
66 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
67 template <typename PasswordT = Aws::String>
68 void SetPassword(PasswordT&& value) {
69 m_passwordHasBeenSet = true;
70 m_password = std::forward<PasswordT>(value);
71 }
72 template <typename PasswordT = Aws::String>
73 CreateUserRequest& WithPassword(PasswordT&& value) {
74 SetPassword(std::forward<PasswordT>(value));
75 return *this;
76 }
78
80
83 inline const UserIdentityInfo& GetIdentityInfo() const { return m_identityInfo; }
84 inline bool IdentityInfoHasBeenSet() const { return m_identityInfoHasBeenSet; }
85 template <typename IdentityInfoT = UserIdentityInfo>
86 void SetIdentityInfo(IdentityInfoT&& value) {
87 m_identityInfoHasBeenSet = true;
88 m_identityInfo = std::forward<IdentityInfoT>(value);
89 }
90 template <typename IdentityInfoT = UserIdentityInfo>
91 CreateUserRequest& WithIdentityInfo(IdentityInfoT&& value) {
92 SetIdentityInfo(std::forward<IdentityInfoT>(value));
93 return *this;
94 }
96
98
101 inline const UserPhoneConfig& GetPhoneConfig() const { return m_phoneConfig; }
102 inline bool PhoneConfigHasBeenSet() const { return m_phoneConfigHasBeenSet; }
103 template <typename PhoneConfigT = UserPhoneConfig>
104 void SetPhoneConfig(PhoneConfigT&& value) {
105 m_phoneConfigHasBeenSet = true;
106 m_phoneConfig = std::forward<PhoneConfigT>(value);
107 }
108 template <typename PhoneConfigT = UserPhoneConfig>
109 CreateUserRequest& WithPhoneConfig(PhoneConfigT&& value) {
110 SetPhoneConfig(std::forward<PhoneConfigT>(value));
111 return *this;
112 }
114
116
127 inline const Aws::String& GetDirectoryUserId() const { return m_directoryUserId; }
128 inline bool DirectoryUserIdHasBeenSet() const { return m_directoryUserIdHasBeenSet; }
129 template <typename DirectoryUserIdT = Aws::String>
130 void SetDirectoryUserId(DirectoryUserIdT&& value) {
131 m_directoryUserIdHasBeenSet = true;
132 m_directoryUserId = std::forward<DirectoryUserIdT>(value);
133 }
134 template <typename DirectoryUserIdT = Aws::String>
135 CreateUserRequest& WithDirectoryUserId(DirectoryUserIdT&& value) {
136 SetDirectoryUserId(std::forward<DirectoryUserIdT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Aws::String>& GetSecurityProfileIds() const { return m_securityProfileIds; }
146 inline bool SecurityProfileIdsHasBeenSet() const { return m_securityProfileIdsHasBeenSet; }
147 template <typename SecurityProfileIdsT = Aws::Vector<Aws::String>>
148 void SetSecurityProfileIds(SecurityProfileIdsT&& value) {
149 m_securityProfileIdsHasBeenSet = true;
150 m_securityProfileIds = std::forward<SecurityProfileIdsT>(value);
151 }
152 template <typename SecurityProfileIdsT = Aws::Vector<Aws::String>>
153 CreateUserRequest& WithSecurityProfileIds(SecurityProfileIdsT&& value) {
154 SetSecurityProfileIds(std::forward<SecurityProfileIdsT>(value));
155 return *this;
156 }
157 template <typename SecurityProfileIdsT = Aws::String>
158 CreateUserRequest& AddSecurityProfileIds(SecurityProfileIdsT&& value) {
159 m_securityProfileIdsHasBeenSet = true;
160 m_securityProfileIds.emplace_back(std::forward<SecurityProfileIdsT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetRoutingProfileId() const { return m_routingProfileId; }
170 inline bool RoutingProfileIdHasBeenSet() const { return m_routingProfileIdHasBeenSet; }
171 template <typename RoutingProfileIdT = Aws::String>
172 void SetRoutingProfileId(RoutingProfileIdT&& value) {
173 m_routingProfileIdHasBeenSet = true;
174 m_routingProfileId = std::forward<RoutingProfileIdT>(value);
175 }
176 template <typename RoutingProfileIdT = Aws::String>
177 CreateUserRequest& WithRoutingProfileId(RoutingProfileIdT&& value) {
178 SetRoutingProfileId(std::forward<RoutingProfileIdT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetHierarchyGroupId() const { return m_hierarchyGroupId; }
188 inline bool HierarchyGroupIdHasBeenSet() const { return m_hierarchyGroupIdHasBeenSet; }
189 template <typename HierarchyGroupIdT = Aws::String>
190 void SetHierarchyGroupId(HierarchyGroupIdT&& value) {
191 m_hierarchyGroupIdHasBeenSet = true;
192 m_hierarchyGroupId = std::forward<HierarchyGroupIdT>(value);
193 }
194 template <typename HierarchyGroupIdT = Aws::String>
195 CreateUserRequest& WithHierarchyGroupId(HierarchyGroupIdT&& value) {
196 SetHierarchyGroupId(std::forward<HierarchyGroupIdT>(value));
197 return *this;
198 }
200
202
207 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
208 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
209 template <typename InstanceIdT = Aws::String>
210 void SetInstanceId(InstanceIdT&& value) {
211 m_instanceIdHasBeenSet = true;
212 m_instanceId = std::forward<InstanceIdT>(value);
213 }
214 template <typename InstanceIdT = Aws::String>
215 CreateUserRequest& WithInstanceId(InstanceIdT&& value) {
216 SetInstanceId(std::forward<InstanceIdT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
229 void SetTags(TagsT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags = std::forward<TagsT>(value);
232 }
233 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
234 CreateUserRequest& WithTags(TagsT&& value) {
235 SetTags(std::forward<TagsT>(value));
236 return *this;
237 }
238 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
239 CreateUserRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
240 m_tagsHasBeenSet = true;
241 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_username;
247 bool m_usernameHasBeenSet = false;
248
249 Aws::String m_password;
250 bool m_passwordHasBeenSet = false;
251
252 UserIdentityInfo m_identityInfo;
253 bool m_identityInfoHasBeenSet = false;
254
255 UserPhoneConfig m_phoneConfig;
256 bool m_phoneConfigHasBeenSet = false;
257
258 Aws::String m_directoryUserId;
259 bool m_directoryUserIdHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_securityProfileIds;
262 bool m_securityProfileIdsHasBeenSet = false;
263
264 Aws::String m_routingProfileId;
265 bool m_routingProfileIdHasBeenSet = false;
266
267 Aws::String m_hierarchyGroupId;
268 bool m_hierarchyGroupIdHasBeenSet = false;
269
270 Aws::String m_instanceId;
271 bool m_instanceIdHasBeenSet = false;
272
274 bool m_tagsHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace Connect
279} // namespace Aws
const Aws::String & GetPassword() const
void SetPhoneConfig(PhoneConfigT &&value)
const Aws::String & GetDirectoryUserId() const
void SetHierarchyGroupId(HierarchyGroupIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRoutingProfileId() const
AWS_CONNECT_API CreateUserRequest()=default
const UserPhoneConfig & GetPhoneConfig() const
CreateUserRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetInstanceId() const
CreateUserRequest & AddSecurityProfileIds(SecurityProfileIdsT &&value)
void SetDirectoryUserId(DirectoryUserIdT &&value)
CreateUserRequest & WithPassword(PasswordT &&value)
CreateUserRequest & WithInstanceId(InstanceIdT &&value)
CreateUserRequest & WithDirectoryUserId(DirectoryUserIdT &&value)
const UserIdentityInfo & GetIdentityInfo() const
void SetSecurityProfileIds(SecurityProfileIdsT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateUserRequest & WithIdentityInfo(IdentityInfoT &&value)
void SetRoutingProfileId(RoutingProfileIdT &&value)
CreateUserRequest & WithHierarchyGroupId(HierarchyGroupIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetIdentityInfo(IdentityInfoT &&value)
const Aws::String & GetHierarchyGroupId() const
CreateUserRequest & WithPhoneConfig(PhoneConfigT &&value)
const Aws::String & GetUsername() const
CreateUserRequest & WithRoutingProfileId(RoutingProfileIdT &&value)
CreateUserRequest & WithSecurityProfileIds(SecurityProfileIdsT &&value)
CreateUserRequest & WithUsername(UsernameT &&value)
const Aws::Vector< Aws::String > & GetSecurityProfileIds() const
CreateUserRequest & WithTags(TagsT &&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