AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateUserRequest.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 <utility>
15
16namespace Aws
17{
18namespace Transfer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_TRANSFER_API UpdateUserRequest();
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 "UpdateUser"; }
35
36 AWS_TRANSFER_API Aws::String SerializePayload() const override;
37
39
40
42
49 inline const Aws::String& GetHomeDirectory() const{ return m_homeDirectory; }
50 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
51 inline void SetHomeDirectory(const Aws::String& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = value; }
52 inline void SetHomeDirectory(Aws::String&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::move(value); }
53 inline void SetHomeDirectory(const char* value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory.assign(value); }
54 inline UpdateUserRequest& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
55 inline UpdateUserRequest& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
56 inline UpdateUserRequest& WithHomeDirectory(const char* value) { SetHomeDirectory(value); return *this;}
58
60
75 inline const HomeDirectoryType& GetHomeDirectoryType() const{ return m_homeDirectoryType; }
76 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
77 inline void SetHomeDirectoryType(const HomeDirectoryType& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
78 inline void SetHomeDirectoryType(HomeDirectoryType&& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = std::move(value); }
80 inline UpdateUserRequest& WithHomeDirectoryType(HomeDirectoryType&& value) { SetHomeDirectoryType(std::move(value)); return *this;}
82
84
103 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const{ return m_homeDirectoryMappings; }
104 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
105 inline void SetHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = value; }
106 inline void SetHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::move(value); }
109 inline UpdateUserRequest& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
110 inline UpdateUserRequest& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
112
114
132 inline const Aws::String& GetPolicy() const{ return m_policy; }
133 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
134 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
135 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
136 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
137 inline UpdateUserRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
138 inline UpdateUserRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
139 inline UpdateUserRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
141
143
151 inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
152 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
153 inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
154 inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
155 inline UpdateUserRequest& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
156 inline UpdateUserRequest& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
158
160
169 inline const Aws::String& GetRole() const{ return m_role; }
170 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
171 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
172 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
173 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
174 inline UpdateUserRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
175 inline UpdateUserRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
176 inline UpdateUserRequest& WithRole(const char* value) { SetRole(value); return *this;}
178
180
184 inline const Aws::String& GetServerId() const{ return m_serverId; }
185 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
186 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
187 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
188 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
189 inline UpdateUserRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
190 inline UpdateUserRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
191 inline UpdateUserRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
193
195
202 inline const Aws::String& GetUserName() const{ return m_userName; }
203 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
204 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
205 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
206 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
207 inline UpdateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
208 inline UpdateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
209 inline UpdateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
211 private:
212
213 Aws::String m_homeDirectory;
214 bool m_homeDirectoryHasBeenSet = false;
215
216 HomeDirectoryType m_homeDirectoryType;
217 bool m_homeDirectoryTypeHasBeenSet = false;
218
219 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
220 bool m_homeDirectoryMappingsHasBeenSet = false;
221
222 Aws::String m_policy;
223 bool m_policyHasBeenSet = false;
224
225 PosixProfile m_posixProfile;
226 bool m_posixProfileHasBeenSet = false;
227
228 Aws::String m_role;
229 bool m_roleHasBeenSet = false;
230
231 Aws::String m_serverId;
232 bool m_serverIdHasBeenSet = false;
233
234 Aws::String m_userName;
235 bool m_userNameHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace Transfer
240} // namespace Aws
UpdateUserRequest & WithHomeDirectory(const char *value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
UpdateUserRequest & WithHomeDirectoryType(const HomeDirectoryType &value)
UpdateUserRequest & WithRole(const char *value)
UpdateUserRequest & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
void SetPosixProfile(PosixProfile &&value)
UpdateUserRequest & WithServerId(Aws::String &&value)
UpdateUserRequest & WithPosixProfile(PosixProfile &&value)
UpdateUserRequest & WithHomeDirectoryType(HomeDirectoryType &&value)
virtual const char * GetServiceRequestName() const override
const HomeDirectoryType & GetHomeDirectoryType() const
UpdateUserRequest & WithPolicy(const Aws::String &value)
void SetUserName(const Aws::String &value)
void SetPosixProfile(const PosixProfile &value)
UpdateUserRequest & WithUserName(const char *value)
void SetHomeDirectory(Aws::String &&value)
UpdateUserRequest & WithServerId(const char *value)
UpdateUserRequest & WithRole(const Aws::String &value)
UpdateUserRequest & WithServerId(const Aws::String &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
UpdateUserRequest & WithHomeDirectory(const Aws::String &value)
UpdateUserRequest & WithPolicy(const char *value)
UpdateUserRequest & WithRole(Aws::String &&value)
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
UpdateUserRequest & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
void SetServerId(const Aws::String &value)
void SetPolicy(const Aws::String &value)
UpdateUserRequest & WithUserName(Aws::String &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetUserName() const
const PosixProfile & GetPosixProfile() const
UpdateUserRequest & WithUserName(const Aws::String &value)
const Aws::String & GetServerId() const
UpdateUserRequest & WithPosixProfile(const PosixProfile &value)
UpdateUserRequest & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
UpdateUserRequest & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
void SetHomeDirectoryType(const HomeDirectoryType &value)
void SetHomeDirectory(const Aws::String &value)
const Aws::String & GetHomeDirectory() const
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
void SetRole(const Aws::String &value)
UpdateUserRequest & WithHomeDirectory(Aws::String &&value)
UpdateUserRequest & WithPolicy(Aws::String &&value)
void SetHomeDirectoryType(HomeDirectoryType &&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