AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SparkSQL.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#include <aws/glue/model/SqlAlias.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32class SparkSQL {
33 public:
34 AWS_GLUE_API SparkSQL() = default;
35 AWS_GLUE_API SparkSQL(Aws::Utils::Json::JsonView jsonValue);
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 SparkSQL& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
64 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
65 template <typename InputsT = Aws::Vector<Aws::String>>
66 void SetInputs(InputsT&& value) {
67 m_inputsHasBeenSet = true;
68 m_inputs = std::forward<InputsT>(value);
69 }
70 template <typename InputsT = Aws::Vector<Aws::String>>
71 SparkSQL& WithInputs(InputsT&& value) {
72 SetInputs(std::forward<InputsT>(value));
73 return *this;
74 }
75 template <typename InputsT = Aws::String>
76 SparkSQL& AddInputs(InputsT&& value) {
77 m_inputsHasBeenSet = true;
78 m_inputs.emplace_back(std::forward<InputsT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetSqlQuery() const { return m_sqlQuery; }
88 inline bool SqlQueryHasBeenSet() const { return m_sqlQueryHasBeenSet; }
89 template <typename SqlQueryT = Aws::String>
90 void SetSqlQuery(SqlQueryT&& value) {
91 m_sqlQueryHasBeenSet = true;
92 m_sqlQuery = std::forward<SqlQueryT>(value);
93 }
94 template <typename SqlQueryT = Aws::String>
95 SparkSQL& WithSqlQuery(SqlQueryT&& value) {
96 SetSqlQuery(std::forward<SqlQueryT>(value));
97 return *this;
98 }
100
102
109 inline const Aws::Vector<SqlAlias>& GetSqlAliases() const { return m_sqlAliases; }
110 inline bool SqlAliasesHasBeenSet() const { return m_sqlAliasesHasBeenSet; }
111 template <typename SqlAliasesT = Aws::Vector<SqlAlias>>
112 void SetSqlAliases(SqlAliasesT&& value) {
113 m_sqlAliasesHasBeenSet = true;
114 m_sqlAliases = std::forward<SqlAliasesT>(value);
115 }
116 template <typename SqlAliasesT = Aws::Vector<SqlAlias>>
117 SparkSQL& WithSqlAliases(SqlAliasesT&& value) {
118 SetSqlAliases(std::forward<SqlAliasesT>(value));
119 return *this;
120 }
121 template <typename SqlAliasesT = SqlAlias>
122 SparkSQL& AddSqlAliases(SqlAliasesT&& value) {
123 m_sqlAliasesHasBeenSet = true;
124 m_sqlAliases.emplace_back(std::forward<SqlAliasesT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
134 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
135 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
136 void SetOutputSchemas(OutputSchemasT&& value) {
137 m_outputSchemasHasBeenSet = true;
138 m_outputSchemas = std::forward<OutputSchemasT>(value);
139 }
140 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
141 SparkSQL& WithOutputSchemas(OutputSchemasT&& value) {
142 SetOutputSchemas(std::forward<OutputSchemasT>(value));
143 return *this;
144 }
145 template <typename OutputSchemasT = GlueSchema>
146 SparkSQL& AddOutputSchemas(OutputSchemasT&& value) {
147 m_outputSchemasHasBeenSet = true;
148 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154
156
157 Aws::String m_sqlQuery;
158
159 Aws::Vector<SqlAlias> m_sqlAliases;
160
161 Aws::Vector<GlueSchema> m_outputSchemas;
162 bool m_nameHasBeenSet = false;
163 bool m_inputsHasBeenSet = false;
164 bool m_sqlQueryHasBeenSet = false;
165 bool m_sqlAliasesHasBeenSet = false;
166 bool m_outputSchemasHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Glue
171} // namespace Aws
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
Definition SparkSQL.h:133
const Aws::String & GetSqlQuery() const
Definition SparkSQL.h:87
SparkSQL & AddSqlAliases(SqlAliasesT &&value)
Definition SparkSQL.h:122
const Aws::Vector< SqlAlias > & GetSqlAliases() const
Definition SparkSQL.h:109
SparkSQL & AddOutputSchemas(OutputSchemasT &&value)
Definition SparkSQL.h:146
SparkSQL & AddInputs(InputsT &&value)
Definition SparkSQL.h:76
bool NameHasBeenSet() const
Definition SparkSQL.h:44
void SetOutputSchemas(OutputSchemasT &&value)
Definition SparkSQL.h:136
const Aws::String & GetName() const
Definition SparkSQL.h:43
SparkSQL & WithName(NameT &&value)
Definition SparkSQL.h:51
void SetSqlAliases(SqlAliasesT &&value)
Definition SparkSQL.h:112
bool SqlQueryHasBeenSet() const
Definition SparkSQL.h:88
bool InputsHasBeenSet() const
Definition SparkSQL.h:64
bool OutputSchemasHasBeenSet() const
Definition SparkSQL.h:134
void SetSqlQuery(SqlQueryT &&value)
Definition SparkSQL.h:90
const Aws::Vector< Aws::String > & GetInputs() const
Definition SparkSQL.h:63
AWS_GLUE_API SparkSQL()=default
SparkSQL & WithSqlQuery(SqlQueryT &&value)
Definition SparkSQL.h:95
AWS_GLUE_API SparkSQL(Aws::Utils::Json::JsonView jsonValue)
void SetInputs(InputsT &&value)
Definition SparkSQL.h:66
void SetName(NameT &&value)
Definition SparkSQL.h:46
AWS_GLUE_API SparkSQL & operator=(Aws::Utils::Json::JsonView jsonValue)
SparkSQL & WithSqlAliases(SqlAliasesT &&value)
Definition SparkSQL.h:117
SparkSQL & WithInputs(InputsT &&value)
Definition SparkSQL.h:71
SparkSQL & WithOutputSchemas(OutputSchemasT &&value)
Definition SparkSQL.h:141
bool SqlAliasesHasBeenSet() const
Definition SparkSQL.h:110
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue