AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API S3CatalogTarget() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 S3CatalogTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
60 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
61 template<typename InputsT = Aws::Vector<Aws::String>>
62 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
63 template<typename InputsT = Aws::Vector<Aws::String>>
64 S3CatalogTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
65 template<typename InputsT = Aws::String>
66 S3CatalogTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
68
70
73 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const { return m_partitionKeys; }
74 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
75 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
76 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
77 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
78 S3CatalogTarget& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
79 template<typename PartitionKeysT = Aws::Vector<Aws::String>>
80 S3CatalogTarget& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
82
84
87 inline const Aws::String& GetTable() const { return m_table; }
88 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
89 template<typename TableT = Aws::String>
90 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
91 template<typename TableT = Aws::String>
92 S3CatalogTarget& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDatabase() const { return m_database; }
100 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
101 template<typename DatabaseT = Aws::String>
102 void SetDatabase(DatabaseT&& value) { m_databaseHasBeenSet = true; m_database = std::forward<DatabaseT>(value); }
103 template<typename DatabaseT = Aws::String>
104 S3CatalogTarget& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
106
108
111 inline const CatalogSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
112 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
113 template<typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
114 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
115 template<typename SchemaChangePolicyT = CatalogSchemaChangePolicy>
116 S3CatalogTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
118 private:
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
124 bool m_inputsHasBeenSet = false;
125
127 bool m_partitionKeysHasBeenSet = false;
128
129 Aws::String m_table;
130 bool m_tableHasBeenSet = false;
131
132 Aws::String m_database;
133 bool m_databaseHasBeenSet = false;
134
135 CatalogSchemaChangePolicy m_schemaChangePolicy;
136 bool m_schemaChangePolicyHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Glue
141} // namespace Aws
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
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
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