AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/awstransfer/model/HomeDirectoryType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/awstransfer/model/PosixProfile.h>
13#include <aws/awstransfer/model/HomeDirectoryMapEntry.h>
14#include <aws/awstransfer/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Transfer
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TRANSFER_API CreateUserRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
36
37 AWS_TRANSFER_API Aws::String SerializePayload() const override;
38
40
41
43
50 inline const Aws::String& GetHomeDirectory() const { return m_homeDirectory; }
51 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
52 template<typename HomeDirectoryT = Aws::String>
53 void SetHomeDirectory(HomeDirectoryT&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::forward<HomeDirectoryT>(value); }
54 template<typename HomeDirectoryT = Aws::String>
55 CreateUserRequest& WithHomeDirectory(HomeDirectoryT&& value) { SetHomeDirectory(std::forward<HomeDirectoryT>(value)); return *this;}
57
59
74 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
75 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
76 inline void SetHomeDirectoryType(HomeDirectoryType value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
79
81
101 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
102 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
103 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
104 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value); }
105 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
106 CreateUserRequest& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value)); return *this;}
107 template<typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
108 CreateUserRequest& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value)); return *this; }
110
112
130 inline const Aws::String& GetPolicy() const { return m_policy; }
131 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
132 template<typename PolicyT = Aws::String>
133 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
134 template<typename PolicyT = Aws::String>
135 CreateUserRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
137
139
147 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
148 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
149 template<typename PosixProfileT = PosixProfile>
150 void SetPosixProfile(PosixProfileT&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::forward<PosixProfileT>(value); }
151 template<typename PosixProfileT = PosixProfile>
152 CreateUserRequest& WithPosixProfile(PosixProfileT&& value) { SetPosixProfile(std::forward<PosixProfileT>(value)); return *this;}
154
156
165 inline const Aws::String& GetRole() const { return m_role; }
166 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
167 template<typename RoleT = Aws::String>
168 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
169 template<typename RoleT = Aws::String>
170 CreateUserRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
172
174
178 inline const Aws::String& GetServerId() const { return m_serverId; }
179 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
180 template<typename ServerIdT = Aws::String>
181 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
182 template<typename ServerIdT = Aws::String>
183 CreateUserRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
185
187
199 inline const Aws::String& GetSshPublicKeyBody() const { return m_sshPublicKeyBody; }
200 inline bool SshPublicKeyBodyHasBeenSet() const { return m_sshPublicKeyBodyHasBeenSet; }
201 template<typename SshPublicKeyBodyT = Aws::String>
202 void SetSshPublicKeyBody(SshPublicKeyBodyT&& value) { m_sshPublicKeyBodyHasBeenSet = true; m_sshPublicKeyBody = std::forward<SshPublicKeyBodyT>(value); }
203 template<typename SshPublicKeyBodyT = Aws::String>
204 CreateUserRequest& WithSshPublicKeyBody(SshPublicKeyBodyT&& value) { SetSshPublicKeyBody(std::forward<SshPublicKeyBodyT>(value)); return *this;}
206
208
212 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
213 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
214 template<typename TagsT = Aws::Vector<Tag>>
215 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
216 template<typename TagsT = Aws::Vector<Tag>>
217 CreateUserRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
218 template<typename TagsT = Tag>
219 CreateUserRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
221
223
230 inline const Aws::String& GetUserName() const { return m_userName; }
231 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
232 template<typename UserNameT = Aws::String>
233 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
234 template<typename UserNameT = Aws::String>
235 CreateUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
237 private:
238
239 Aws::String m_homeDirectory;
240 bool m_homeDirectoryHasBeenSet = false;
241
243 bool m_homeDirectoryTypeHasBeenSet = false;
244
245 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
246 bool m_homeDirectoryMappingsHasBeenSet = false;
247
248 Aws::String m_policy;
249 bool m_policyHasBeenSet = false;
250
251 PosixProfile m_posixProfile;
252 bool m_posixProfileHasBeenSet = false;
253
254 Aws::String m_role;
255 bool m_roleHasBeenSet = false;
256
257 Aws::String m_serverId;
258 bool m_serverIdHasBeenSet = false;
259
260 Aws::String m_sshPublicKeyBody;
261 bool m_sshPublicKeyBodyHasBeenSet = false;
262
263 Aws::Vector<Tag> m_tags;
264 bool m_tagsHasBeenSet = false;
265
266 Aws::String m_userName;
267 bool m_userNameHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace Transfer
272} // namespace Aws
void SetHomeDirectoryType(HomeDirectoryType value)
const PosixProfile & GetPosixProfile() const
const Aws::String & GetServerId() const
CreateUserRequest & WithTags(TagsT &&value)
CreateUserRequest & WithRole(RoleT &&value)
void SetHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
const Aws::String & GetSshPublicKeyBody() const
CreateUserRequest & AddTags(TagsT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
CreateUserRequest & WithPolicy(PolicyT &&value)
HomeDirectoryType GetHomeDirectoryType() const
void SetHomeDirectory(HomeDirectoryT &&value)
CreateUserRequest & WithHomeDirectory(HomeDirectoryT &&value)
void SetPosixProfile(PosixProfileT &&value)
CreateUserRequest & WithSshPublicKeyBody(SshPublicKeyBodyT &&value)
CreateUserRequest & WithPosixProfile(PosixProfileT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithUserName(UserNameT &&value)
CreateUserRequest & AddHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
void SetSshPublicKeyBody(SshPublicKeyBodyT &&value)
const Aws::String & GetUserName() const
CreateUserRequest & WithServerId(ServerIdT &&value)
CreateUserRequest & WithHomeDirectoryType(HomeDirectoryType value)
AWS_TRANSFER_API CreateUserRequest()=default
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetHomeDirectory() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector