AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 CreateAccessRequest& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
55 inline CreateAccessRequest& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
56 inline CreateAccessRequest& 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 CreateAccessRequest& 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 CreateAccessRequest& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
111 inline CreateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
113
115
132 inline const Aws::String& GetPolicy() const{ return m_policy; }
133 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
134 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
135 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
136 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
137 inline CreateAccessRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
138 inline CreateAccessRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
139 inline CreateAccessRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
141
143
144 inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
145 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
146 inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
147 inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
148 inline CreateAccessRequest& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
149 inline CreateAccessRequest& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
151
153
162 inline const Aws::String& GetRole() const{ return m_role; }
163 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
164 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
165 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
166 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
167 inline CreateAccessRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
168 inline CreateAccessRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
169 inline CreateAccessRequest& WithRole(const char* value) { SetRole(value); return *this;}
171
173
177 inline const Aws::String& GetServerId() const{ return m_serverId; }
178 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
179 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
180 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
181 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
182 inline CreateAccessRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
183 inline CreateAccessRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
184 inline CreateAccessRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
186
188
201 inline const Aws::String& GetExternalId() const{ return m_externalId; }
202 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
203 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
204 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
205 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
206 inline CreateAccessRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
207 inline CreateAccessRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
208 inline CreateAccessRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
210 private:
211
212 Aws::String m_homeDirectory;
213 bool m_homeDirectoryHasBeenSet = false;
214
215 HomeDirectoryType m_homeDirectoryType;
216 bool m_homeDirectoryTypeHasBeenSet = false;
217
218 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
219 bool m_homeDirectoryMappingsHasBeenSet = false;
220
221 Aws::String m_policy;
222 bool m_policyHasBeenSet = false;
223
224 PosixProfile m_posixProfile;
225 bool m_posixProfileHasBeenSet = false;
226
227 Aws::String m_role;
228 bool m_roleHasBeenSet = false;
229
230 Aws::String m_serverId;
231 bool m_serverIdHasBeenSet = false;
232
233 Aws::String m_externalId;
234 bool m_externalIdHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace Transfer
239} // namespace Aws
CreateAccessRequest & WithExternalId(Aws::String &&value)
CreateAccessRequest & WithHomeDirectory(const char *value)
CreateAccessRequest & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
CreateAccessRequest & WithHomeDirectoryType(const HomeDirectoryType &value)
CreateAccessRequest & WithHomeDirectory(Aws::String &&value)
CreateAccessRequest & WithPosixProfile(const PosixProfile &value)
CreateAccessRequest & WithHomeDirectoryType(HomeDirectoryType &&value)
CreateAccessRequest & WithServerId(const char *value)
CreateAccessRequest & WithServerId(const Aws::String &value)
CreateAccessRequest & WithExternalId(const Aws::String &value)
void SetHomeDirectory(const Aws::String &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
CreateAccessRequest & WithRole(Aws::String &&value)
void SetHomeDirectoryType(const HomeDirectoryType &value)
void SetPosixProfile(const PosixProfile &value)
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetHomeDirectoryType(HomeDirectoryType &&value)
CreateAccessRequest & WithRole(const Aws::String &value)
void SetExternalId(const Aws::String &value)
CreateAccessRequest & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
CreateAccessRequest & WithPolicy(Aws::String &&value)
CreateAccessRequest & WithHomeDirectory(const Aws::String &value)
CreateAccessRequest & WithPosixProfile(PosixProfile &&value)
CreateAccessRequest & WithRole(const char *value)
CreateAccessRequest & WithExternalId(const char *value)
const HomeDirectoryType & GetHomeDirectoryType() const
CreateAccessRequest & WithServerId(Aws::String &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
CreateAccessRequest & WithPolicy(const Aws::String &value)
CreateAccessRequest & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
CreateAccessRequest & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
void SetServerId(const Aws::String &value)
CreateAccessRequest & WithPolicy(const char *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