AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
44
45
47
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 DatabaseInput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 DatabaseInput& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
75 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
76 inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
77 template<typename LocationUriT = Aws::String>
78 void SetLocationUri(LocationUriT&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::forward<LocationUriT>(value); }
79 template<typename LocationUriT = Aws::String>
80 DatabaseInput& WithLocationUri(LocationUriT&& value) { SetLocationUri(std::forward<LocationUriT>(value)); return *this;}
82
84
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 DatabaseInput& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
94 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
95 DatabaseInput& 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
105 inline const Aws::Vector<PrincipalPermissions>& GetCreateTableDefaultPermissions() const { return m_createTableDefaultPermissions; }
106 inline bool CreateTableDefaultPermissionsHasBeenSet() const { return m_createTableDefaultPermissionsHasBeenSet; }
107 template<typename CreateTableDefaultPermissionsT = Aws::Vector<PrincipalPermissions>>
108 void SetCreateTableDefaultPermissions(CreateTableDefaultPermissionsT&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions = std::forward<CreateTableDefaultPermissionsT>(value); }
109 template<typename CreateTableDefaultPermissionsT = Aws::Vector<PrincipalPermissions>>
110 DatabaseInput& WithCreateTableDefaultPermissions(CreateTableDefaultPermissionsT&& value) { SetCreateTableDefaultPermissions(std::forward<CreateTableDefaultPermissionsT>(value)); return *this;}
111 template<typename CreateTableDefaultPermissionsT = PrincipalPermissions>
112 DatabaseInput& AddCreateTableDefaultPermissions(CreateTableDefaultPermissionsT&& value) { m_createTableDefaultPermissionsHasBeenSet = true; m_createTableDefaultPermissions.emplace_back(std::forward<CreateTableDefaultPermissionsT>(value)); return *this; }
114
116
120 inline const DatabaseIdentifier& GetTargetDatabase() const { return m_targetDatabase; }
121 inline bool TargetDatabaseHasBeenSet() const { return m_targetDatabaseHasBeenSet; }
122 template<typename TargetDatabaseT = DatabaseIdentifier>
123 void SetTargetDatabase(TargetDatabaseT&& value) { m_targetDatabaseHasBeenSet = true; m_targetDatabase = std::forward<TargetDatabaseT>(value); }
124 template<typename TargetDatabaseT = DatabaseIdentifier>
125 DatabaseInput& WithTargetDatabase(TargetDatabaseT&& value) { SetTargetDatabase(std::forward<TargetDatabaseT>(value)); return *this;}
127
129
133 inline const FederatedDatabase& GetFederatedDatabase() const { return m_federatedDatabase; }
134 inline bool FederatedDatabaseHasBeenSet() const { return m_federatedDatabaseHasBeenSet; }
135 template<typename FederatedDatabaseT = FederatedDatabase>
136 void SetFederatedDatabase(FederatedDatabaseT&& value) { m_federatedDatabaseHasBeenSet = true; m_federatedDatabase = std::forward<FederatedDatabaseT>(value); }
137 template<typename FederatedDatabaseT = FederatedDatabase>
138 DatabaseInput& WithFederatedDatabase(FederatedDatabaseT&& value) { SetFederatedDatabase(std::forward<FederatedDatabaseT>(value)); return *this;}
140 private:
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_locationUri;
149 bool m_locationUriHasBeenSet = false;
150
152 bool m_parametersHasBeenSet = false;
153
154 Aws::Vector<PrincipalPermissions> m_createTableDefaultPermissions;
155 bool m_createTableDefaultPermissionsHasBeenSet = false;
156
157 DatabaseIdentifier m_targetDatabase;
158 bool m_targetDatabaseHasBeenSet = false;
159
160 FederatedDatabase m_federatedDatabase;
161 bool m_federatedDatabaseHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Glue
166} // namespace Aws
void SetDescription(DescriptionT &&value)
AWS_GLUE_API DatabaseInput()=default
AWS_GLUE_API DatabaseInput(Aws::Utils::Json::JsonView jsonValue)
void SetLocationUri(LocationUriT &&value)
const Aws::String & GetLocationUri() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetDatabase(TargetDatabaseT &&value)
const FederatedDatabase & GetFederatedDatabase() const
const Aws::Vector< PrincipalPermissions > & GetCreateTableDefaultPermissions() const
void SetParameters(ParametersT &&value)
DatabaseInput & AddCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
const Aws::String & GetDescription() const
DatabaseInput & WithFederatedDatabase(FederatedDatabaseT &&value)
bool CreateTableDefaultPermissionsHasBeenSet() const
AWS_GLUE_API DatabaseInput & operator=(Aws::Utils::Json::JsonView jsonValue)
DatabaseInput & WithParameters(ParametersT &&value)
DatabaseInput & WithDescription(DescriptionT &&value)
DatabaseInput & WithLocationUri(LocationUriT &&value)
DatabaseInput & WithCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
void SetFederatedDatabase(FederatedDatabaseT &&value)
const DatabaseIdentifier & GetTargetDatabase() const
void SetCreateTableDefaultPermissions(CreateTableDefaultPermissionsT &&value)
DatabaseInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetName() const
DatabaseInput & WithTargetDatabase(TargetDatabaseT &&value)
DatabaseInput & WithName(NameT &&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