AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline DescribedUser& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline DescribedUser& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline DescribedUser& WithArn(const char* value) { SetArn(value); return *this;}
61
63
70 inline const Aws::String& GetHomeDirectory() const{ return m_homeDirectory; }
71 inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
72 inline void SetHomeDirectory(const Aws::String& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = value; }
73 inline void SetHomeDirectory(Aws::String&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::move(value); }
74 inline void SetHomeDirectory(const char* value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory.assign(value); }
75 inline DescribedUser& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
76 inline DescribedUser& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
77 inline DescribedUser& WithHomeDirectory(const char* value) { SetHomeDirectory(value); return *this;}
79
81
95 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const{ return m_homeDirectoryMappings; }
96 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
97 inline void SetHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = value; }
98 inline void SetHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::move(value); }
101 inline DescribedUser& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
102 inline DescribedUser& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
104
106
121 inline const HomeDirectoryType& GetHomeDirectoryType() const{ return m_homeDirectoryType; }
122 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
123 inline void SetHomeDirectoryType(const HomeDirectoryType& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
124 inline void SetHomeDirectoryType(HomeDirectoryType&& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = std::move(value); }
125 inline DescribedUser& WithHomeDirectoryType(const HomeDirectoryType& value) { SetHomeDirectoryType(value); return *this;}
126 inline DescribedUser& WithHomeDirectoryType(HomeDirectoryType&& value) { SetHomeDirectoryType(std::move(value)); return *this;}
128
130
138 inline const Aws::String& GetPolicy() const{ return m_policy; }
139 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
140 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
141 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
142 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
143 inline DescribedUser& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
144 inline DescribedUser& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
145 inline DescribedUser& WithPolicy(const char* value) { SetPolicy(value); return *this;}
147
149
158 inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
159 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
160 inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
161 inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
162 inline DescribedUser& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
163 inline DescribedUser& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
165
167
176 inline const Aws::String& GetRole() const{ return m_role; }
177 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
178 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
179 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
180 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
181 inline DescribedUser& WithRole(const Aws::String& value) { SetRole(value); return *this;}
182 inline DescribedUser& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
183 inline DescribedUser& WithRole(const char* value) { SetRole(value); return *this;}
185
187
191 inline const Aws::Vector<SshPublicKey>& GetSshPublicKeys() const{ return m_sshPublicKeys; }
192 inline bool SshPublicKeysHasBeenSet() const { return m_sshPublicKeysHasBeenSet; }
193 inline void SetSshPublicKeys(const Aws::Vector<SshPublicKey>& value) { m_sshPublicKeysHasBeenSet = true; m_sshPublicKeys = value; }
194 inline void SetSshPublicKeys(Aws::Vector<SshPublicKey>&& value) { m_sshPublicKeysHasBeenSet = true; m_sshPublicKeys = std::move(value); }
195 inline DescribedUser& WithSshPublicKeys(const Aws::Vector<SshPublicKey>& value) { SetSshPublicKeys(value); return *this;}
196 inline DescribedUser& WithSshPublicKeys(Aws::Vector<SshPublicKey>&& value) { SetSshPublicKeys(std::move(value)); return *this;}
197 inline DescribedUser& AddSshPublicKeys(const SshPublicKey& value) { m_sshPublicKeysHasBeenSet = true; m_sshPublicKeys.push_back(value); return *this; }
198 inline DescribedUser& AddSshPublicKeys(SshPublicKey&& value) { m_sshPublicKeysHasBeenSet = true; m_sshPublicKeys.push_back(std::move(value)); return *this; }
200
202
206 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
209 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
210 inline DescribedUser& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
211 inline DescribedUser& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
212 inline DescribedUser& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
213 inline DescribedUser& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
215
217
222 inline const Aws::String& GetUserName() const{ return m_userName; }
223 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
224 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
225 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
226 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
227 inline DescribedUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
228 inline DescribedUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
229 inline DescribedUser& WithUserName(const char* value) { SetUserName(value); return *this;}
231 private:
232
233 Aws::String m_arn;
234 bool m_arnHasBeenSet = false;
235
236 Aws::String m_homeDirectory;
237 bool m_homeDirectoryHasBeenSet = false;
238
239 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
240 bool m_homeDirectoryMappingsHasBeenSet = false;
241
242 HomeDirectoryType m_homeDirectoryType;
243 bool m_homeDirectoryTypeHasBeenSet = false;
244
245 Aws::String m_policy;
246 bool m_policyHasBeenSet = false;
247
248 PosixProfile m_posixProfile;
249 bool m_posixProfileHasBeenSet = false;
250
251 Aws::String m_role;
252 bool m_roleHasBeenSet = false;
253
254 Aws::Vector<SshPublicKey> m_sshPublicKeys;
255 bool m_sshPublicKeysHasBeenSet = false;
256
257 Aws::Vector<Tag> m_tags;
258 bool m_tagsHasBeenSet = false;
259
260 Aws::String m_userName;
261 bool m_userNameHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace Transfer
266} // namespace Aws
DescribedUser & WithHomeDirectory(const Aws::String &value)
void SetPolicy(const char *value)
void SetPolicy(const Aws::String &value)
DescribedUser & WithUserName(const Aws::String &value)
void SetSshPublicKeys(Aws::Vector< SshPublicKey > &&value)
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
DescribedUser & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
DescribedUser & WithHomeDirectoryType(const HomeDirectoryType &value)
void SetPosixProfile(const PosixProfile &value)
void SetSshPublicKeys(const Aws::Vector< SshPublicKey > &value)
DescribedUser & WithHomeDirectoryType(HomeDirectoryType &&value)
void SetHomeDirectory(Aws::String &&value)
const PosixProfile & GetPosixProfile() const
DescribedUser & WithArn(const char *value)
DescribedUser & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetRole(Aws::String &&value)
void SetArn(const Aws::String &value)
void SetRole(const Aws::String &value)
AWS_TRANSFER_API DescribedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedUser & AddSshPublicKeys(const SshPublicKey &value)
DescribedUser & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
void SetArn(Aws::String &&value)
DescribedUser & WithSshPublicKeys(Aws::Vector< SshPublicKey > &&value)
void SetHomeDirectory(const char *value)
DescribedUser & WithArn(const Aws::String &value)
void SetUserName(const Aws::String &value)
DescribedUser & WithPosixProfile(PosixProfile &&value)
void SetRole(const char *value)
DescribedUser & WithPolicy(const char *value)
const Aws::String & GetUserName() const
DescribedUser & WithTags(const Aws::Vector< Tag > &value)
void SetHomeDirectory(const Aws::String &value)
DescribedUser & AddTags(Tag &&value)
DescribedUser & WithUserName(Aws::String &&value)
void SetPosixProfile(PosixProfile &&value)
DescribedUser & WithRole(Aws::String &&value)
void SetArn(const char *value)
DescribedUser & WithPosixProfile(const PosixProfile &value)
DescribedUser & WithRole(const Aws::String &value)
const Aws::String & GetHomeDirectory() const
const Aws::String & GetPolicy() const
const Aws::Vector< SshPublicKey > & GetSshPublicKeys() const
void SetTags(Aws::Vector< Tag > &&value)
void SetHomeDirectoryType(const HomeDirectoryType &value)
const HomeDirectoryType & GetHomeDirectoryType() const
DescribedUser & WithHomeDirectory(const char *value)
void SetUserName(const char *value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
void SetHomeDirectoryType(HomeDirectoryType &&value)
AWS_TRANSFER_API DescribedUser(Aws::Utils::Json::JsonView jsonValue)
DescribedUser & WithRole(const char *value)
void SetPolicy(Aws::String &&value)
DescribedUser & WithPolicy(const Aws::String &value)
DescribedUser & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
DescribedUser & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserName(Aws::String &&value)
DescribedUser & WithHomeDirectory(Aws::String &&value)
DescribedUser & WithUserName(const char *value)
const Aws::Vector< Tag > & GetTags() const
DescribedUser & AddSshPublicKeys(SshPublicKey &&value)
const Aws::String & GetRole() const
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
DescribedUser & WithPolicy(Aws::String &&value)
DescribedUser & AddTags(const Tag &value)
DescribedUser & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
DescribedUser & WithSshPublicKeys(const Aws::Vector< SshPublicKey > &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