AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribedAccess.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/awstransfer/model/HomeDirectoryType.h>
11#include <aws/awstransfer/model/PosixProfile.h>
12#include <aws/awstransfer/model/HomeDirectoryMapEntry.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Transfer
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_TRANSFER_API DescribedAccess() = default;
40 AWS_TRANSFER_API DescribedAccess(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const Aws::String& GetHomeDirectory() const { return m_homeDirectory; }
54 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
55 template<typename HomeDirectoryT = Aws::String>
56 void SetHomeDirectory(HomeDirectoryT&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::forward<HomeDirectoryT>(value); }
57 template<typename HomeDirectoryT = Aws::String>
58 DescribedAccess& WithHomeDirectory(HomeDirectoryT&& value) { SetHomeDirectory(std::forward<HomeDirectoryT>(value)); return *this;}
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) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value); }
80 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
81 DescribedAccess& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value)); return *this;}
82 template<typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
83 DescribedAccess& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value)); return *this; }
85
87
102 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
103 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
104 inline void SetHomeDirectoryType(HomeDirectoryType value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
107
109
117 inline const Aws::String& GetPolicy() const { return m_policy; }
118 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
119 template<typename PolicyT = Aws::String>
120 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
121 template<typename PolicyT = Aws::String>
122 DescribedAccess& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
124
126
127 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
128 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
129 template<typename PosixProfileT = PosixProfile>
130 void SetPosixProfile(PosixProfileT&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::forward<PosixProfileT>(value); }
131 template<typename PosixProfileT = PosixProfile>
132 DescribedAccess& WithPosixProfile(PosixProfileT&& value) { SetPosixProfile(std::forward<PosixProfileT>(value)); return *this;}
134
136
145 inline const Aws::String& GetRole() const { return m_role; }
146 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
147 template<typename RoleT = Aws::String>
148 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
149 template<typename RoleT = Aws::String>
150 DescribedAccess& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
152
154
167 inline const Aws::String& GetExternalId() const { return m_externalId; }
168 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
169 template<typename ExternalIdT = Aws::String>
170 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
171 template<typename ExternalIdT = Aws::String>
172 DescribedAccess& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
174 private:
175
176 Aws::String m_homeDirectory;
177 bool m_homeDirectoryHasBeenSet = false;
178
179 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
180 bool m_homeDirectoryMappingsHasBeenSet = false;
181
183 bool m_homeDirectoryTypeHasBeenSet = false;
184
185 Aws::String m_policy;
186 bool m_policyHasBeenSet = false;
187
188 PosixProfile m_posixProfile;
189 bool m_posixProfileHasBeenSet = false;
190
191 Aws::String m_role;
192 bool m_roleHasBeenSet = false;
193
194 Aws::String m_externalId;
195 bool m_externalIdHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace Transfer
200} // 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