AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAccessRequest.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 CreateAccessRequest() = 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 "CreateAccess"; }
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 CreateAccessRequest& 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
100 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
101 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
102 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
103 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value); }
104 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
105 CreateAccessRequest& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value)); return *this;}
106 template<typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
107 CreateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value)); return *this; }
109
111
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 CreateAccessRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
135
137
138 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
139 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
140 template<typename PosixProfileT = PosixProfile>
141 void SetPosixProfile(PosixProfileT&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::forward<PosixProfileT>(value); }
142 template<typename PosixProfileT = PosixProfile>
143 CreateAccessRequest& WithPosixProfile(PosixProfileT&& value) { SetPosixProfile(std::forward<PosixProfileT>(value)); return *this;}
145
147
156 inline const Aws::String& GetRole() const { return m_role; }
157 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
158 template<typename RoleT = Aws::String>
159 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
160 template<typename RoleT = Aws::String>
161 CreateAccessRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
163
165
169 inline const Aws::String& GetServerId() const { return m_serverId; }
170 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
171 template<typename ServerIdT = Aws::String>
172 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
173 template<typename ServerIdT = Aws::String>
174 CreateAccessRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
176
178
191 inline const Aws::String& GetExternalId() const { return m_externalId; }
192 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
193 template<typename ExternalIdT = Aws::String>
194 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
195 template<typename ExternalIdT = Aws::String>
196 CreateAccessRequest& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
198 private:
199
200 Aws::String m_homeDirectory;
201 bool m_homeDirectoryHasBeenSet = false;
202
204 bool m_homeDirectoryTypeHasBeenSet = false;
205
206 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
207 bool m_homeDirectoryMappingsHasBeenSet = false;
208
209 Aws::String m_policy;
210 bool m_policyHasBeenSet = false;
211
212 PosixProfile m_posixProfile;
213 bool m_posixProfileHasBeenSet = false;
214
215 Aws::String m_role;
216 bool m_roleHasBeenSet = false;
217
218 Aws::String m_serverId;
219 bool m_serverIdHasBeenSet = false;
220
221 Aws::String m_externalId;
222 bool m_externalIdHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace Transfer
227} // 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