AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
S3CatalogTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/AutoDataQuality.h>
11#include <aws/glue/model/CatalogSchemaChangePolicy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API S3CatalogTarget() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 S3CatalogTarget& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
61 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
62 template <typename InputsT = Aws::Vector<Aws::String>>
63 void SetInputs(InputsT&& value) {
64 m_inputsHasBeenSet = true;
65 m_inputs = std::forward<InputsT>(value);
66 }
67 template <typename InputsT = Aws::Vector<Aws::String>>
68 S3CatalogTarget& WithInputs(InputsT&& value) {
69 SetInputs(std::forward<InputsT>(value));
70 return *this;
71 }
72 template <typename InputsT = Aws::String>
73 S3CatalogTarget& AddInputs(InputsT&& value) {
74 m_inputsHasBeenSet = true;
75 m_inputs.emplace_back(std::forward<InputsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const { return m_partitionKeys; }
85 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
86 template <typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
87 void SetPartitionKeys(PartitionKeysT&& value) {
88 m_partitionKeysHasBeenSet = true;
89 m_partitionKeys = std::forward<PartitionKeysT>(value);
90 }
91 template <typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
92 S3CatalogTarget& WithPartitionKeys(PartitionKeysT&& value) {
93 SetPartitionKeys(std::forward<PartitionKeysT>(value));
94 return *this;
95 }
96 template <typename PartitionKeysT = Aws::Vector<Aws::String>>
97 S3CatalogTarget& AddPartitionKeys(PartitionKeysT&& value) {
98 m_partitionKeysHasBeenSet = true;
99 m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetTable() const { return m_table; }
109 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
110 template <typename TableT = Aws::String>
111 void SetTable(TableT&& value) {
112 m_tableHasBeenSet = true;
113 m_table = std::forward<TableT>(value);
114 }
115 template <typename TableT = Aws::String>
116 S3CatalogTarget& WithTable(TableT&& value) {
117 SetTable(std::forward<TableT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetDatabase() const { return m_database; }
127 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
128 template <typename DatabaseT = Aws::String>
129 void SetDatabase(DatabaseT&& value) {
130 m_databaseHasBeenSet = true;
131 m_database = std::forward<DatabaseT>(value);
132 }
133 template <typename DatabaseT = Aws::String>
134 S3CatalogTarget& WithDatabase(DatabaseT&& value) {
135 SetDatabase(std::forward<DatabaseT>(value));
136 return *this;
137 }
139
141
144 inline const CatalogSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
145 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
146 template <typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
147 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) {
148 m_schemaChangePolicyHasBeenSet = true;
149 m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value);
150 }
151 template <typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
152 S3CatalogTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) {
153 SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value));
154 return *this;
155 }
157
159
164 inline const AutoDataQuality& GetAutoDataQuality() const { return m_autoDataQuality; }
165 inline bool AutoDataQualityHasBeenSet() const { return m_autoDataQualityHasBeenSet; }
166 template <typename AutoDataQualityT = AutoDataQuality>
167 void SetAutoDataQuality(AutoDataQualityT&& value) {
168 m_autoDataQualityHasBeenSet = true;
169 m_autoDataQuality = std::forward<AutoDataQualityT>(value);
170 }
171 template <typename AutoDataQualityT = AutoDataQuality>
172 S3CatalogTarget& WithAutoDataQuality(AutoDataQualityT&& value) {
173 SetAutoDataQuality(std::forward<AutoDataQualityT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_name;
179 bool m_nameHasBeenSet = false;
180
182 bool m_inputsHasBeenSet = false;
183
185 bool m_partitionKeysHasBeenSet = false;
186
187 Aws::String m_table;
188 bool m_tableHasBeenSet = false;
189
190 Aws::String m_database;
191 bool m_databaseHasBeenSet = false;
192
193 CatalogSchemaChangePolicy m_schemaChangePolicy;
194 bool m_schemaChangePolicyHasBeenSet = false;
195
196 AutoDataQuality m_autoDataQuality;
197 bool m_autoDataQualityHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace Glue
202} // namespace Aws
void SetAutoDataQuality(AutoDataQualityT &&value)
const CatalogSchemaChangePolicy & GetSchemaChangePolicy() const
void SetDatabase(DatabaseT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
AWS_GLUE_API S3CatalogTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPartitionKeys(PartitionKeysT &&value)
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
const AutoDataQuality & GetAutoDataQuality() const
void SetSchemaChangePolicy(SchemaChangePolicyT &&value)
S3CatalogTarget & AddPartitionKeys(PartitionKeysT &&value)
S3CatalogTarget & WithInputs(InputsT &&value)
S3CatalogTarget & WithName(NameT &&value)
S3CatalogTarget & WithTable(TableT &&value)
const Aws::String & GetName() const
S3CatalogTarget & WithAutoDataQuality(AutoDataQualityT &&value)
const Aws::String & GetTable() const
S3CatalogTarget & WithPartitionKeys(PartitionKeysT &&value)
AWS_GLUE_API S3CatalogTarget()=default
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3CatalogTarget & WithDatabase(DatabaseT &&value)
AWS_GLUE_API S3CatalogTarget(Aws::Utils::Json::JsonView jsonValue)
S3CatalogTarget & AddInputs(InputsT &&value)
S3CatalogTarget & WithSchemaChangePolicy(SchemaChangePolicyT &&value)
const Aws::String & GetDatabase() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue