AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline Database& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline Database& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline Database& WithName(const char* value) { SetName(value); return *this;}
61
63
66 inline const Aws::String& GetDescription() const{ return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 inline Database& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline Database& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline Database& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
80 inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
81 inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
82 inline void SetLocationUri(const Aws::String& value) { m_locationUriHasBeenSet = true; m_locationUri = value; }
83 inline void SetLocationUri(Aws::String&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::move(value); }
84 inline void SetLocationUri(const char* value) { m_locationUriHasBeenSet = true; m_locationUri.assign(value); }
85 inline Database& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
86 inline Database& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
87 inline Database& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
95 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
96 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
97 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
98 inline Database& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
99 inline Database& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
100 inline Database& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
101 inline Database& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
102 inline Database& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
103 inline Database& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
104 inline Database& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
105 inline Database& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
106 inline Database& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
108
110
113 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
114 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
115 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
116 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
117 inline Database& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
118 inline Database& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
120
122
126 inline const Aws::Vector<PrincipalPermissions>& GetCreateTableDefaultPermissions() const{ return m_createTableDefaultPermissions; }
127 inline bool CreateTableDefaultPermissionsHasBeenSet() const { return m_createTableDefaultPermissionsHasBeenSet; }
128 inline void SetCreateTableDefaultPermissions(const Aws::Vector<PrincipalPermissions>& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = value; }
129 inline void SetCreateTableDefaultPermissions(Aws::Vector<PrincipalPermissions>&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = std::move(value); }
132 inline Database& AddCreateTableDefaultPermissions(const PrincipalPermissions& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.push_back(value); return *this; }
133 inline Database& AddCreateTableDefaultPermissions(PrincipalPermissions&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.push_back(std::move(value)); return *this; }
135
137
141 inline const DatabaseIdentifier& GetTargetDatabase() const{ return m_targetDatabase; }
142 inline bool TargetDatabaseHasBeenSet() const { return m_targetDatabaseHasBeenSet; }
143 inline void SetTargetDatabase(const DatabaseIdentifier& value) { m_targetDatabaseHasBeenSet = true; m_targetDatabase = value; }
144 inline void SetTargetDatabase(DatabaseIdentifier&& value) { m_targetDatabaseHasBeenSet = true; m_targetDatabase = std::move(value); }
145 inline Database& WithTargetDatabase(const DatabaseIdentifier& value) { SetTargetDatabase(value); return *this;}
146 inline Database& WithTargetDatabase(DatabaseIdentifier&& value) { SetTargetDatabase(std::move(value)); return *this;}
148
150
153 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
154 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
155 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
156 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
157 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
158 inline Database& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
159 inline Database& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
160 inline Database& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
162
164
168 inline const FederatedDatabase& GetFederatedDatabase() const{ return m_federatedDatabase; }
169 inline bool FederatedDatabaseHasBeenSet() const { return m_federatedDatabaseHasBeenSet; }
170 inline void SetFederatedDatabase(const FederatedDatabase& value) { m_federatedDatabaseHasBeenSet = true; m_federatedDatabase = value; }
171 inline void SetFederatedDatabase(FederatedDatabase&& value) { m_federatedDatabaseHasBeenSet = true; m_federatedDatabase = std::move(value); }
172 inline Database& WithFederatedDatabase(const FederatedDatabase& value) { SetFederatedDatabase(value); return *this;}
173 inline Database& WithFederatedDatabase(FederatedDatabase&& value) { SetFederatedDatabase(std::move(value)); return *this;}
175 private:
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
183 Aws::String m_locationUri;
184 bool m_locationUriHasBeenSet = false;
185
187 bool m_parametersHasBeenSet = false;
188
189 Aws::Utils::DateTime m_createTime;
190 bool m_createTimeHasBeenSet = false;
191
192 Aws::Vector<PrincipalPermissions> m_createTableDefaultPermissions;
193 bool m_createTableDefaultPermissionsHasBeenSet = false;
194
195 DatabaseIdentifier m_targetDatabase;
196 bool m_targetDatabaseHasBeenSet = false;
197
198 Aws::String m_catalogId;
199 bool m_catalogIdHasBeenSet = false;
200
201 FederatedDatabase m_federatedDatabase;
202 bool m_federatedDatabaseHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Glue
207} // namespace Aws
void SetTargetDatabase(const DatabaseIdentifier &value)
Definition Database.h:143
Database & AddParameters(const char *key, const char *value)
Definition Database.h:106
Database & AddParameters(Aws::String &&key, const Aws::String &value)
Definition Database.h:101
Database & WithTargetDatabase(const DatabaseIdentifier &value)
Definition Database.h:145
bool CreateTimeHasBeenSet() const
Definition Database.h:114
Database & WithFederatedDatabase(FederatedDatabase &&value)
Definition Database.h:173
bool TargetDatabaseHasBeenSet() const
Definition Database.h:142
void SetDescription(Aws::String &&value)
Definition Database.h:69
bool LocationUriHasBeenSet() const
Definition Database.h:81
const DatabaseIdentifier & GetTargetDatabase() const
Definition Database.h:141
void SetCreateTableDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
Definition Database.h:128
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition Database.h:115
void SetCatalogId(const char *value)
Definition Database.h:157
const Aws::String & GetLocationUri() const
Definition Database.h:80
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Database.h:94
Database & AddParameters(Aws::String &&key, const char *value)
Definition Database.h:105
void SetDescription(const char *value)
Definition Database.h:70
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Database.h:96
bool CreateTableDefaultPermissionsHasBeenSet() const
Definition Database.h:127
void SetCatalogId(const Aws::String &value)
Definition Database.h:155
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Database.h:97
void SetCreateTableDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
Definition Database.h:129
void SetDescription(const Aws::String &value)
Definition Database.h:68
Database & WithCreateTime(Aws::Utils::DateTime &&value)
Definition Database.h:118
Database & WithCatalogId(const Aws::String &value)
Definition Database.h:158
const Aws::String & GetName() const
Definition Database.h:52
void SetName(const Aws::String &value)
Definition Database.h:54
bool DescriptionHasBeenSet() const
Definition Database.h:67
void SetName(const char *value)
Definition Database.h:56
Database & WithCreateTime(const Aws::Utils::DateTime &value)
Definition Database.h:117
void SetLocationUri(const char *value)
Definition Database.h:84
Database & WithCatalogId(Aws::String &&value)
Definition Database.h:159
void SetTargetDatabase(DatabaseIdentifier &&value)
Definition Database.h:144
const Aws::Utils::DateTime & GetCreateTime() const
Definition Database.h:113
Database & WithFederatedDatabase(const FederatedDatabase &value)
Definition Database.h:172
AWS_GLUE_API Database(Aws::Utils::Json::JsonView jsonValue)
Database & WithCreateTableDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
Definition Database.h:131
void SetFederatedDatabase(const FederatedDatabase &value)
Definition Database.h:170
Database & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Database.h:99
bool NameHasBeenSet() const
Definition Database.h:53
Database & WithLocationUri(const char *value)
Definition Database.h:87
Database & WithLocationUri(const Aws::String &value)
Definition Database.h:85
const FederatedDatabase & GetFederatedDatabase() const
Definition Database.h:168
Database & WithDescription(const char *value)
Definition Database.h:73
AWS_GLUE_API Database & operator=(Aws::Utils::Json::JsonView jsonValue)
Database & AddParameters(const char *key, Aws::String &&value)
Definition Database.h:104
Database & WithDescription(const Aws::String &value)
Definition Database.h:71
void SetLocationUri(const Aws::String &value)
Definition Database.h:82
Database & AddCreateTableDefaultPermissions(const PrincipalPermissions &value)
Definition Database.h:132
Database & WithDescription(Aws::String &&value)
Definition Database.h:72
Database & WithName(const char *value)
Definition Database.h:59
Database & WithLocationUri(Aws::String &&value)
Definition Database.h:86
Database & WithName(Aws::String &&value)
Definition Database.h:58
Database & AddParameters(Aws::String &&key, Aws::String &&value)
Definition Database.h:103
void SetCatalogId(Aws::String &&value)
Definition Database.h:156
bool FederatedDatabaseHasBeenSet() const
Definition Database.h:169
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocationUri(Aws::String &&value)
Definition Database.h:83
void SetName(Aws::String &&value)
Definition Database.h:55
Database & AddParameters(const Aws::String &key, Aws::String &&value)
Definition Database.h:102
Database & AddCreateTableDefaultPermissions(PrincipalPermissions &&value)
Definition Database.h:133
Database & WithCatalogId(const char *value)
Definition Database.h:160
const Aws::Vector< PrincipalPermissions > & GetCreateTableDefaultPermissions() const
Definition Database.h:126
Database & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Database.h:98
const Aws::String & GetDescription() const
Definition Database.h:66
Database & WithCreateTableDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
Definition Database.h:130
Database & WithTargetDatabase(DatabaseIdentifier &&value)
Definition Database.h:146
bool CatalogIdHasBeenSet() const
Definition Database.h:154
void SetFederatedDatabase(FederatedDatabase &&value)
Definition Database.h:171
bool ParametersHasBeenSet() const
Definition Database.h:95
Database & AddParameters(const Aws::String &key, const Aws::String &value)
Definition Database.h:100
Database & WithName(const Aws::String &value)
Definition Database.h:57
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition Database.h:116
const Aws::String & GetCatalogId() const
Definition Database.h:153
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