AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribedUser.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/awstransfer/model/SshPublicKey.h>
12#include <aws/awstransfer/model/Tag.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Transfer {
26namespace Model {
27
35 public:
36 AWS_TRANSFER_API DescribedUser() = default;
37 AWS_TRANSFER_API DescribedUser(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 DescribedUser& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetHomeDirectory() const { return m_homeDirectory; }
69 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
70 template <typename HomeDirectoryT = Aws::String>
71 void SetHomeDirectory(HomeDirectoryT&& value) {
72 m_homeDirectoryHasBeenSet = true;
73 m_homeDirectory = std::forward<HomeDirectoryT>(value);
74 }
75 template <typename HomeDirectoryT = Aws::String>
76 DescribedUser& WithHomeDirectory(HomeDirectoryT&& value) {
77 SetHomeDirectory(std::forward<HomeDirectoryT>(value));
78 return *this;
79 }
81
83
97 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
98 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
99 template <typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
100 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
101 m_homeDirectoryMappingsHasBeenSet = true;
102 m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value);
103 }
104 template <typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
105 DescribedUser& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
106 SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value));
107 return *this;
108 }
109 template <typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
110 DescribedUser& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) {
111 m_homeDirectoryMappingsHasBeenSet = true;
112 m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value));
113 return *this;
114 }
116
118
133 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
134 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
136 m_homeDirectoryTypeHasBeenSet = true;
137 m_homeDirectoryType = value;
138 }
141 return *this;
142 }
144
146
154 inline const Aws::String& GetPolicy() const { return m_policy; }
155 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
156 template <typename PolicyT = Aws::String>
157 void SetPolicy(PolicyT&& value) {
158 m_policyHasBeenSet = true;
159 m_policy = std::forward<PolicyT>(value);
160 }
161 template <typename PolicyT = Aws::String>
162 DescribedUser& WithPolicy(PolicyT&& value) {
163 SetPolicy(std::forward<PolicyT>(value));
164 return *this;
165 }
167
169
178 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
179 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
180 template <typename PosixProfileT = PosixProfile>
181 void SetPosixProfile(PosixProfileT&& value) {
182 m_posixProfileHasBeenSet = true;
183 m_posixProfile = std::forward<PosixProfileT>(value);
184 }
185 template <typename PosixProfileT = PosixProfile>
186 DescribedUser& WithPosixProfile(PosixProfileT&& value) {
187 SetPosixProfile(std::forward<PosixProfileT>(value));
188 return *this;
189 }
191
193
202 inline const Aws::String& GetRole() const { return m_role; }
203 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
204 template <typename RoleT = Aws::String>
205 void SetRole(RoleT&& value) {
206 m_roleHasBeenSet = true;
207 m_role = std::forward<RoleT>(value);
208 }
209 template <typename RoleT = Aws::String>
210 DescribedUser& WithRole(RoleT&& value) {
211 SetRole(std::forward<RoleT>(value));
212 return *this;
213 }
215
217
222 inline const Aws::Vector<SshPublicKey>& GetSshPublicKeys() const { return m_sshPublicKeys; }
223 inline bool SshPublicKeysHasBeenSet() const { return m_sshPublicKeysHasBeenSet; }
224 template <typename SshPublicKeysT = Aws::Vector<SshPublicKey>>
225 void SetSshPublicKeys(SshPublicKeysT&& value) {
226 m_sshPublicKeysHasBeenSet = true;
227 m_sshPublicKeys = std::forward<SshPublicKeysT>(value);
228 }
229 template <typename SshPublicKeysT = Aws::Vector<SshPublicKey>>
230 DescribedUser& WithSshPublicKeys(SshPublicKeysT&& value) {
231 SetSshPublicKeys(std::forward<SshPublicKeysT>(value));
232 return *this;
233 }
234 template <typename SshPublicKeysT = SshPublicKey>
235 DescribedUser& AddSshPublicKeys(SshPublicKeysT&& value) {
236 m_sshPublicKeysHasBeenSet = true;
237 m_sshPublicKeys.emplace_back(std::forward<SshPublicKeysT>(value));
238 return *this;
239 }
241
243
247 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
248 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
249 template <typename TagsT = Aws::Vector<Tag>>
250 void SetTags(TagsT&& value) {
251 m_tagsHasBeenSet = true;
252 m_tags = std::forward<TagsT>(value);
253 }
254 template <typename TagsT = Aws::Vector<Tag>>
255 DescribedUser& WithTags(TagsT&& value) {
256 SetTags(std::forward<TagsT>(value));
257 return *this;
258 }
259 template <typename TagsT = Tag>
260 DescribedUser& AddTags(TagsT&& value) {
261 m_tagsHasBeenSet = true;
262 m_tags.emplace_back(std::forward<TagsT>(value));
263 return *this;
264 }
266
268
273 inline const Aws::String& GetUserName() const { return m_userName; }
274 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
275 template <typename UserNameT = Aws::String>
276 void SetUserName(UserNameT&& value) {
277 m_userNameHasBeenSet = true;
278 m_userName = std::forward<UserNameT>(value);
279 }
280 template <typename UserNameT = Aws::String>
281 DescribedUser& WithUserName(UserNameT&& value) {
282 SetUserName(std::forward<UserNameT>(value));
283 return *this;
284 }
286 private:
287 Aws::String m_arn;
288
289 Aws::String m_homeDirectory;
290
291 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
292
294
295 Aws::String m_policy;
296
297 PosixProfile m_posixProfile;
298
299 Aws::String m_role;
300
301 Aws::Vector<SshPublicKey> m_sshPublicKeys;
302
303 Aws::Vector<Tag> m_tags;
304
305 Aws::String m_userName;
306 bool m_arnHasBeenSet = false;
307 bool m_homeDirectoryHasBeenSet = false;
308 bool m_homeDirectoryMappingsHasBeenSet = false;
309 bool m_homeDirectoryTypeHasBeenSet = false;
310 bool m_policyHasBeenSet = false;
311 bool m_posixProfileHasBeenSet = false;
312 bool m_roleHasBeenSet = false;
313 bool m_sshPublicKeysHasBeenSet = false;
314 bool m_tagsHasBeenSet = false;
315 bool m_userNameHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace Transfer
320} // namespace Aws
HomeDirectoryType GetHomeDirectoryType() const
DescribedUser & WithRole(RoleT &&value)
void SetPosixProfile(PosixProfileT &&value)
DescribedUser & WithTags(TagsT &&value)
const PosixProfile & GetPosixProfile() const
void SetHomeDirectory(HomeDirectoryT &&value)
DescribedUser & WithPolicy(PolicyT &&value)
AWS_TRANSFER_API DescribedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedUser & AddSshPublicKeys(SshPublicKeysT &&value)
DescribedUser & WithPosixProfile(PosixProfileT &&value)
const Aws::String & GetUserName() const
void SetHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
const Aws::String & GetHomeDirectory() const
DescribedUser & WithHomeDirectory(HomeDirectoryT &&value)
DescribedUser & AddTags(TagsT &&value)
const Aws::String & GetPolicy() const
DescribedUser & WithSshPublicKeys(SshPublicKeysT &&value)
const Aws::Vector< SshPublicKey > & GetSshPublicKeys() const
DescribedUser & WithUserName(UserNameT &&value)
DescribedUser & AddHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
AWS_TRANSFER_API DescribedUser()=default
AWS_TRANSFER_API DescribedUser(Aws::Utils::Json::JsonView jsonValue)
DescribedUser & WithHomeDirectoryMappings(HomeDirectoryMappingsT &&value)
void SetUserName(UserNameT &&value)
void SetSshPublicKeys(SshPublicKeysT &&value)
const Aws::String & GetArn() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedUser & WithHomeDirectoryType(HomeDirectoryType value)
const Aws::Vector< Tag > & GetTags() const
DescribedUser & WithArn(ArnT &&value)
const Aws::String & GetRole() const
void SetHomeDirectoryType(HomeDirectoryType 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