AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribedUser.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 <aws/awstransfer/model/SshPublicKey.h>
14#include <aws/awstransfer/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Transfer
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_TRANSFER_API DescribedUser() = default;
42 AWS_TRANSFER_API DescribedUser(Aws::Utils::Json::JsonView jsonValue);
44 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 DescribedUser& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::forward<HomeDirectoryT>(value); }
72 template<typename HomeDirectoryT = Aws::String>
73 DescribedUser& WithHomeDirectory(HomeDirectoryT&& value) { SetHomeDirectory(std::forward<HomeDirectoryT>(value)); return *this;}
75
77
91 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const { return m_homeDirectoryMappings; }
92 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
93 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
94 void SetHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::forward<HomeDirectoryMappingsT>(value); }
95 template<typename HomeDirectoryMappingsT = Aws::Vector<HomeDirectoryMapEntry>>
96 DescribedUser& WithHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { SetHomeDirectoryMappings(std::forward<HomeDirectoryMappingsT>(value)); return *this;}
97 template<typename HomeDirectoryMappingsT = HomeDirectoryMapEntry>
98 DescribedUser& AddHomeDirectoryMappings(HomeDirectoryMappingsT&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.emplace_back(std::forward<HomeDirectoryMappingsT>(value)); return *this; }
100
102
117 inline HomeDirectoryType GetHomeDirectoryType() const { return m_homeDirectoryType; }
118 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
119 inline void SetHomeDirectoryType(HomeDirectoryType value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
122
124
132 inline const Aws::String& GetPolicy() const { return m_policy; }
133 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
134 template<typename PolicyT = Aws::String>
135 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
136 template<typename PolicyT = Aws::String>
137 DescribedUser& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
139
141
150 inline const PosixProfile& GetPosixProfile() const { return m_posixProfile; }
151 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
152 template<typename PosixProfileT = PosixProfile>
153 void SetPosixProfile(PosixProfileT&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::forward<PosixProfileT>(value); }
154 template<typename PosixProfileT = PosixProfile>
155 DescribedUser& WithPosixProfile(PosixProfileT&& value) { SetPosixProfile(std::forward<PosixProfileT>(value)); return *this;}
157
159
168 inline const Aws::String& GetRole() const { return m_role; }
169 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
170 template<typename RoleT = Aws::String>
171 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
172 template<typename RoleT = Aws::String>
173 DescribedUser& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
175
177
182 inline const Aws::Vector<SshPublicKey>& GetSshPublicKeys() const { return m_sshPublicKeys; }
183 inline bool SshPublicKeysHasBeenSet() const { return m_sshPublicKeysHasBeenSet; }
184 template<typename SshPublicKeysT = Aws::Vector<SshPublicKey>>
185 void SetSshPublicKeys(SshPublicKeysT&& value) { m_sshPublicKeysHasBeenSet = true; m_sshPublicKeys = std::forward<SshPublicKeysT>(value); }
186 template<typename SshPublicKeysT = Aws::Vector<SshPublicKey>>
187 DescribedUser& WithSshPublicKeys(SshPublicKeysT&& value) { SetSshPublicKeys(std::forward<SshPublicKeysT>(value)); return *this;}
188 template<typename SshPublicKeysT = SshPublicKey>
189 DescribedUser& AddSshPublicKeys(SshPublicKeysT&& value) { m_sshPublicKeysHasBeenSet = true; m_sshPublicKeys.emplace_back(std::forward<SshPublicKeysT>(value)); return *this; }
191
193
197 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template<typename TagsT = Aws::Vector<Tag>>
200 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
201 template<typename TagsT = Aws::Vector<Tag>>
202 DescribedUser& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
203 template<typename TagsT = Tag>
204 DescribedUser& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
206
208
213 inline const Aws::String& GetUserName() const { return m_userName; }
214 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
215 template<typename UserNameT = Aws::String>
216 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
217 template<typename UserNameT = Aws::String>
218 DescribedUser& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
220 private:
221
222 Aws::String m_arn;
223 bool m_arnHasBeenSet = false;
224
225 Aws::String m_homeDirectory;
226 bool m_homeDirectoryHasBeenSet = false;
227
228 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
229 bool m_homeDirectoryMappingsHasBeenSet = false;
230
232 bool m_homeDirectoryTypeHasBeenSet = false;
233
234 Aws::String m_policy;
235 bool m_policyHasBeenSet = false;
236
237 PosixProfile m_posixProfile;
238 bool m_posixProfileHasBeenSet = false;
239
240 Aws::String m_role;
241 bool m_roleHasBeenSet = false;
242
243 Aws::Vector<SshPublicKey> m_sshPublicKeys;
244 bool m_sshPublicKeysHasBeenSet = false;
245
246 Aws::Vector<Tag> m_tags;
247 bool m_tagsHasBeenSet = false;
248
249 Aws::String m_userName;
250 bool m_userNameHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace Transfer
255} // 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