AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataLakeSettings.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/lakeformation/model/DataLakePrincipal.h>
11#include <aws/lakeformation/model/PrincipalPermissions.h>
12#include <aws/core/utils/memory/stl/AWSString.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 LakeFormation
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_LAKEFORMATION_API DataLakeSettings();
42 AWS_LAKEFORMATION_API DataLakeSettings(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LAKEFORMATION_API DataLakeSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::Vector<DataLakePrincipal>& GetDataLakeAdmins() const{ return m_dataLakeAdmins; }
53 inline bool DataLakeAdminsHasBeenSet() const { return m_dataLakeAdminsHasBeenSet; }
54 inline void SetDataLakeAdmins(const Aws::Vector<DataLakePrincipal>& value) { m_dataLakeAdminsHasBeenSet = true; m_dataLakeAdmins = value; }
55 inline void SetDataLakeAdmins(Aws::Vector<DataLakePrincipal>&& value) { m_dataLakeAdminsHasBeenSet = true; m_dataLakeAdmins = std::move(value); }
57 inline DataLakeSettings& WithDataLakeAdmins(Aws::Vector<DataLakePrincipal>&& value) { SetDataLakeAdmins(std::move(value)); return *this;}
58 inline DataLakeSettings& AddDataLakeAdmins(const DataLakePrincipal& value) { m_dataLakeAdminsHasBeenSet = true; m_dataLakeAdmins.push_back(value); return *this; }
59 inline DataLakeSettings& AddDataLakeAdmins(DataLakePrincipal&& value) { m_dataLakeAdminsHasBeenSet = true; m_dataLakeAdmins.push_back(std::move(value)); return *this; }
61
63
68 inline const Aws::Vector<DataLakePrincipal>& GetReadOnlyAdmins() const{ return m_readOnlyAdmins; }
69 inline bool ReadOnlyAdminsHasBeenSet() const { return m_readOnlyAdminsHasBeenSet; }
70 inline void SetReadOnlyAdmins(const Aws::Vector<DataLakePrincipal>& value) { m_readOnlyAdminsHasBeenSet = true; m_readOnlyAdmins = value; }
71 inline void SetReadOnlyAdmins(Aws::Vector<DataLakePrincipal>&& value) { m_readOnlyAdminsHasBeenSet = true; m_readOnlyAdmins = std::move(value); }
73 inline DataLakeSettings& WithReadOnlyAdmins(Aws::Vector<DataLakePrincipal>&& value) { SetReadOnlyAdmins(std::move(value)); return *this;}
74 inline DataLakeSettings& AddReadOnlyAdmins(const DataLakePrincipal& value) { m_readOnlyAdminsHasBeenSet = true; m_readOnlyAdmins.push_back(value); return *this; }
75 inline DataLakeSettings& AddReadOnlyAdmins(DataLakePrincipal&& value) { m_readOnlyAdminsHasBeenSet = true; m_readOnlyAdmins.push_back(std::move(value)); return *this; }
77
79
92 inline const Aws::Vector<PrincipalPermissions>& GetCreateDatabaseDefaultPermissions() const{ return m_createDatabaseDefaultPermissions; }
93 inline bool CreateDatabaseDefaultPermissionsHasBeenSet() const { return m_createDatabaseDefaultPermissionsHasBeenSet; }
94 inline void SetCreateDatabaseDefaultPermissions(const Aws::Vector<PrincipalPermissions>& value) { m_createDatabaseDefaultPermissionsHasBeenSet = true; m_createDatabaseDefaultPermissions = value; }
95 inline void SetCreateDatabaseDefaultPermissions(Aws::Vector<PrincipalPermissions>&& value) { m_createDatabaseDefaultPermissionsHasBeenSet = true; m_createDatabaseDefaultPermissions = std::move(value); }
98 inline DataLakeSettings& AddCreateDatabaseDefaultPermissions(const PrincipalPermissions& value) { m_createDatabaseDefaultPermissionsHasBeenSet = true; m_createDatabaseDefaultPermissions.push_back(value); return *this; }
99 inline DataLakeSettings& AddCreateDatabaseDefaultPermissions(PrincipalPermissions&& value) { m_createDatabaseDefaultPermissionsHasBeenSet = true; m_createDatabaseDefaultPermissions.push_back(std::move(value)); return *this; }
101
103
116 inline const Aws::Vector<PrincipalPermissions>& GetCreateTableDefaultPermissions() const{ return m_createTableDefaultPermissions; }
117 inline bool CreateTableDefaultPermissionsHasBeenSet() const { return m_createTableDefaultPermissionsHasBeenSet; }
118 inline void SetCreateTableDefaultPermissions(const Aws::Vector<PrincipalPermissions>& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = value; }
119 inline void SetCreateTableDefaultPermissions(Aws::Vector<PrincipalPermissions>&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = std::move(value); }
122 inline DataLakeSettings& AddCreateTableDefaultPermissions(const PrincipalPermissions& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.push_back(value); return *this; }
123 inline DataLakeSettings& AddCreateTableDefaultPermissions(PrincipalPermissions&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.push_back(std::move(value)); return *this; }
125
127
132 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
133 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
134 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
135 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
137 inline DataLakeSettings& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
138 inline DataLakeSettings& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
139 inline DataLakeSettings& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
140 inline DataLakeSettings& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
141 inline DataLakeSettings& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
142 inline DataLakeSettings& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
143 inline DataLakeSettings& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
144 inline DataLakeSettings& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
146
148
155 inline const Aws::Vector<Aws::String>& GetTrustedResourceOwners() const{ return m_trustedResourceOwners; }
156 inline bool TrustedResourceOwnersHasBeenSet() const { return m_trustedResourceOwnersHasBeenSet; }
157 inline void SetTrustedResourceOwners(const Aws::Vector<Aws::String>& value) { m_trustedResourceOwnersHasBeenSet = true; m_trustedResourceOwners = value; }
158 inline void SetTrustedResourceOwners(Aws::Vector<Aws::String>&& value) { m_trustedResourceOwnersHasBeenSet = true; m_trustedResourceOwners = std::move(value); }
161 inline DataLakeSettings& AddTrustedResourceOwners(const Aws::String& value) { m_trustedResourceOwnersHasBeenSet = true; m_trustedResourceOwners.push_back(value); return *this; }
162 inline DataLakeSettings& AddTrustedResourceOwners(Aws::String&& value) { m_trustedResourceOwnersHasBeenSet = true; m_trustedResourceOwners.push_back(std::move(value)); return *this; }
163 inline DataLakeSettings& AddTrustedResourceOwners(const char* value) { m_trustedResourceOwnersHasBeenSet = true; m_trustedResourceOwners.push_back(value); return *this; }
165
167
176 inline bool GetAllowExternalDataFiltering() const{ return m_allowExternalDataFiltering; }
177 inline bool AllowExternalDataFilteringHasBeenSet() const { return m_allowExternalDataFilteringHasBeenSet; }
178 inline void SetAllowExternalDataFiltering(bool value) { m_allowExternalDataFilteringHasBeenSet = true; m_allowExternalDataFiltering = value; }
181
183
187 inline bool GetAllowFullTableExternalDataAccess() const{ return m_allowFullTableExternalDataAccess; }
188 inline bool AllowFullTableExternalDataAccessHasBeenSet() const { return m_allowFullTableExternalDataAccessHasBeenSet; }
189 inline void SetAllowFullTableExternalDataAccess(bool value) { m_allowFullTableExternalDataAccessHasBeenSet = true; m_allowFullTableExternalDataAccess = value; }
192
194
198 inline const Aws::Vector<DataLakePrincipal>& GetExternalDataFilteringAllowList() const{ return m_externalDataFilteringAllowList; }
199 inline bool ExternalDataFilteringAllowListHasBeenSet() const { return m_externalDataFilteringAllowListHasBeenSet; }
200 inline void SetExternalDataFilteringAllowList(const Aws::Vector<DataLakePrincipal>& value) { m_externalDataFilteringAllowListHasBeenSet = true; m_externalDataFilteringAllowList = value; }
201 inline void SetExternalDataFilteringAllowList(Aws::Vector<DataLakePrincipal>&& value) { m_externalDataFilteringAllowListHasBeenSet = true; m_externalDataFilteringAllowList = std::move(value); }
204 inline DataLakeSettings& AddExternalDataFilteringAllowList(const DataLakePrincipal& value) { m_externalDataFilteringAllowListHasBeenSet = true; m_externalDataFilteringAllowList.push_back(value); return *this; }
205 inline DataLakeSettings& AddExternalDataFilteringAllowList(DataLakePrincipal&& value) { m_externalDataFilteringAllowListHasBeenSet = true; m_externalDataFilteringAllowList.push_back(std::move(value)); return *this; }
207
209
217 inline const Aws::Vector<Aws::String>& GetAuthorizedSessionTagValueList() const{ return m_authorizedSessionTagValueList; }
218 inline bool AuthorizedSessionTagValueListHasBeenSet() const { return m_authorizedSessionTagValueListHasBeenSet; }
219 inline void SetAuthorizedSessionTagValueList(const Aws::Vector<Aws::String>& value) { m_authorizedSessionTagValueListHasBeenSet = true; m_authorizedSessionTagValueList = value; }
220 inline void SetAuthorizedSessionTagValueList(Aws::Vector<Aws::String>&& value) { m_authorizedSessionTagValueListHasBeenSet = true; m_authorizedSessionTagValueList = std::move(value); }
223 inline DataLakeSettings& AddAuthorizedSessionTagValueList(const Aws::String& value) { m_authorizedSessionTagValueListHasBeenSet = true; m_authorizedSessionTagValueList.push_back(value); return *this; }
224 inline DataLakeSettings& AddAuthorizedSessionTagValueList(Aws::String&& value) { m_authorizedSessionTagValueListHasBeenSet = true; m_authorizedSessionTagValueList.push_back(std::move(value)); return *this; }
225 inline DataLakeSettings& AddAuthorizedSessionTagValueList(const char* value) { m_authorizedSessionTagValueListHasBeenSet = true; m_authorizedSessionTagValueList.push_back(value); return *this; }
227 private:
228
229 Aws::Vector<DataLakePrincipal> m_dataLakeAdmins;
230 bool m_dataLakeAdminsHasBeenSet = false;
231
232 Aws::Vector<DataLakePrincipal> m_readOnlyAdmins;
233 bool m_readOnlyAdminsHasBeenSet = false;
234
235 Aws::Vector<PrincipalPermissions> m_createDatabaseDefaultPermissions;
236 bool m_createDatabaseDefaultPermissionsHasBeenSet = false;
237
238 Aws::Vector<PrincipalPermissions> m_createTableDefaultPermissions;
239 bool m_createTableDefaultPermissionsHasBeenSet = false;
240
242 bool m_parametersHasBeenSet = false;
243
244 Aws::Vector<Aws::String> m_trustedResourceOwners;
245 bool m_trustedResourceOwnersHasBeenSet = false;
246
247 bool m_allowExternalDataFiltering;
248 bool m_allowExternalDataFilteringHasBeenSet = false;
249
250 bool m_allowFullTableExternalDataAccess;
251 bool m_allowFullTableExternalDataAccessHasBeenSet = false;
252
253 Aws::Vector<DataLakePrincipal> m_externalDataFilteringAllowList;
254 bool m_externalDataFilteringAllowListHasBeenSet = false;
255
256 Aws::Vector<Aws::String> m_authorizedSessionTagValueList;
257 bool m_authorizedSessionTagValueListHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace LakeFormation
262} // namespace Aws
void SetTrustedResourceOwners(Aws::Vector< Aws::String > &&value)
DataLakeSettings & WithAuthorizedSessionTagValueList(const Aws::Vector< Aws::String > &value)
DataLakeSettings & WithAuthorizedSessionTagValueList(Aws::Vector< Aws::String > &&value)
void SetCreateTableDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
DataLakeSettings & AddCreateTableDefaultPermissions(const PrincipalPermissions &value)
DataLakeSettings & AddParameters(const char *key, Aws::String &&value)
void SetReadOnlyAdmins(const Aws::Vector< DataLakePrincipal > &value)
DataLakeSettings & WithCreateTableDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
void SetExternalDataFilteringAllowList(const Aws::Vector< DataLakePrincipal > &value)
DataLakeSettings & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< DataLakePrincipal > & GetExternalDataFilteringAllowList() const
DataLakeSettings & WithDataLakeAdmins(Aws::Vector< DataLakePrincipal > &&value)
DataLakeSettings & AddReadOnlyAdmins(DataLakePrincipal &&value)
void SetCreateTableDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
DataLakeSettings & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetReadOnlyAdmins(Aws::Vector< DataLakePrincipal > &&value)
DataLakeSettings & AddAuthorizedSessionTagValueList(const char *value)
const Aws::Vector< PrincipalPermissions > & GetCreateDatabaseDefaultPermissions() const
void SetAuthorizedSessionTagValueList(const Aws::Vector< Aws::String > &value)
const Aws::Vector< PrincipalPermissions > & GetCreateTableDefaultPermissions() const
const Aws::Vector< Aws::String > & GetTrustedResourceOwners() const
DataLakeSettings & AddTrustedResourceOwners(Aws::String &&value)
DataLakeSettings & WithDataLakeAdmins(const Aws::Vector< DataLakePrincipal > &value)
DataLakeSettings & AddExternalDataFilteringAllowList(const DataLakePrincipal &value)
DataLakeSettings & AddReadOnlyAdmins(const DataLakePrincipal &value)
DataLakeSettings & AddParameters(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
DataLakeSettings & WithExternalDataFilteringAllowList(const Aws::Vector< DataLakePrincipal > &value)
DataLakeSettings & AddExternalDataFilteringAllowList(DataLakePrincipal &&value)
DataLakeSettings & AddAuthorizedSessionTagValueList(Aws::String &&value)
DataLakeSettings & WithReadOnlyAdmins(const Aws::Vector< DataLakePrincipal > &value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
DataLakeSettings & WithCreateDatabaseDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
DataLakeSettings & AddParameters(Aws::String &&key, Aws::String &&value)
void SetExternalDataFilteringAllowList(Aws::Vector< DataLakePrincipal > &&value)
DataLakeSettings & AddCreateDatabaseDefaultPermissions(PrincipalPermissions &&value)
DataLakeSettings & WithAllowExternalDataFiltering(bool value)
void SetDataLakeAdmins(const Aws::Vector< DataLakePrincipal > &value)
const Aws::Vector< DataLakePrincipal > & GetDataLakeAdmins() const
void SetTrustedResourceOwners(const Aws::Vector< Aws::String > &value)
AWS_LAKEFORMATION_API DataLakeSettings(Aws::Utils::Json::JsonView jsonValue)
DataLakeSettings & AddParameters(Aws::String &&key, const char *value)
DataLakeSettings & AddDataLakeAdmins(DataLakePrincipal &&value)
void SetAuthorizedSessionTagValueList(Aws::Vector< Aws::String > &&value)
const Aws::Vector< DataLakePrincipal > & GetReadOnlyAdmins() const
DataLakeSettings & WithCreateDatabaseDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
DataLakeSettings & WithTrustedResourceOwners(const Aws::Vector< Aws::String > &value)
DataLakeSettings & AddParameters(Aws::String &&key, const Aws::String &value)
DataLakeSettings & AddCreateTableDefaultPermissions(PrincipalPermissions &&value)
DataLakeSettings & WithReadOnlyAdmins(Aws::Vector< DataLakePrincipal > &&value)
DataLakeSettings & WithExternalDataFilteringAllowList(Aws::Vector< DataLakePrincipal > &&value)
AWS_LAKEFORMATION_API DataLakeSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
DataLakeSettings & WithTrustedResourceOwners(Aws::Vector< Aws::String > &&value)
DataLakeSettings & AddTrustedResourceOwners(const Aws::String &value)
DataLakeSettings & AddDataLakeAdmins(const DataLakePrincipal &value)
void SetCreateDatabaseDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
const Aws::Vector< Aws::String > & GetAuthorizedSessionTagValueList() const
DataLakeSettings & AddParameters(const Aws::String &key, Aws::String &&value)
void SetDataLakeAdmins(Aws::Vector< DataLakePrincipal > &&value)
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
DataLakeSettings & WithAllowFullTableExternalDataAccess(bool value)
DataLakeSettings & AddAuthorizedSessionTagValueList(const Aws::String &value)
void SetCreateDatabaseDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
DataLakeSettings & AddCreateDatabaseDefaultPermissions(const PrincipalPermissions &value)
DataLakeSettings & WithCreateTableDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
DataLakeSettings & AddTrustedResourceOwners(const char *value)
DataLakeSettings & AddParameters(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue