AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3HudiCatalogTarget.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/glue/model/CatalogSchemaChangePolicy.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 S3HudiCatalogTarget() = 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 S3HudiCatalogTarget& 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 S3HudiCatalogTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
66 template<typename InputsT = Aws::String>
67 S3HudiCatalogTarget& 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 S3HudiCatalogTarget& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
80 template<typename PartitionKeysT = Aws::Vector<Aws::String>>
81 S3HudiCatalogTarget& 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 S3HudiCatalogTarget& 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 S3HudiCatalogTarget& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
113 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
114 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
115 void SetAdditionalOptions(AdditionalOptionsT&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::forward<AdditionalOptionsT>(value); }
116 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
117 S3HudiCatalogTarget& WithAdditionalOptions(AdditionalOptionsT&& value) { SetAdditionalOptions(std::forward<AdditionalOptionsT>(value)); return *this;}
118 template<typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
119 S3HudiCatalogTarget& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
120 m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value)); return *this;
121 }
123
125
128 inline const CatalogSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
129 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
130 template<typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
131 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
132 template<typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
133 S3HudiCatalogTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
135 private:
136
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
141 bool m_inputsHasBeenSet = false;
142
144 bool m_partitionKeysHasBeenSet = false;
145
146 Aws::String m_table;
147 bool m_tableHasBeenSet = false;
148
149 Aws::String m_database;
150 bool m_databaseHasBeenSet = false;
151
152 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
153 bool m_additionalOptionsHasBeenSet = false;
154
155 CatalogSchemaChangePolicy m_schemaChangePolicy;
156 bool m_schemaChangePolicyHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Glue
161} // namespace Aws
S3HudiCatalogTarget & WithDatabase(DatabaseT &&value)
S3HudiCatalogTarget & WithTable(TableT &&value)
const Aws::String & GetDatabase() const
S3HudiCatalogTarget & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
void SetPartitionKeys(PartitionKeysT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3HudiCatalogTarget & WithSchemaChangePolicy(SchemaChangePolicyT &&value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
void SetSchemaChangePolicy(SchemaChangePolicyT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
S3HudiCatalogTarget & AddPartitionKeys(PartitionKeysT &&value)
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
S3HudiCatalogTarget & WithName(NameT &&value)
AWS_GLUE_API S3HudiCatalogTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
S3HudiCatalogTarget & WithInputs(InputsT &&value)
const CatalogSchemaChangePolicy & GetSchemaChangePolicy() const
AWS_GLUE_API S3HudiCatalogTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
S3HudiCatalogTarget & AddInputs(InputsT &&value)
S3HudiCatalogTarget & WithAdditionalOptions(AdditionalOptionsT &&value)
S3HudiCatalogTarget & WithPartitionKeys(PartitionKeysT &&value)
AWS_GLUE_API S3HudiCatalogTarget()=default
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