AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateAccessRequest.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 UpdateAccessRequest() = 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 "UpdateAccess"; }
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 UpdateAccessRequest& 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 UpdateAccessRequest& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value)); return *this;}
106 template<typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
107 UpdateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value)); return *this; }
109
111
129 inline const Aws::String& GetPolicy() const { return m_policy; }
130 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
131 template<typename PolicyT = Aws::String>
132 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
133 template<typename PolicyT = Aws::String>
134 UpdateAccessRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
136
138
139 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
140 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
141 template<typename PosixProfileT = PosixProfile>
142 void SetPosixProfile(PosixProfileT&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::forward<PosixProfileT>(value); }
143 template<typename PosixProfileT = PosixProfile>
144 UpdateAccessRequest& WithPosixProfile(PosixProfileT&& value) { SetPosixProfile(std::forward<PosixProfileT>(value)); return *this;}
146
148
157 inline const Aws::String& GetRole() const { return m_role; }
158 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
159 template<typename RoleT = Aws::String>
160 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
161 template<typename RoleT = Aws::String>
162 UpdateAccessRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
164
166
170 inline const Aws::String& GetServerId() const { return m_serverId; }
171 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
172 template<typename ServerIdT = Aws::String>
173 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
174 template<typename ServerIdT = Aws::String>
175 UpdateAccessRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
177
179
192 inline const Aws::String& GetExternalId() const { return m_externalId; }
193 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
194 template<typename ExternalIdT = Aws::String>
195 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
196 template<typename ExternalIdT = Aws::String>
197 UpdateAccessRequest& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(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_externalId;
223 bool m_externalIdHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace Transfer
228} // 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