AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHomeDirectory(const Aws::String& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = value; }
56 inline void SetHomeDirectory(Aws::String&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::move(value); }
57 inline void SetHomeDirectory(const char* value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory.assign(value); }
58 inline DescribedAccess& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
59 inline DescribedAccess& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
60 inline DescribedAccess& WithHomeDirectory(const char* value) { SetHomeDirectory(value); return *this;}
62
64
78 inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const{ return m_homeDirectoryMappings; }
79 inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
80 inline void SetHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = value; }
81 inline void SetHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::move(value); }
84 inline DescribedAccess& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
85 inline DescribedAccess& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
87
89
104 inline const HomeDirectoryType& GetHomeDirectoryType() const{ return m_homeDirectoryType; }
105 inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
106 inline void SetHomeDirectoryType(const HomeDirectoryType& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
107 inline void SetHomeDirectoryType(HomeDirectoryType&& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = std::move(value); }
109 inline DescribedAccess& WithHomeDirectoryType(HomeDirectoryType&& value) { SetHomeDirectoryType(std::move(value)); return *this;}
111
113
121 inline const Aws::String& GetPolicy() const{ return m_policy; }
122 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
123 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
124 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
125 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
126 inline DescribedAccess& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
127 inline DescribedAccess& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
128 inline DescribedAccess& WithPolicy(const char* value) { SetPolicy(value); return *this;}
130
132
133 inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
134 inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
135 inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
136 inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
137 inline DescribedAccess& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
138 inline DescribedAccess& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
140
142
151 inline const Aws::String& GetRole() const{ return m_role; }
152 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
153 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
154 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
155 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
156 inline DescribedAccess& WithRole(const Aws::String& value) { SetRole(value); return *this;}
157 inline DescribedAccess& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
158 inline DescribedAccess& WithRole(const char* value) { SetRole(value); return *this;}
160
162
175 inline const Aws::String& GetExternalId() const{ return m_externalId; }
176 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
177 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
178 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
179 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
180 inline DescribedAccess& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
181 inline DescribedAccess& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
182 inline DescribedAccess& WithExternalId(const char* value) { SetExternalId(value); return *this;}
184 private:
185
186 Aws::String m_homeDirectory;
187 bool m_homeDirectoryHasBeenSet = false;
188
189 Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
190 bool m_homeDirectoryMappingsHasBeenSet = false;
191
192 HomeDirectoryType m_homeDirectoryType;
193 bool m_homeDirectoryTypeHasBeenSet = false;
194
195 Aws::String m_policy;
196 bool m_policyHasBeenSet = false;
197
198 PosixProfile m_posixProfile;
199 bool m_posixProfileHasBeenSet = false;
200
201 Aws::String m_role;
202 bool m_roleHasBeenSet = false;
203
204 Aws::String m_externalId;
205 bool m_externalIdHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace Transfer
210} // namespace Aws
void SetHomeDirectory(Aws::String &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedAccess & WithHomeDirectory(const char *value)
void SetExternalId(const Aws::String &value)
void SetHomeDirectory(const Aws::String &value)
DescribedAccess & WithRole(const Aws::String &value)
DescribedAccess & WithExternalId(const Aws::String &value)
DescribedAccess & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
const Aws::String & GetHomeDirectory() const
DescribedAccess & WithExternalId(Aws::String &&value)
DescribedAccess & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
DescribedAccess & WithPosixProfile(PosixProfile &&value)
DescribedAccess & WithHomeDirectory(Aws::String &&value)
DescribedAccess & WithHomeDirectoryType(HomeDirectoryType &&value)
DescribedAccess & WithPolicy(const char *value)
const Aws::String & GetRole() const
void SetExternalId(Aws::String &&value)
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
AWS_TRANSFER_API DescribedAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHomeDirectory(const char *value)
void SetPolicy(Aws::String &&value)
void SetRole(const Aws::String &value)
AWS_TRANSFER_API DescribedAccess(Aws::Utils::Json::JsonView jsonValue)
const HomeDirectoryType & GetHomeDirectoryType() const
DescribedAccess & WithPolicy(Aws::String &&value)
DescribedAccess & WithHomeDirectory(const Aws::String &value)
DescribedAccess & WithRole(const char *value)
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
DescribedAccess & WithHomeDirectoryType(const HomeDirectoryType &value)
DescribedAccess & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
void SetPosixProfile(PosixProfile &&value)
DescribedAccess & WithExternalId(const char *value)
const PosixProfile & GetPosixProfile() const
void SetPolicy(const Aws::String &value)
void SetHomeDirectoryType(HomeDirectoryType &&value)
void SetHomeDirectoryType(const HomeDirectoryType &value)
void SetPosixProfile(const PosixProfile &value)
DescribedAccess & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
const Aws::String & GetExternalId() const
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
const Aws::String & GetPolicy() const
DescribedAccess & WithRole(Aws::String &&value)
DescribedAccess & WithPosixProfile(const PosixProfile &value)
DescribedAccess & WithPolicy(const Aws::String &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