AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SparkSQL.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/SqlAlias.h>
11#include <aws/glue/model/GlueSchema.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
37 {
38 public:
39 AWS_GLUE_API SparkSQL();
40 AWS_GLUE_API SparkSQL(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline SparkSQL& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline SparkSQL& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline SparkSQL& WithName(const char* value) { SetName(value); return *this;}
58
60
65 inline const Aws::Vector<Aws::String>& GetInputs() const{ return m_inputs; }
66 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
67 inline void SetInputs(const Aws::Vector<Aws::String>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
68 inline void SetInputs(Aws::Vector<Aws::String>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
69 inline SparkSQL& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
70 inline SparkSQL& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
71 inline SparkSQL& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
72 inline SparkSQL& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
73 inline SparkSQL& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
75
77
80 inline const Aws::String& GetSqlQuery() const{ return m_sqlQuery; }
81 inline bool SqlQueryHasBeenSet() const { return m_sqlQueryHasBeenSet; }
82 inline void SetSqlQuery(const Aws::String& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = value; }
83 inline void SetSqlQuery(Aws::String&& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = std::move(value); }
84 inline void SetSqlQuery(const char* value) { m_sqlQueryHasBeenSet = true; m_sqlQuery.assign(value); }
85 inline SparkSQL& WithSqlQuery(const Aws::String& value) { SetSqlQuery(value); return *this;}
86 inline SparkSQL& WithSqlQuery(Aws::String&& value) { SetSqlQuery(std::move(value)); return *this;}
87 inline SparkSQL& WithSqlQuery(const char* value) { SetSqlQuery(value); return *this;}
89
91
98 inline const Aws::Vector<SqlAlias>& GetSqlAliases() const{ return m_sqlAliases; }
99 inline bool SqlAliasesHasBeenSet() const { return m_sqlAliasesHasBeenSet; }
100 inline void SetSqlAliases(const Aws::Vector<SqlAlias>& value) { m_sqlAliasesHasBeenSet = true; m_sqlAliases = value; }
101 inline void SetSqlAliases(Aws::Vector<SqlAlias>&& value) { m_sqlAliasesHasBeenSet = true; m_sqlAliases = std::move(value); }
102 inline SparkSQL& WithSqlAliases(const Aws::Vector<SqlAlias>& value) { SetSqlAliases(value); return *this;}
103 inline SparkSQL& WithSqlAliases(Aws::Vector<SqlAlias>&& value) { SetSqlAliases(std::move(value)); return *this;}
104 inline SparkSQL& AddSqlAliases(const SqlAlias& value) { m_sqlAliasesHasBeenSet = true; m_sqlAliases.push_back(value); return *this; }
105 inline SparkSQL& AddSqlAliases(SqlAlias&& value) { m_sqlAliasesHasBeenSet = true; m_sqlAliases.push_back(std::move(value)); return *this; }
107
109
112 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const{ return m_outputSchemas; }
113 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
114 inline void SetOutputSchemas(const Aws::Vector<GlueSchema>& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; }
115 inline void SetOutputSchemas(Aws::Vector<GlueSchema>&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); }
116 inline SparkSQL& WithOutputSchemas(const Aws::Vector<GlueSchema>& value) { SetOutputSchemas(value); return *this;}
117 inline SparkSQL& WithOutputSchemas(Aws::Vector<GlueSchema>&& value) { SetOutputSchemas(std::move(value)); return *this;}
118 inline SparkSQL& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; }
119 inline SparkSQL& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; }
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
127 bool m_inputsHasBeenSet = false;
128
129 Aws::String m_sqlQuery;
130 bool m_sqlQueryHasBeenSet = false;
131
132 Aws::Vector<SqlAlias> m_sqlAliases;
133 bool m_sqlAliasesHasBeenSet = false;
134
135 Aws::Vector<GlueSchema> m_outputSchemas;
136 bool m_outputSchemasHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Glue
141} // namespace Aws
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const char *value)
Definition SparkSQL.h:53
SparkSQL & AddInputs(Aws::String &&value)
Definition SparkSQL.h:72
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
Definition SparkSQL.h:112
SparkSQL & WithName(const char *value)
Definition SparkSQL.h:56
const Aws::String & GetSqlQuery() const
Definition SparkSQL.h:80
void SetName(Aws::String &&value)
Definition SparkSQL.h:52
void SetName(const Aws::String &value)
Definition SparkSQL.h:51
void SetSqlAliases(Aws::Vector< SqlAlias > &&value)
Definition SparkSQL.h:101
SparkSQL & WithInputs(Aws::Vector< Aws::String > &&value)
Definition SparkSQL.h:70
const Aws::Vector< SqlAlias > & GetSqlAliases() const
Definition SparkSQL.h:98
SparkSQL & AddInputs(const char *value)
Definition SparkSQL.h:73
void SetSqlQuery(Aws::String &&value)
Definition SparkSQL.h:83
void SetOutputSchemas(const Aws::Vector< GlueSchema > &value)
Definition SparkSQL.h:114
SparkSQL & AddSqlAliases(const SqlAlias &value)
Definition SparkSQL.h:104
SparkSQL & WithOutputSchemas(const Aws::Vector< GlueSchema > &value)
Definition SparkSQL.h:116
SparkSQL & AddOutputSchemas(GlueSchema &&value)
Definition SparkSQL.h:119
void SetOutputSchemas(Aws::Vector< GlueSchema > &&value)
Definition SparkSQL.h:115
bool NameHasBeenSet() const
Definition SparkSQL.h:50
SparkSQL & WithName(Aws::String &&value)
Definition SparkSQL.h:55
const Aws::String & GetName() const
Definition SparkSQL.h:49
SparkSQL & WithSqlQuery(const Aws::String &value)
Definition SparkSQL.h:85
bool SqlQueryHasBeenSet() const
Definition SparkSQL.h:81
bool InputsHasBeenSet() const
Definition SparkSQL.h:66
bool OutputSchemasHasBeenSet() const
Definition SparkSQL.h:113
SparkSQL & AddOutputSchemas(const GlueSchema &value)
Definition SparkSQL.h:118
const Aws::Vector< Aws::String > & GetInputs() const
Definition SparkSQL.h:65
void SetSqlAliases(const Aws::Vector< SqlAlias > &value)
Definition SparkSQL.h:100
void SetInputs(const Aws::Vector< Aws::String > &value)
Definition SparkSQL.h:67
void SetInputs(Aws::Vector< Aws::String > &&value)
Definition SparkSQL.h:68
AWS_GLUE_API SparkSQL(Aws::Utils::Json::JsonView jsonValue)
void SetSqlQuery(const Aws::String &value)
Definition SparkSQL.h:82
SparkSQL & AddInputs(const Aws::String &value)
Definition SparkSQL.h:71
void SetSqlQuery(const char *value)
Definition SparkSQL.h:84
SparkSQL & AddSqlAliases(SqlAlias &&value)
Definition SparkSQL.h:105
SparkSQL & WithSqlAliases(const Aws::Vector< SqlAlias > &value)
Definition SparkSQL.h:102
SparkSQL & WithSqlAliases(Aws::Vector< SqlAlias > &&value)
Definition SparkSQL.h:103
SparkSQL & WithOutputSchemas(Aws::Vector< GlueSchema > &&value)
Definition SparkSQL.h:117
AWS_GLUE_API SparkSQL & operator=(Aws::Utils::Json::JsonView jsonValue)
SparkSQL & WithSqlQuery(Aws::String &&value)
Definition SparkSQL.h:86
SparkSQL & WithName(const Aws::String &value)
Definition SparkSQL.h:54
SparkSQL & WithInputs(const Aws::Vector< Aws::String > &value)
Definition SparkSQL.h:69
SparkSQL & WithSqlQuery(const char *value)
Definition SparkSQL.h:87
bool SqlAliasesHasBeenSet() const
Definition SparkSQL.h:99
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue