AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DatabaseInput.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/memory/stl/AWSVector.h>
11#include <aws/glue/model/DatabaseIdentifier.h>
12#include <aws/glue/model/FederatedDatabase.h>
13#include <aws/glue/model/PrincipalPermissions.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GLUE_API DatabaseInput();
44
45
47
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline DatabaseInput& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline DatabaseInput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline DatabaseInput& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
68 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
70 inline DatabaseInput& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 inline DatabaseInput& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 inline DatabaseInput& WithDescription(const char* value) { SetDescription(value); return *this;}
74
76
79 inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
80 inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
81 inline void SetLocationUri(const Aws::String& value) { m_locationUriHasBeenSet = true; m_locationUri = value; }
82 inline void SetLocationUri(Aws::String&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::move(value); }
83 inline void SetLocationUri(const char* value) { m_locationUriHasBeenSet = true; m_locationUri.assign(value); }
84 inline DatabaseInput& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
85 inline DatabaseInput& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
86 inline DatabaseInput& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
88
90
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); }
99 inline DatabaseInput& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
100 inline DatabaseInput& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
101 inline DatabaseInput& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
102 inline DatabaseInput& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
103 inline DatabaseInput& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
104 inline DatabaseInput& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
105 inline DatabaseInput& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
106 inline DatabaseInput& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
108
110
114 inline const Aws::Vector<PrincipalPermissions>& GetCreateTableDefaultPermissions() const{ return m_createTableDefaultPermissions; }
115 inline bool CreateTableDefaultPermissionsHasBeenSet() const { return m_createTableDefaultPermissionsHasBeenSet; }
116 inline void SetCreateTableDefaultPermissions(const Aws::Vector<PrincipalPermissions>& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = value; }
117 inline void SetCreateTableDefaultPermissions(Aws::Vector<PrincipalPermissions>&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = std::move(value); }
120 inline DatabaseInput& AddCreateTableDefaultPermissions(const PrincipalPermissions& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.push_back(value); return *this; }
121 inline DatabaseInput& AddCreateTableDefaultPermissions(PrincipalPermissions&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.push_back(std::move(value)); return *this; }
123
125
129 inline const DatabaseIdentifier& GetTargetDatabase() const{ return m_targetDatabase; }
130 inline bool TargetDatabaseHasBeenSet() const { return m_targetDatabaseHasBeenSet; }
131 inline void SetTargetDatabase(const DatabaseIdentifier& value) { m_targetDatabaseHasBeenSet = true; m_targetDatabase = value; }
132 inline void SetTargetDatabase(DatabaseIdentifier&& value) { m_targetDatabaseHasBeenSet = true; m_targetDatabase = std::move(value); }
133 inline DatabaseInput& WithTargetDatabase(const DatabaseIdentifier& value) { SetTargetDatabase(value); return *this;}
134 inline DatabaseInput& WithTargetDatabase(DatabaseIdentifier&& value) { SetTargetDatabase(std::move(value)); return *this;}
136
138
142 inline const FederatedDatabase& GetFederatedDatabase() const{ return m_federatedDatabase; }
143 inline bool FederatedDatabaseHasBeenSet() const { return m_federatedDatabaseHasBeenSet; }
144 inline void SetFederatedDatabase(const FederatedDatabase& value) { m_federatedDatabaseHasBeenSet = true; m_federatedDatabase = value; }
145 inline void SetFederatedDatabase(FederatedDatabase&& value) { m_federatedDatabaseHasBeenSet = true; m_federatedDatabase = std::move(value); }
146 inline DatabaseInput& WithFederatedDatabase(const FederatedDatabase& value) { SetFederatedDatabase(value); return *this;}
147 inline DatabaseInput& WithFederatedDatabase(FederatedDatabase&& value) { SetFederatedDatabase(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 Aws::String m_locationUri;
158 bool m_locationUriHasBeenSet = false;
159
161 bool m_parametersHasBeenSet = false;
162
163 Aws::Vector<PrincipalPermissions> m_createTableDefaultPermissions;
164 bool m_createTableDefaultPermissionsHasBeenSet = false;
165
166 DatabaseIdentifier m_targetDatabase;
167 bool m_targetDatabaseHasBeenSet = false;
168
169 FederatedDatabase m_federatedDatabase;
170 bool m_federatedDatabaseHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Glue
175} // namespace Aws
DatabaseInput & AddParameters(Aws::String &&key, Aws::String &&value)
DatabaseInput & AddParameters(const Aws::String &key, const Aws::String &value)
DatabaseInput & WithFederatedDatabase(FederatedDatabase &&value)
DatabaseInput & WithCreateTableDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
void SetFederatedDatabase(FederatedDatabase &&value)
AWS_GLUE_API DatabaseInput(Aws::Utils::Json::JsonView jsonValue)
DatabaseInput & AddCreateTableDefaultPermissions(const PrincipalPermissions &value)
void SetLocationUri(const Aws::String &value)
DatabaseInput & WithLocationUri(const Aws::String &value)
void SetLocationUri(Aws::String &&value)
DatabaseInput & WithCreateTableDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
DatabaseInput & WithFederatedDatabase(const FederatedDatabase &value)
DatabaseInput & AddParameters(Aws::String &&key, const Aws::String &value)
DatabaseInput & AddParameters(const char *key, const char *value)
void SetFederatedDatabase(const FederatedDatabase &value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
DatabaseInput & WithName(Aws::String &&value)
const Aws::String & GetLocationUri() const
DatabaseInput & WithDescription(const Aws::String &value)
DatabaseInput & WithLocationUri(Aws::String &&value)
void SetDescription(Aws::String &&value)
DatabaseInput & WithLocationUri(const char *value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetDescription(const Aws::String &value)
DatabaseInput & AddParameters(const Aws::String &key, Aws::String &&value)
DatabaseInput & WithName(const char *value)
void SetTargetDatabase(const DatabaseIdentifier &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
DatabaseInput & WithTargetDatabase(DatabaseIdentifier &&value)
const FederatedDatabase & GetFederatedDatabase() const
const Aws::Vector< PrincipalPermissions > & GetCreateTableDefaultPermissions() const
void SetName(const Aws::String &value)
const Aws::String & GetDescription() const
void SetTargetDatabase(DatabaseIdentifier &&value)
DatabaseInput & AddParameters(const char *key, Aws::String &&value)
void SetDescription(const char *value)
DatabaseInput & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
bool CreateTableDefaultPermissionsHasBeenSet() const
void SetCreateTableDefaultPermissions(Aws::Vector< PrincipalPermissions > &&value)
DatabaseInput & AddParameters(Aws::String &&key, const char *value)
void SetCreateTableDefaultPermissions(const Aws::Vector< PrincipalPermissions > &value)
AWS_GLUE_API DatabaseInput & operator=(Aws::Utils::Json::JsonView jsonValue)
DatabaseInput & AddCreateTableDefaultPermissions(PrincipalPermissions &&value)
void SetLocationUri(const char *value)
void SetName(const char *value)
DatabaseInput & WithDescription(Aws::String &&value)
DatabaseInput & WithTargetDatabase(const DatabaseIdentifier &value)
DatabaseInput & WithDescription(const char *value)
DatabaseInput & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
const DatabaseIdentifier & GetTargetDatabase() const
const Aws::String & GetName() const
DatabaseInput & WithName(const Aws::String &value)
void SetName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() 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