AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribedAccess.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/HomeDirectoryMapEntry.h>
9#include <aws/awstransfer/model/HomeDirectoryType.h>
10#include <aws/awstransfer/model/PosixProfile.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Transfer {
24namespace Model {
25
33 public:
34 AWS_TRANSFER_API DescribedAccess() = default;
35 AWS_TRANSFER_API DescribedAccess(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::String& GetHomeDirectory() const { return m_homeDirectory; }
48 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
49 template <typename HomeDirectoryT = Aws::String>
50 void SetHomeDirectory(HomeDirectoryT&& value) {
51 m_homeDirectoryHasBeenSet = true;
52 m_homeDirectory = std::forward<HomeDirectoryT>(value);
53 }
54 template <typename HomeDirectoryT = Aws::String>
55 DescribedAccess& WithHomeDirectory(HomeDirectoryT&& value) {
56 SetHomeDirectory(std::forward<HomeDirectoryT>(value));
57 return *this;
58 }
60
62
76 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
77 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
78 template <typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
79 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
80 m_homeDirectoryMappingsHasBeenSet = true;
81 m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value);
82 }
83 template <typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
84 DescribedAccess& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
85 SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value));
86 return *this;
87 }
88 template <typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
89 DescribedAccess& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
90 m_homeDirectoryMappingsHasBeenSet = true;
91 m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value));
92 return *this;
93 }
95
97
112 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
113 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
115 m_homeDirectoryTypeHasBeenSet = true;
116 m_homeDirectoryType = value;
117 }
120 return *this;
121 }
123
125
133 inline const Aws::String& GetPolicy() const { return m_policy; }
134 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
135 template <typename PolicyT = Aws::String>
136 void SetPolicy(PolicyT&& value) {
137 m_policyHasBeenSet = true;
138 m_policy = std::forward<PolicyT>(value);
139 }
140 template <typename PolicyT = Aws::String>
141 DescribedAccess& WithPolicy(PolicyT&& value) {
142 SetPolicy(std::forward<PolicyT>(value));
143 return *this;
144 }
146
148
149 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
150 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
151 template <typename PosixProfileT = PosixProfile>
152 void SetPosixProfile(PosixProfileT&& value) {
153 m_posixProfileHasBeenSet = true;
154 m_posixProfile = std::forward<PosixProfileT>(value);
155 }
156 template <typename PosixProfileT = PosixProfile>
157 DescribedAccess& WithPosixProfile(PosixProfileT&& value) {
158 SetPosixProfile(std::forward<PosixProfileT>(value));
159 return *this;
160 }
162
164
173 inline const Aws::String& GetRole() const { return m_role; }
174 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
175 template <typename RoleT = Aws::String>
176 void SetRole(RoleT&& value) {
177 m_roleHasBeenSet = true;
178 m_role = std::forward<RoleT>(value);
179 }
180 template <typename RoleT = Aws::String>
181 DescribedAccess& WithRole(RoleT&& value) {
182 SetRole(std::forward<RoleT>(value));
183 return *this;
184 }
186
188
201 inline const Aws::String& GetExternalId() const { return m_externalId; }
202 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
203 template <typename ExternalIdT = Aws::String>
204 void SetExternalId(ExternalIdT&& value) {
205 m_externalIdHasBeenSet = true;
206 m_externalId = std::forward<ExternalIdT>(value);
207 }
208 template <typename ExternalIdT = Aws::String>
209 DescribedAccess& WithExternalId(ExternalIdT&& value) {
210 SetExternalId(std::forward<ExternalIdT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_homeDirectory;
216
217 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
218
220
221 Aws::String m_policy;
222
223 PosixProfile m_posixProfile;
224
225 Aws::String m_role;
226
227 Aws::String m_externalId;
228 bool m_homeDirectoryHasBeenSet = false;
229 bool m_homeDirectoryMappingsHasBeenSet = false;
230 bool m_homeDirectoryTypeHasBeenSet = false;
231 bool m_policyHasBeenSet = false;
232 bool m_posixProfileHasBeenSet = false;
233 bool m_roleHasBeenSet = false;
234 bool m_externalIdHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace Transfer
239} // namespace Aws
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHomeDirectoryType(HomeDirectoryType value)
DescribedAccess & WithHomeDirectory(HomeDirectoryT &&value)
const Aws::String & GetHomeDirectory() const
void SetHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
AWS_TRANSFER_API DescribedAccess()=default
DescribedAccess & AddHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
const Aws::String & GetRole() const
void SetExternalId(ExternalIdT &&value)
DescribedAccess & WithHomeDirectoryType(HomeDirectoryType value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
AWS_TRANSFER_API DescribedAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedAccess & WithExternalId(ExternalIdT &&value)
HomeDirectoryType GetHomeDirectoryType() const
AWS_TRANSFER_API DescribedAccess(Aws::Utils::Json::JsonView jsonValue)
void SetHomeDirectory(HomeDirectoryT &&value)
DescribedAccess & WithPosixProfile(PosixProfileT &&value)
DescribedAccess & WithPolicy(PolicyT &&value)
const PosixProfile & GetPosixProfile() const
DescribedAccess & WithHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
const Aws::String & GetExternalId() const
const Aws::String & GetPolicy() const
void SetPosixProfile(PosixProfileT &&value)
DescribedAccess & WithRole(RoleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue