AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CatalogSource.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/GlueSchema.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API CatalogSource() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 CatalogSource& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDatabase() const { return m_database; }
60 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
61 template <typename DatabaseT = Aws::String>
62 void SetDatabase(DatabaseT&& value) {
63 m_databaseHasBeenSet = true;
64 m_database = std::forward<DatabaseT>(value);
65 }
66 template <typename DatabaseT = Aws::String>
67 CatalogSource& WithDatabase(DatabaseT&& value) {
68 SetDatabase(std::forward<DatabaseT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTable() const { return m_table; }
78 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
79 template <typename TableT = Aws::String>
80 void SetTable(TableT&& value) {
81 m_tableHasBeenSet = true;
82 m_table = std::forward<TableT>(value);
83 }
84 template <typename TableT = Aws::String>
85 CatalogSource& WithTable(TableT&& value) {
86 SetTable(std::forward<TableT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetPartitionPredicate() const { return m_partitionPredicate; }
97 inline bool PartitionPredicateHasBeenSet() const { return m_partitionPredicateHasBeenSet; }
98 template <typename PartitionPredicateT = Aws::String>
99 void SetPartitionPredicate(PartitionPredicateT&& value) {
100 m_partitionPredicateHasBeenSet = true;
101 m_partitionPredicate = std::forward<PartitionPredicateT>(value);
102 }
103 template <typename PartitionPredicateT = Aws::String>
104 CatalogSource& WithPartitionPredicate(PartitionPredicateT&& value) {
105 SetPartitionPredicate(std::forward<PartitionPredicateT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
115 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
116 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
117 void SetOutputSchemas(OutputSchemasT&& value) {
118 m_outputSchemasHasBeenSet = true;
119 m_outputSchemas = std::forward<OutputSchemasT>(value);
120 }
121 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
122 CatalogSource& WithOutputSchemas(OutputSchemasT&& value) {
123 SetOutputSchemas(std::forward<OutputSchemasT>(value));
124 return *this;
125 }
126 template <typename OutputSchemasT = GlueSchema>
127 CatalogSource& AddOutputSchemas(OutputSchemasT&& value) {
128 m_outputSchemasHasBeenSet = true;
129 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_name;
135
136 Aws::String m_database;
137
138 Aws::String m_table;
139
140 Aws::String m_partitionPredicate;
141
142 Aws::Vector<GlueSchema> m_outputSchemas;
143 bool m_nameHasBeenSet = false;
144 bool m_databaseHasBeenSet = false;
145 bool m_tableHasBeenSet = false;
146 bool m_partitionPredicateHasBeenSet = false;
147 bool m_outputSchemasHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Glue
152} // namespace Aws
void SetOutputSchemas(OutputSchemasT &&value)
void SetDatabase(DatabaseT &&value)
void SetPartitionPredicate(PartitionPredicateT &&value)
CatalogSource & WithTable(TableT &&value)
CatalogSource & WithOutputSchemas(OutputSchemasT &&value)
CatalogSource & WithName(NameT &&value)
AWS_GLUE_API CatalogSource & operator=(Aws::Utils::Json::JsonView jsonValue)
CatalogSource & WithDatabase(DatabaseT &&value)
CatalogSource & WithPartitionPredicate(PartitionPredicateT &&value)
const Aws::String & GetPartitionPredicate() const
AWS_GLUE_API CatalogSource()=default
const Aws::String & GetDatabase() const
AWS_GLUE_API CatalogSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTable() const
CatalogSource & AddOutputSchemas(OutputSchemasT &&value)
void SetTable(TableT &&value)
const Aws::String & GetName() const
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() 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