AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHomeDirectory(const Aws::String& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = value; }
52 inline void SetHomeDirectory(Aws::String&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::move(value); }
53 inline void SetHomeDirectory(const char* value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory.assign(value); }
54 inline UpdateAccessRequest& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
55 inline UpdateAccessRequest& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
56 inline UpdateAccessRequest& WithHomeDirectory(const char* value) { SetHomeDirectory(value); return *this;}
58
60
75 inline const HomeDirectoryType& GetHomeDirectoryType() const{ return m_homeDirectoryType; }
76 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
77 inline void SetHomeDirectoryType(const HomeDirectoryType& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
78 inline void SetHomeDirectoryType(HomeDirectoryType&& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = std::move(value); }
80 inline UpdateAccessRequest& WithHomeDirectoryType(HomeDirectoryType&& value) { SetHomeDirectoryType(std::move(value)); return *this;}
82
84
104 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const{ return m_homeDirectoryMappings; }
105 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
106 inline void SetHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = value; }
107 inline void SetHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::move(value); }
110 inline UpdateAccessRequest& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
111 inline UpdateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
113
115
133 inline const Aws::String& GetPolicy() const{ return m_policy; }
134 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
135 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
136 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
137 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
138 inline UpdateAccessRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
139 inline UpdateAccessRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
140 inline UpdateAccessRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
142
144
145 inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
146 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
147 inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
148 inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
149 inline UpdateAccessRequest& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
150 inline UpdateAccessRequest& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
152
154
163 inline const Aws::String& GetRole() const{ return m_role; }
164 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
165 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
166 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
167 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
168 inline UpdateAccessRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
169 inline UpdateAccessRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
170 inline UpdateAccessRequest& WithRole(const char* value) { SetRole(value); return *this;}
172
174
178 inline const Aws::String& GetServerId() const{ return m_serverId; }
179 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
180 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
181 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
182 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
183 inline UpdateAccessRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
184 inline UpdateAccessRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
185 inline UpdateAccessRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
187
189
202 inline const Aws::String& GetExternalId() const{ return m_externalId; }
203 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
204 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
205 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
206 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
207 inline UpdateAccessRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
208 inline UpdateAccessRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
209 inline UpdateAccessRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
211 private:
212
213 Aws::String m_homeDirectory;
214 bool m_homeDirectoryHasBeenSet = false;
215
216 HomeDirectoryType m_homeDirectoryType;
217 bool m_homeDirectoryTypeHasBeenSet = false;
218
219 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
220 bool m_homeDirectoryMappingsHasBeenSet = false;
221
222 Aws::String m_policy;
223 bool m_policyHasBeenSet = false;
224
225 PosixProfile m_posixProfile;
226 bool m_posixProfileHasBeenSet = false;
227
228 Aws::String m_role;
229 bool m_roleHasBeenSet = false;
230
231 Aws::String m_serverId;
232 bool m_serverIdHasBeenSet = false;
233
234 Aws::String m_externalId;
235 bool m_externalIdHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace Transfer
240} // namespace Aws
UpdateAccessRequest & WithRole(Aws::String &&value)
void SetHomeDirectoryType(const HomeDirectoryType &value)
UpdateAccessRequest & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
UpdateAccessRequest & WithHomeDirectoryType(HomeDirectoryType &&value)
UpdateAccessRequest & WithHomeDirectoryType(const HomeDirectoryType &value)
UpdateAccessRequest & WithServerId(const Aws::String &value)
UpdateAccessRequest & WithServerId(const char *value)
void SetHomeDirectoryType(HomeDirectoryType &&value)
UpdateAccessRequest & WithPolicy(const char *value)
UpdateAccessRequest & WithPosixProfile(PosixProfile &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
UpdateAccessRequest & WithHomeDirectory(const Aws::String &value)
UpdateAccessRequest & WithPolicy(const Aws::String &value)
UpdateAccessRequest & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
UpdateAccessRequest & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
UpdateAccessRequest & WithPosixProfile(const PosixProfile &value)
void SetPosixProfile(const PosixProfile &value)
void SetExternalId(const Aws::String &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
const HomeDirectoryType & GetHomeDirectoryType() const
UpdateAccessRequest & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
UpdateAccessRequest & WithHomeDirectory(const char *value)
UpdateAccessRequest & WithServerId(Aws::String &&value)
UpdateAccessRequest & WithExternalId(Aws::String &&value)
UpdateAccessRequest & WithRole(const char *value)
UpdateAccessRequest & WithRole(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateAccessRequest & WithExternalId(const char *value)
UpdateAccessRequest & WithHomeDirectory(Aws::String &&value)
void SetServerId(const Aws::String &value)
UpdateAccessRequest & WithExternalId(const Aws::String &value)
void SetHomeDirectory(const Aws::String &value)
UpdateAccessRequest & WithPolicy(Aws::String &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&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