AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateAccessRequest.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 CreateAccessRequest() = 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 "CreateAccess"; }
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 CreateAccessRequest& 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 CreateAccessRequest& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
117 SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value));
118 return *this;
119 }
120 template <typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
121 CreateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
122 m_homeDirectoryMappingsHasBeenSet = true;
123 m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value));
124 return *this;
125 }
127
129
146 inline const Aws::String& GetPolicy() const { return m_policy; }
147 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
148 template <typename PolicyT = Aws::String>
149 void SetPolicy(PolicyT&& value) {
150 m_policyHasBeenSet = true;
151 m_policy = std::forward<PolicyT>(value);
152 }
153 template <typename PolicyT = Aws::String>
154 CreateAccessRequest& WithPolicy(PolicyT&& value) {
155 SetPolicy(std::forward<PolicyT>(value));
156 return *this;
157 }
159
161
162 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
163 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
164 template <typename PosixProfileT = PosixProfile>
165 void SetPosixProfile(PosixProfileT&& value) {
166 m_posixProfileHasBeenSet = true;
167 m_posixProfile = std::forward<PosixProfileT>(value);
168 }
169 template <typename PosixProfileT = PosixProfile>
170 CreateAccessRequest& WithPosixProfile(PosixProfileT&& value) {
171 SetPosixProfile(std::forward<PosixProfileT>(value));
172 return *this;
173 }
175
177
186 inline const Aws::String& GetRole() const { return m_role; }
187 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
188 template <typename RoleT = Aws::String>
189 void SetRole(RoleT&& value) {
190 m_roleHasBeenSet = true;
191 m_role = std::forward<RoleT>(value);
192 }
193 template <typename RoleT = Aws::String>
195 SetRole(std::forward<RoleT>(value));
196 return *this;
197 }
199
201
205 inline const Aws::String& GetServerId() const { return m_serverId; }
206 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
207 template <typename ServerIdT = Aws::String>
208 void SetServerId(ServerIdT&& value) {
209 m_serverIdHasBeenSet = true;
210 m_serverId = std::forward<ServerIdT>(value);
211 }
212 template <typename ServerIdT = Aws::String>
213 CreateAccessRequest& WithServerId(ServerIdT&& value) {
214 SetServerId(std::forward<ServerIdT>(value));
215 return *this;
216 }
218
220
233 inline const Aws::String& GetExternalId() const { return m_externalId; }
234 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
235 template <typename ExternalIdT = Aws::String>
236 void SetExternalId(ExternalIdT&& value) {
237 m_externalIdHasBeenSet = true;
238 m_externalId = std::forward<ExternalIdT>(value);
239 }
240 template <typename ExternalIdT = Aws::String>
241 CreateAccessRequest& WithExternalId(ExternalIdT&& value) {
242 SetExternalId(std::forward<ExternalIdT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_homeDirectory;
248 bool m_homeDirectoryHasBeenSet = false;
249
251 bool m_homeDirectoryTypeHasBeenSet = false;
252
253 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
254 bool m_homeDirectoryMappingsHasBeenSet = false;
255
256 Aws::String m_policy;
257 bool m_policyHasBeenSet = false;
258
259 PosixProfile m_posixProfile;
260 bool m_posixProfileHasBeenSet = false;
261
262 Aws::String m_role;
263 bool m_roleHasBeenSet = false;
264
265 Aws::String m_serverId;
266 bool m_serverIdHasBeenSet = false;
267
268 Aws::String m_externalId;
269 bool m_externalIdHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace Transfer
274} // namespace Aws
void SetHomeDirectory(HomeDirectoryT &&value)
AWS_TRANSFER_API CreateAccessRequest()=default
CreateAccessRequest & WithHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessRequest & WithServerId(ServerIdT &&value)
CreateAccessRequest & WithExternalId(ExternalIdT &&value)
CreateAccessRequest & WithPolicy(PolicyT &&value)
void SetHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
void SetHomeDirectoryType(HomeDirectoryType value)
CreateAccessRequest & WithHomeDirectoryType(HomeDirectoryType value)
CreateAccessRequest & WithHomeDirectory(HomeDirectoryT &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
CreateAccessRequest & WithPosixProfile(PosixProfileT &&value)
CreateAccessRequest & AddHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
CreateAccessRequest & WithRole(RoleT &&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