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/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();
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 inline void SetHomeDirectory(const Aws::String& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = value; }
53 inline void SetHomeDirectory(Aws::String&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::move(value); }
54 inline void SetHomeDirectory(const char* value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory.assign(value); }
55 inline CreateUserRequest& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
56 inline CreateUserRequest& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
57 inline CreateUserRequest& WithHomeDirectory(const char* value) { SetHomeDirectory(value); return *this;}
59
61
76 inline const HomeDirectoryType& GetHomeDirectoryType() const{ return m_homeDirectoryType; }
77 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
78 inline void SetHomeDirectoryType(const HomeDirectoryType& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
79 inline void SetHomeDirectoryType(HomeDirectoryType&& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = std::move(value); }
81 inline CreateUserRequest& WithHomeDirectoryType(HomeDirectoryType&& value) { SetHomeDirectoryType(std::move(value)); return *this;}
83
85
105 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const{ return m_homeDirectoryMappings; }
106 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
107 inline void SetHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = value; }
108 inline void SetHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::move(value); }
111 inline CreateUserRequest& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
112 inline CreateUserRequest& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
114
116
134 inline const Aws::String& GetPolicy() const{ return m_policy; }
135 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
136 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
137 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
138 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
139 inline CreateUserRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
140 inline CreateUserRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
141 inline CreateUserRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
143
145
153 inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
154 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
155 inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
156 inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
157 inline CreateUserRequest& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
158 inline CreateUserRequest& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
160
162
171 inline const Aws::String& GetRole() const{ return m_role; }
172 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
173 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
174 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
175 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
176 inline CreateUserRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
177 inline CreateUserRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
178 inline CreateUserRequest& WithRole(const char* value) { SetRole(value); return *this;}
180
182
186 inline const Aws::String& GetServerId() const{ return m_serverId; }
187 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
188 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
189 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
190 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
191 inline CreateUserRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
192 inline CreateUserRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
193 inline CreateUserRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
195
197
209 inline const Aws::String& GetSshPublicKeyBody() const{ return m_sshPublicKeyBody; }
210 inline bool SshPublicKeyBodyHasBeenSet() const { return m_sshPublicKeyBodyHasBeenSet; }
211 inline void SetSshPublicKeyBody(const Aws::String& value) { m_sshPublicKeyBodyHasBeenSet = true; m_sshPublicKeyBody = value; }
212 inline void SetSshPublicKeyBody(Aws::String&& value) { m_sshPublicKeyBodyHasBeenSet = true; m_sshPublicKeyBody = std::move(value); }
213 inline void SetSshPublicKeyBody(const char* value) { m_sshPublicKeyBodyHasBeenSet = true; m_sshPublicKeyBody.assign(value); }
214 inline CreateUserRequest& WithSshPublicKeyBody(const Aws::String& value) { SetSshPublicKeyBody(value); return *this;}
215 inline CreateUserRequest& WithSshPublicKeyBody(Aws::String&& value) { SetSshPublicKeyBody(std::move(value)); return *this;}
216 inline CreateUserRequest& WithSshPublicKeyBody(const char* value) { SetSshPublicKeyBody(value); return *this;}
218
220
224 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
227 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
228 inline CreateUserRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
229 inline CreateUserRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
230 inline CreateUserRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
231 inline CreateUserRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
233
235
242 inline const Aws::String& GetUserName() const{ return m_userName; }
243 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
244 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
245 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
246 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
247 inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
248 inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
249 inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
251 private:
252
253 Aws::String m_homeDirectory;
254 bool m_homeDirectoryHasBeenSet = false;
255
256 HomeDirectoryType m_homeDirectoryType;
257 bool m_homeDirectoryTypeHasBeenSet = false;
258
259 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
260 bool m_homeDirectoryMappingsHasBeenSet = false;
261
262 Aws::String m_policy;
263 bool m_policyHasBeenSet = false;
264
265 PosixProfile m_posixProfile;
266 bool m_posixProfileHasBeenSet = false;
267
268 Aws::String m_role;
269 bool m_roleHasBeenSet = false;
270
271 Aws::String m_serverId;
272 bool m_serverIdHasBeenSet = false;
273
274 Aws::String m_sshPublicKeyBody;
275 bool m_sshPublicKeyBodyHasBeenSet = false;
276
277 Aws::Vector<Tag> m_tags;
278 bool m_tagsHasBeenSet = false;
279
280 Aws::String m_userName;
281 bool m_userNameHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace Transfer
286} // namespace Aws
const PosixProfile & GetPosixProfile() const
const Aws::String & GetServerId() const
CreateUserRequest & WithServerId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateUserRequest & WithTags(Aws::Vector< Tag > &&value)
CreateUserRequest & WithHomeDirectoryType(HomeDirectoryType &&value)
CreateUserRequest & AddTags(const Tag &value)
CreateUserRequest & WithUserName(const Aws::String &value)
CreateUserRequest & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
void SetRole(const Aws::String &value)
CreateUserRequest & WithSshPublicKeyBody(const Aws::String &value)
void SetHomeDirectory(const Aws::String &value)
void SetServerId(const Aws::String &value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
const Aws::String & GetSshPublicKeyBody() const
void SetHomeDirectory(Aws::String &&value)
CreateUserRequest & WithHomeDirectory(Aws::String &&value)
CreateUserRequest & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
void SetPolicy(const Aws::String &value)
CreateUserRequest & WithPolicy(Aws::String &&value)
CreateUserRequest & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
CreateUserRequest & WithPosixProfile(PosixProfile &&value)
void SetUserName(const Aws::String &value)
const HomeDirectoryType & GetHomeDirectoryType() const
CreateUserRequest & WithRole(const char *value)
CreateUserRequest & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
CreateUserRequest & WithServerId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithPolicy(const Aws::String &value)
CreateUserRequest & WithRole(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithHomeDirectoryType(const HomeDirectoryType &value)
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
void SetPosixProfile(const PosixProfile &value)
CreateUserRequest & WithPosixProfile(const PosixProfile &value)
void SetHomeDirectoryType(HomeDirectoryType &&value)
CreateUserRequest & WithHomeDirectory(const Aws::String &value)
void SetHomeDirectoryType(const HomeDirectoryType &value)
void SetPosixProfile(PosixProfile &&value)
CreateUserRequest & WithSshPublicKeyBody(Aws::String &&value)
CreateUserRequest & WithSshPublicKeyBody(const char *value)
CreateUserRequest & WithUserName(Aws::String &&value)
const Aws::String & GetUserName() const
CreateUserRequest & WithServerId(const Aws::String &value)
CreateUserRequest & AddTags(Tag &&value)
void SetSshPublicKeyBody(const Aws::String &value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithTags(const Aws::Vector< Tag > &value)
CreateUserRequest & WithPolicy(const char *value)
CreateUserRequest & WithUserName(const char *value)
const Aws::String & GetHomeDirectory() const
void SetSshPublicKeyBody(Aws::String &&value)
CreateUserRequest & WithRole(const Aws::String &value)
CreateUserRequest & WithHomeDirectory(const char *value)
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