AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename UsernameT = Aws::String>
52 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
53 template<typename UsernameT = Aws::String>
54 CreateUserRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
56
58
63 inline const Aws::String& GetPassword() const { return m_password; }
64 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
65 template<typename PasswordT = Aws::String>
66 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
67 template<typename PasswordT = Aws::String>
68 CreateUserRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
70
72
75 inline const UserIdentityInfo& GetIdentityInfo() const { return m_identityInfo; }
76 inline bool IdentityInfoHasBeenSet() const { return m_identityInfoHasBeenSet; }
77 template<typename IdentityInfoT = UserIdentityInfo>
78 void SetIdentityInfo(IdentityInfoT&& value) { m_identityInfoHasBeenSet = true; m_identityInfo = std::forward<IdentityInfoT>(value); }
79 template<typename IdentityInfoT = UserIdentityInfo>
80 CreateUserRequest& WithIdentityInfo(IdentityInfoT&& value) { SetIdentityInfo(std::forward<IdentityInfoT>(value)); return *this;}
82
84
87 inline const UserPhoneConfig& GetPhoneConfig() const { return m_phoneConfig; }
88 inline bool PhoneConfigHasBeenSet() const { return m_phoneConfigHasBeenSet; }
89 template<typename PhoneConfigT = UserPhoneConfig>
90 void SetPhoneConfig(PhoneConfigT&& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = std::forward<PhoneConfigT>(value); }
91 template<typename PhoneConfigT = UserPhoneConfig>
92 CreateUserRequest& WithPhoneConfig(PhoneConfigT&& value) { SetPhoneConfig(std::forward<PhoneConfigT>(value)); return *this;}
94
96
107 inline const Aws::String& GetDirectoryUserId() const { return m_directoryUserId; }
108 inline bool DirectoryUserIdHasBeenSet() const { return m_directoryUserIdHasBeenSet; }
109 template<typename DirectoryUserIdT = Aws::String>
110 void SetDirectoryUserId(DirectoryUserIdT&& value) { m_directoryUserIdHasBeenSet = true; m_directoryUserId = std::forward<DirectoryUserIdT>(value); }
111 template<typename DirectoryUserIdT = Aws::String>
112 CreateUserRequest& WithDirectoryUserId(DirectoryUserIdT&& value) { SetDirectoryUserId(std::forward<DirectoryUserIdT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetSecurityProfileIds() const { return m_securityProfileIds; }
120 inline bool SecurityProfileIdsHasBeenSet() const { return m_securityProfileIdsHasBeenSet; }
121 template<typename SecurityProfileIdsT = Aws::Vector<Aws::String>>
122 void SetSecurityProfileIds(SecurityProfileIdsT&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds = std::forward<SecurityProfileIdsT>(value); }
123 template<typename SecurityProfileIdsT = Aws::Vector<Aws::String>>
124 CreateUserRequest& WithSecurityProfileIds(SecurityProfileIdsT&& value) { SetSecurityProfileIds(std::forward<SecurityProfileIdsT>(value)); return *this;}
125 template<typename SecurityProfileIdsT = Aws::String>
126 CreateUserRequest& AddSecurityProfileIds(SecurityProfileIdsT&& value) { m_securityProfileIdsHasBeenSet = true; m_securityProfileIds.emplace_back(std::forward<SecurityProfileIdsT>(value)); return *this; }
128
130
133 inline const Aws::String& GetRoutingProfileId() const { return m_routingProfileId; }
134 inline bool RoutingProfileIdHasBeenSet() const { return m_routingProfileIdHasBeenSet; }
135 template<typename RoutingProfileIdT = Aws::String>
136 void SetRoutingProfileId(RoutingProfileIdT&& value) { m_routingProfileIdHasBeenSet = true; m_routingProfileId = std::forward<RoutingProfileIdT>(value); }
137 template<typename RoutingProfileIdT = Aws::String>
138 CreateUserRequest& WithRoutingProfileId(RoutingProfileIdT&& value) { SetRoutingProfileId(std::forward<RoutingProfileIdT>(value)); return *this;}
140
142
145 inline const Aws::String& GetHierarchyGroupId() const { return m_hierarchyGroupId; }
146 inline bool HierarchyGroupIdHasBeenSet() const { return m_hierarchyGroupIdHasBeenSet; }
147 template<typename HierarchyGroupIdT = Aws::String>
148 void SetHierarchyGroupId(HierarchyGroupIdT&& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = std::forward<HierarchyGroupIdT>(value); }
149 template<typename HierarchyGroupIdT = Aws::String>
150 CreateUserRequest& WithHierarchyGroupId(HierarchyGroupIdT&& value) { SetHierarchyGroupId(std::forward<HierarchyGroupIdT>(value)); return *this;}
152
154
159 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
160 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
161 template<typename InstanceIdT = Aws::String>
162 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
163 template<typename InstanceIdT = Aws::String>
164 CreateUserRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
166
168
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 CreateUserRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
178 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 CreateUserRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
181 }
183 private:
184
185 Aws::String m_username;
186 bool m_usernameHasBeenSet = false;
187
188 Aws::String m_password;
189 bool m_passwordHasBeenSet = false;
190
191 UserIdentityInfo m_identityInfo;
192 bool m_identityInfoHasBeenSet = false;
193
194 UserPhoneConfig m_phoneConfig;
195 bool m_phoneConfigHasBeenSet = false;
196
197 Aws::String m_directoryUserId;
198 bool m_directoryUserIdHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_securityProfileIds;
201 bool m_securityProfileIdsHasBeenSet = false;
202
203 Aws::String m_routingProfileId;
204 bool m_routingProfileIdHasBeenSet = false;
205
206 Aws::String m_hierarchyGroupId;
207 bool m_hierarchyGroupIdHasBeenSet = false;
208
209 Aws::String m_instanceId;
210 bool m_instanceIdHasBeenSet = false;
211
213 bool m_tagsHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace Connect
218} // 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