AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
S3CatalogTarget.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/AWSVector.h>
10#include <aws/glue/model/CatalogSchemaChangePolicy.h>
11#include <aws/glue/model/AutoDataQuality.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API S3CatalogTarget() = default;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 S3CatalogTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
64 template<typename InputsT = Aws::Vector<Aws::String>>
65 S3CatalogTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
66 template<typename InputsT = Aws::String>
67 S3CatalogTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
69
71
74 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const { return m_partitionKeys; }
75 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
76 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
77 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
78 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
79 S3CatalogTarget& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
80 template<typename PartitionKeysT = Aws::Vector<Aws::String>>
81 S3CatalogTarget& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
83
85
88 inline const Aws::String& GetTable() const { return m_table; }
89 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
90 template<typename TableT = Aws::String>
91 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
92 template<typename TableT = Aws::String>
93 S3CatalogTarget& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDatabase() const { return m_database; }
101 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
102 template<typename DatabaseT = Aws::String>
103 void SetDatabase(DatabaseT&& value) { m_databaseHasBeenSet = true; m_database = std::forward<DatabaseT>(value); }
104 template<typename DatabaseT = Aws::String>
105 S3CatalogTarget& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
107
109
112 inline const CatalogSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
113 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
114 template<typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
115 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
116 template<typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
117 S3CatalogTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
119
121
126 inline const AutoDataQuality& GetAutoDataQuality() const { return m_autoDataQuality; }
127 inline bool AutoDataQualityHasBeenSet() const { return m_autoDataQualityHasBeenSet; }
128 template<typename AutoDataQualityT = AutoDataQuality>
129 void SetAutoDataQuality(AutoDataQualityT&& value) { m_autoDataQualityHasBeenSet = true; m_autoDataQuality = std::forward<AutoDataQualityT>(value); }
130 template<typename AutoDataQualityT = AutoDataQuality>
131 S3CatalogTarget& WithAutoDataQuality(AutoDataQualityT&& value) { SetAutoDataQuality(std::forward<AutoDataQualityT>(value)); return *this;}
133 private:
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
139 bool m_inputsHasBeenSet = false;
140
142 bool m_partitionKeysHasBeenSet = false;
143
144 Aws::String m_table;
145 bool m_tableHasBeenSet = false;
146
147 Aws::String m_database;
148 bool m_databaseHasBeenSet = false;
149
150 CatalogSchemaChangePolicy m_schemaChangePolicy;
151 bool m_schemaChangePolicyHasBeenSet = false;
152
153 AutoDataQuality m_autoDataQuality;
154 bool m_autoDataQualityHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Glue
159} // 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