AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
CatalogSource.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/GlueSchema.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 CatalogSource() = 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 CatalogSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_databaseHasBeenSet = true; m_database = std::forward<DatabaseT>(value); }
63 template<typename DatabaseT = Aws::String>
64 CatalogSource& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
66
68
71 inline const Aws::String& GetTable() const { return m_table; }
72 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
73 template<typename TableT = Aws::String>
74 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
75 template<typename TableT = Aws::String>
76 CatalogSource& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
78
80
84 inline const Aws::String& GetPartitionPredicate() const { return m_partitionPredicate; }
85 inline bool PartitionPredicateHasBeenSet() const { return m_partitionPredicateHasBeenSet; }
86 template<typename PartitionPredicateT = Aws::String>
87 void SetPartitionPredicate(PartitionPredicateT&& value) { m_partitionPredicateHasBeenSet = true; m_partitionPredicate = std::forward<PartitionPredicateT>(value); }
88 template<typename PartitionPredicateT = Aws::String>
89 CatalogSource& WithPartitionPredicate(PartitionPredicateT&& value) { SetPartitionPredicate(std::forward<PartitionPredicateT>(value)); return *this;}
91
93
96 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
97 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
98 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
99 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
100 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
101 CatalogSource& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
102 template<typename OutputSchemasT = GlueSchema>
103 CatalogSource& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_database;
111 bool m_databaseHasBeenSet = false;
112
113 Aws::String m_table;
114 bool m_tableHasBeenSet = false;
115
116 Aws::String m_partitionPredicate;
117 bool m_partitionPredicateHasBeenSet = false;
118
119 Aws::Vector<GlueSchema> m_outputSchemas;
120 bool m_outputSchemasHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Glue
125} // 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