AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 template<typename HomeDirectoryT = Aws::String>
52 void SetHomeDirectory(HomeDirectoryT&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::forward<HomeDirectoryT>(value); }
53 template<typename HomeDirectoryT = Aws::String>
54 UpdateUserRequest& WithHomeDirectory(HomeDirectoryT&& value) { SetHomeDirectory(std::forward<HomeDirectoryT>(value)); return *this;}
56
58
73 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
74 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
75 inline void SetHomeDirectoryType(HomeDirectoryType value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
78
80
99 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
100 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
101 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
102 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value); }
103 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
104 UpdateUserRequest& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value)); return *this;}
105 template<typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
106 UpdateUserRequest& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value)); return *this; }
108
110
128 inline const Aws::String& GetPolicy() const { return m_policy; }
129 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
130 template<typename PolicyT = Aws::String>
131 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
132 template<typename PolicyT = Aws::String>
133 UpdateUserRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
135
137
145 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
146 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
147 template<typename PosixProfileT = PosixProfile>
148 void SetPosixProfile(PosixProfileT&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::forward<PosixProfileT>(value); }
149 template<typename PosixProfileT = PosixProfile>
150 UpdateUserRequest& WithPosixProfile(PosixProfileT&& value) { SetPosixProfile(std::forward<PosixProfileT>(value)); return *this;}
152
154
163 inline const Aws::String& GetRole() const { return m_role; }
164 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
165 template<typename RoleT = Aws::String>
166 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
167 template<typename RoleT = Aws::String>
168 UpdateUserRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
170
172
176 inline const Aws::String& GetServerId() const { return m_serverId; }
177 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
178 template<typename ServerIdT = Aws::String>
179 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
180 template<typename ServerIdT = Aws::String>
181 UpdateUserRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
183
185
192 inline const Aws::String& GetUserName() const { return m_userName; }
193 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
194 template<typename UserNameT = Aws::String>
195 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
196 template<typename UserNameT = Aws::String>
197 UpdateUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
199 private:
200
201 Aws::String m_homeDirectory;
202 bool m_homeDirectoryHasBeenSet = false;
203
205 bool m_homeDirectoryTypeHasBeenSet = false;
206
207 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
208 bool m_homeDirectoryMappingsHasBeenSet = false;
209
210 Aws::String m_policy;
211 bool m_policyHasBeenSet = false;
212
213 PosixProfile m_posixProfile;
214 bool m_posixProfileHasBeenSet = false;
215
216 Aws::String m_role;
217 bool m_roleHasBeenSet = false;
218
219 Aws::String m_serverId;
220 bool m_serverIdHasBeenSet = false;
221
222 Aws::String m_userName;
223 bool m_userNameHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace Transfer
228} // namespace Aws
UpdateUserRequest & WithHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
HomeDirectoryType GetHomeDirectoryType() const
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
UpdateUserRequest & WithRole(RoleT &&value)
virtual const char * GetServiceRequestName() const override
UpdateUserRequest & AddHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
UpdateUserRequest & WithUserName(UserNameT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
UpdateUserRequest & WithPolicy(PolicyT &&value)
void SetPosixProfile(PosixProfileT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetHomeDirectory(HomeDirectoryT &&value)
void SetHomeDirectoryType(HomeDirectoryType value)
const Aws::String & GetUserName() const
const PosixProfile & GetPosixProfile() const
UpdateUserRequest & WithServerId(ServerIdT &&value)
const Aws::String & GetServerId() const
void SetHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
AWS_TRANSFER_API UpdateUserRequest()=default
UpdateUserRequest & WithPosixProfile(PosixProfileT &&value)
UpdateUserRequest & WithHomeDirectory(HomeDirectoryT &&value)
UpdateUserRequest & WithHomeDirectoryType(HomeDirectoryType value)
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