AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
UpdateAccessRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/HomeDirectoryMapEntry.h>
10#include <aws/awstransfer/model/HomeDirectoryType.h>
11#include <aws/awstransfer/model/PosixProfile.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Transfer {
19namespace Model {
20
24 public:
25 AWS_TRANSFER_API UpdateAccessRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccess"; }
32
33 AWS_TRANSFER_API Aws::String SerializePayload() const override;
34
36
38
45 inline const Aws::String& GetHomeDirectory() const { return m_homeDirectory; }
46 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
47 template <typename HomeDirectoryT = Aws::String>
48 void SetHomeDirectory(HomeDirectoryT&& value) {
49 m_homeDirectoryHasBeenSet = true;
50 m_homeDirectory = std::forward<HomeDirectoryT>(value);
51 }
52 template <typename HomeDirectoryT = Aws::String>
53 UpdateAccessRequest& WithHomeDirectory(HomeDirectoryT&& value) {
54 SetHomeDirectory(std::forward<HomeDirectoryT>(value));
55 return *this;
56 }
58
60
75 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
76 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
78 m_homeDirectoryTypeHasBeenSet = true;
79 m_homeDirectoryType = value;
80 }
83 return *this;
84 }
86
88
108 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
109 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
110 template <typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
111 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
112 m_homeDirectoryMappingsHasBeenSet = true;
113 m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value);
114 }
115 template <typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
116 UpdateAccessRequest& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
117 SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value));
118 return *this;
119 }
120 template <typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
121 UpdateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
122 m_homeDirectoryMappingsHasBeenSet = true;
123 m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value));
124 return *this;
125 }
127
129
147 inline const Aws::String& GetPolicy() const { return m_policy; }
148 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
149 template <typename PolicyT = Aws::String>
150 void SetPolicy(PolicyT&& value) {
151 m_policyHasBeenSet = true;
152 m_policy = std::forward<PolicyT>(value);
153 }
154 template <typename PolicyT = Aws::String>
155 UpdateAccessRequest& WithPolicy(PolicyT&& value) {
156 SetPolicy(std::forward<PolicyT>(value));
157 return *this;
158 }
160
162
163 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
164 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
165 template <typename PosixProfileT = PosixProfile>
166 void SetPosixProfile(PosixProfileT&& value) {
167 m_posixProfileHasBeenSet = true;
168 m_posixProfile = std::forward<PosixProfileT>(value);
169 }
170 template <typename PosixProfileT = PosixProfile>
171 UpdateAccessRequest& WithPosixProfile(PosixProfileT&& value) {
172 SetPosixProfile(std::forward<PosixProfileT>(value));
173 return *this;
174 }
176
178
187 inline const Aws::String& GetRole() const { return m_role; }
188 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
189 template <typename RoleT = Aws::String>
190 void SetRole(RoleT&& value) {
191 m_roleHasBeenSet = true;
192 m_role = std::forward<RoleT>(value);
193 }
194 template <typename RoleT = Aws::String>
196 SetRole(std::forward<RoleT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::String& GetServerId() const { return m_serverId; }
207 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
208 template <typename ServerIdT = Aws::String>
209 void SetServerId(ServerIdT&& value) {
210 m_serverIdHasBeenSet = true;
211 m_serverId = std::forward<ServerIdT>(value);
212 }
213 template <typename ServerIdT = Aws::String>
214 UpdateAccessRequest& WithServerId(ServerIdT&& value) {
215 SetServerId(std::forward<ServerIdT>(value));
216 return *this;
217 }
219
221
234 inline const Aws::String& GetExternalId() const { return m_externalId; }
235 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
236 template <typename ExternalIdT = Aws::String>
237 void SetExternalId(ExternalIdT&& value) {
238 m_externalIdHasBeenSet = true;
239 m_externalId = std::forward<ExternalIdT>(value);
240 }
241 template <typename ExternalIdT = Aws::String>
242 UpdateAccessRequest& WithExternalId(ExternalIdT&& value) {
243 SetExternalId(std::forward<ExternalIdT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_homeDirectory;
249 bool m_homeDirectoryHasBeenSet = false;
250
252 bool m_homeDirectoryTypeHasBeenSet = false;
253
254 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
255 bool m_homeDirectoryMappingsHasBeenSet = false;
256
257 Aws::String m_policy;
258 bool m_policyHasBeenSet = false;
259
260 PosixProfile m_posixProfile;
261 bool m_posixProfileHasBeenSet = false;
262
263 Aws::String m_role;
264 bool m_roleHasBeenSet = false;
265
266 Aws::String m_serverId;
267 bool m_serverIdHasBeenSet = false;
268
269 Aws::String m_externalId;
270 bool m_externalIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace Transfer
275} // namespace Aws
void SetHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
UpdateAccessRequest & WithExternalId(ExternalIdT &&value)
UpdateAccessRequest & WithPosixProfile(PosixProfileT &&value)
void SetHomeDirectoryType(HomeDirectoryType value)
UpdateAccessRequest & AddHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
void SetHomeDirectory(HomeDirectoryT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
UpdateAccessRequest & WithHomeDirectoryType(HomeDirectoryType value)
UpdateAccessRequest & WithServerId(ServerIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API UpdateAccessRequest()=default
UpdateAccessRequest & WithRole(RoleT &&value)
UpdateAccessRequest & WithHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
UpdateAccessRequest & WithHomeDirectory(HomeDirectoryT &&value)
UpdateAccessRequest & WithPolicy(PolicyT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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