AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Database.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/DatabaseIdentifier.h>
13#include <aws/glue/model/FederatedDatabase.h>
14#include <aws/glue/model/PrincipalPermissions.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 Glue
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_GLUE_API Database() = default;
42 AWS_GLUE_API Database(Aws::Utils::Json::JsonView jsonValue);
45
46
48
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 Database& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 Database& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
77 inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
78 template<typename LocationUriT = Aws::String>
79 void SetLocationUri(LocationUriT&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::forward<LocationUriT>(value); }
80 template<typename LocationUriT = Aws::String>
81 Database& WithLocationUri(LocationUriT&& value) { SetLocationUri(std::forward<LocationUriT>(value)); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
89 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
90 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
91 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
92 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
93 Database& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
94 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
95 Database& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
96 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
105 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
106 template<typename CreateTimeT = Aws::Utils::DateTime>
107 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
108 template<typename CreateTimeT = Aws::Utils::DateTime>
109 Database& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
111
113
117 inline const Aws::Vector<PrincipalPermissions>& GetCreateTableDefaultPermissions() const { return m_createTableDefaultPermissions; }
118 inline bool CreateTableDefaultPermissionsHasBeenSet() const { return m_createTableDefaultPermissionsHasBeenSet; }
119 template<typename CreateTableDefaultPermissionsT = Aws::Vector<PrincipalPermissions>>
120 void SetCreateTableDefaultPermissions(CreateTableDefaultPermissionsT&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = std::forward<CreateTableDefaultPermissionsT>(value); }
121 template<typename CreateTableDefaultPermissionsT = Aws::Vector<PrincipalPermissions>>
122 Database& WithCreateTableDefaultPermissions(CreateTableDefaultPermissionsT&& value) { SetCreateTableDefaultPermissions(std::forward<CreateTableDefaultPermissionsT>(value)); return *this;}
123 template<typename CreateTableDefaultPermissionsT = PrincipalPermissions>
124 Database& AddCreateTableDefaultPermissions(CreateTableDefaultPermissionsT&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.emplace_back(std::forward<CreateTableDefaultPermissionsT>(value)); return *this; }
126
128
132 inline const DatabaseIdentifier& GetTargetDatabase() const { return m_targetDatabase; }
133 inline bool TargetDatabaseHasBeenSet() const { return m_targetDatabaseHasBeenSet; }
134 template<typename TargetDatabaseT = DatabaseIdentifier>
135 void SetTargetDatabase(TargetDatabaseT&& value) { m_targetDatabaseHasBeenSet = true; m_targetDatabase = std::forward<TargetDatabaseT>(value); }
136 template<typename TargetDatabaseT = DatabaseIdentifier>
137 Database& WithTargetDatabase(TargetDatabaseT&& value) { SetTargetDatabase(std::forward<TargetDatabaseT>(value)); return *this;}
139
141
144 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
145 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
146 template<typename CatalogIdT = Aws::String>
147 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
148 template<typename CatalogIdT = Aws::String>
149 Database& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
151
153
157 inline const FederatedDatabase& GetFederatedDatabase() const { return m_federatedDatabase; }
158 inline bool FederatedDatabaseHasBeenSet() const { return m_federatedDatabaseHasBeenSet; }
159 template<typename FederatedDatabaseT = FederatedDatabase>
160 void SetFederatedDatabase(FederatedDatabaseT&& value) { m_federatedDatabaseHasBeenSet = true; m_federatedDatabase = std::forward<FederatedDatabaseT>(value); }
161 template<typename FederatedDatabaseT = FederatedDatabase>
162 Database& WithFederatedDatabase(FederatedDatabaseT&& value) { SetFederatedDatabase(std::forward<FederatedDatabaseT>(value)); return *this;}
164 private:
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_locationUri;
173 bool m_locationUriHasBeenSet = false;
174
176 bool m_parametersHasBeenSet = false;
177
178 Aws::Utils::DateTime m_createTime{};
179 bool m_createTimeHasBeenSet = false;
180
181 Aws::Vector<PrincipalPermissions> m_createTableDefaultPermissions;
182 bool m_createTableDefaultPermissionsHasBeenSet = false;
183
184 DatabaseIdentifier m_targetDatabase;
185 bool m_targetDatabaseHasBeenSet = false;
186
187 Aws::String m_catalogId;
188 bool m_catalogIdHasBeenSet = false;
189
190 FederatedDatabase m_federatedDatabase;
191 bool m_federatedDatabaseHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace Glue
196} // namespace Aws
bool CreateTimeHasBeenSet() const
Definition Database.h:105
bool TargetDatabaseHasBeenSet() const
Definition Database.h:133
AWS_GLUE_API Database()=default
bool LocationUriHasBeenSet() const
Definition Database.h:77
const DatabaseIdentifier & GetTargetDatabase() const
Definition Database.h:132
Database & WithCreateTime(CreateTimeT &&value)
Definition Database.h:109
Database & WithCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
Definition Database.h:122
Database & AddCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
Definition Database.h:124
const Aws::String & GetLocationUri() const
Definition Database.h:76
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Database.h:88
Database & WithCatalogId(CatalogIdT &&value)
Definition Database.h:149
void SetCreateTime(CreateTimeT &&value)
Definition Database.h:107
Database & WithParameters(ParametersT &&value)
Definition Database.h:93
void SetFederatedDatabase(FederatedDatabaseT &&value)
Definition Database.h:160
Database & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Database.h:95
bool CreateTableDefaultPermissionsHasBeenSet() const
Definition Database.h:118
void SetParameters(ParametersT &&value)
Definition Database.h:91
void SetDescription(DescriptionT &&value)
Definition Database.h:67
const Aws::String & GetName() const
Definition Database.h:52
bool DescriptionHasBeenSet() const
Definition Database.h:65
const Aws::Utils::DateTime & GetCreateTime() const
Definition Database.h:104
AWS_GLUE_API Database(Aws::Utils::Json::JsonView jsonValue)
Database & WithFederatedDatabase(FederatedDatabaseT &&value)
Definition Database.h:162
void SetName(NameT &&value)
Definition Database.h:55
bool NameHasBeenSet() const
Definition Database.h:53
Database & WithLocationUri(LocationUriT &&value)
Definition Database.h:81
const FederatedDatabase & GetFederatedDatabase() const
Definition Database.h:157
AWS_GLUE_API Database & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogId(CatalogIdT &&value)
Definition Database.h:147
void SetLocationUri(LocationUriT &&value)
Definition Database.h:79
bool FederatedDatabaseHasBeenSet() const
Definition Database.h:158
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Database & WithTargetDatabase(TargetDatabaseT &&value)
Definition Database.h:137
const Aws::Vector< PrincipalPermissions > & GetCreateTableDefaultPermissions() const
Definition Database.h:117
void SetTargetDatabase(TargetDatabaseT &&value)
Definition Database.h:135
const Aws::String & GetDescription() const
Definition Database.h:64
bool CatalogIdHasBeenSet() const
Definition Database.h:145
Database & WithName(NameT &&value)
Definition Database.h:57
bool ParametersHasBeenSet() const
Definition Database.h:89
Database & WithDescription(DescriptionT &&value)
Definition Database.h:69
void SetCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
Definition Database.h:120
const Aws::String & GetCatalogId() const
Definition Database.h:144
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