7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/DatabaseIdentifier.h>
13#include <aws/glue/model/FederatedDatabase.h>
14#include <aws/glue/model/PrincipalPermissions.h>
48 template <
typename NameT = Aws::String>
50 m_nameHasBeenSet =
true;
51 m_name = std::forward<NameT>(value);
53 template <
typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
66 template <
typename DescriptionT = Aws::String>
68 m_descriptionHasBeenSet =
true;
69 m_description = std::forward<DescriptionT>(value);
71 template <
typename DescriptionT = Aws::String>
84 template <
typename LocationUriT = Aws::String>
86 m_locationUriHasBeenSet =
true;
87 m_locationUri = std::forward<LocationUriT>(value);
89 template <
typename LocationUriT = Aws::String>
102 template <
typename ParametersT = Aws::Map<Aws::String, Aws::String>>
104 m_parametersHasBeenSet =
true;
105 m_parameters = std::forward<ParametersT>(value);
107 template <
typename ParametersT = Aws::Map<Aws::String, Aws::String>>
112 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::String>
114 m_parametersHasBeenSet =
true;
115 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
126 template <
typename CreateTimeT = Aws::Utils::DateTime>
128 m_createTimeHasBeenSet =
true;
129 m_createTime = std::forward<CreateTimeT>(value);
131 template <
typename CreateTimeT = Aws::Utils::DateTime>
145 template <
typename CreateTableDefaultPermissionsT = Aws::Vector<PrincipalPermissions>>
147 m_createTableDefaultPermissionsHasBeenSet =
true;
148 m_createTableDefaultPermissions = std::forward<CreateTableDefaultPermissionsT>(value);
150 template <
typename CreateTableDefaultPermissionsT = Aws::Vector<PrincipalPermissions>>
155 template <
typename CreateTableDefaultPermissionsT = PrincipalPermissions>
157 m_createTableDefaultPermissionsHasBeenSet =
true;
158 m_createTableDefaultPermissions.emplace_back(std::forward<CreateTableDefaultPermissionsT>(value));
170 template <
typename TargetDatabaseT = DatabaseIdentifier>
172 m_targetDatabaseHasBeenSet =
true;
173 m_targetDatabase = std::forward<TargetDatabaseT>(value);
175 template <
typename TargetDatabaseT = DatabaseIdentifier>
188 template <
typename CatalogIdT = Aws::String>
190 m_catalogIdHasBeenSet =
true;
191 m_catalogId = std::forward<CatalogIdT>(value);
193 template <
typename CatalogIdT = Aws::String>
207 template <
typename FederatedDatabaseT = FederatedDatabase>
209 m_federatedDatabaseHasBeenSet =
true;
210 m_federatedDatabase = std::forward<FederatedDatabaseT>(value);
212 template <
typename FederatedDatabaseT = FederatedDatabase>
231 DatabaseIdentifier m_targetDatabase;
235 FederatedDatabase m_federatedDatabase;
236 bool m_nameHasBeenSet =
false;
237 bool m_descriptionHasBeenSet =
false;
238 bool m_locationUriHasBeenSet =
false;
239 bool m_parametersHasBeenSet =
false;
240 bool m_createTimeHasBeenSet =
false;
241 bool m_createTableDefaultPermissionsHasBeenSet =
false;
242 bool m_targetDatabaseHasBeenSet =
false;
243 bool m_catalogIdHasBeenSet =
false;
244 bool m_federatedDatabaseHasBeenSet =
false;
bool CreateTimeHasBeenSet() const
bool TargetDatabaseHasBeenSet() const
AWS_GLUE_API Database()=default
bool LocationUriHasBeenSet() const
const DatabaseIdentifier & GetTargetDatabase() const
Database & WithCreateTime(CreateTimeT &&value)
Database & WithCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
Database & AddCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
const Aws::String & GetLocationUri() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Database & WithCatalogId(CatalogIdT &&value)
void SetCreateTime(CreateTimeT &&value)
Database & WithParameters(ParametersT &&value)
void SetFederatedDatabase(FederatedDatabaseT &&value)
Database & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
bool CreateTableDefaultPermissionsHasBeenSet() const
void SetParameters(ParametersT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
bool DescriptionHasBeenSet() const
const Aws::Utils::DateTime & GetCreateTime() const
AWS_GLUE_API Database(Aws::Utils::Json::JsonView jsonValue)
Database & WithFederatedDatabase(FederatedDatabaseT &&value)
void SetName(NameT &&value)
bool NameHasBeenSet() const
Database & WithLocationUri(LocationUriT &&value)
const FederatedDatabase & GetFederatedDatabase() const
AWS_GLUE_API Database & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogId(CatalogIdT &&value)
void SetLocationUri(LocationUriT &&value)
bool FederatedDatabaseHasBeenSet() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Database & WithTargetDatabase(TargetDatabaseT &&value)
const Aws::Vector< PrincipalPermissions > & GetCreateTableDefaultPermissions() const
void SetTargetDatabase(TargetDatabaseT &&value)
const Aws::String & GetDescription() const
bool CatalogIdHasBeenSet() const
Database & WithName(NameT &&value)
bool ParametersHasBeenSet() const
Database & WithDescription(DescriptionT &&value)
void SetCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
const Aws::String & GetCatalogId() const
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