AWS SDK for C++  1.9.154
AWS SDK for C++
CustomSql.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace QuickSight
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetDataSourceArn() const{ return m_dataSourceArn; }
47 
51  inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
52 
56  inline void SetDataSourceArn(const Aws::String& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = value; }
57 
61  inline void SetDataSourceArn(Aws::String&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::move(value); }
62 
66  inline void SetDataSourceArn(const char* value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn.assign(value); }
67 
71  inline CustomSql& WithDataSourceArn(const Aws::String& value) { SetDataSourceArn(value); return *this;}
72 
76  inline CustomSql& WithDataSourceArn(Aws::String&& value) { SetDataSourceArn(std::move(value)); return *this;}
77 
81  inline CustomSql& WithDataSourceArn(const char* value) { SetDataSourceArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline CustomSql& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline CustomSql& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline CustomSql& WithName(const char* value) { SetName(value); return *this;}
123 
124 
128  inline const Aws::String& GetSqlQuery() const{ return m_sqlQuery; }
129 
133  inline bool SqlQueryHasBeenSet() const { return m_sqlQueryHasBeenSet; }
134 
138  inline void SetSqlQuery(const Aws::String& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = value; }
139 
143  inline void SetSqlQuery(Aws::String&& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = std::move(value); }
144 
148  inline void SetSqlQuery(const char* value) { m_sqlQueryHasBeenSet = true; m_sqlQuery.assign(value); }
149 
153  inline CustomSql& WithSqlQuery(const Aws::String& value) { SetSqlQuery(value); return *this;}
154 
158  inline CustomSql& WithSqlQuery(Aws::String&& value) { SetSqlQuery(std::move(value)); return *this;}
159 
163  inline CustomSql& WithSqlQuery(const char* value) { SetSqlQuery(value); return *this;}
164 
165 
169  inline const Aws::Vector<InputColumn>& GetColumns() const{ return m_columns; }
170 
174  inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
175 
179  inline void SetColumns(const Aws::Vector<InputColumn>& value) { m_columnsHasBeenSet = true; m_columns = value; }
180 
184  inline void SetColumns(Aws::Vector<InputColumn>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
185 
189  inline CustomSql& WithColumns(const Aws::Vector<InputColumn>& value) { SetColumns(value); return *this;}
190 
194  inline CustomSql& WithColumns(Aws::Vector<InputColumn>&& value) { SetColumns(std::move(value)); return *this;}
195 
199  inline CustomSql& AddColumns(const InputColumn& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
200 
204  inline CustomSql& AddColumns(InputColumn&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
205 
206  private:
207 
208  Aws::String m_dataSourceArn;
209  bool m_dataSourceArnHasBeenSet;
210 
211  Aws::String m_name;
212  bool m_nameHasBeenSet;
213 
214  Aws::String m_sqlQuery;
215  bool m_sqlQueryHasBeenSet;
216 
217  Aws::Vector<InputColumn> m_columns;
218  bool m_columnsHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace QuickSight
223 } // namespace Aws
Aws::QuickSight::Model::CustomSql::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CustomSql.h:92
Aws::QuickSight::Model::CustomSql::WithName
CustomSql & WithName(Aws::String &&value)
Definition: CustomSql.h:117
Aws::QuickSight::Model::CustomSql::WithName
CustomSql & WithName(const Aws::String &value)
Definition: CustomSql.h:112
InputColumn.h
QuickSight_EXPORTS.h
Aws::QuickSight::Model::CustomSql::CustomSql
CustomSql()
Aws::QuickSight::Model::CustomSql::WithSqlQuery
CustomSql & WithSqlQuery(const Aws::String &value)
Definition: CustomSql.h:153
Aws::QuickSight::Model::InputColumn
Definition: InputColumn.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::CustomSql::SetColumns
void SetColumns(const Aws::Vector< InputColumn > &value)
Definition: CustomSql.h:179
Aws::QuickSight::Model::CustomSql::SetSqlQuery
void SetSqlQuery(Aws::String &&value)
Definition: CustomSql.h:143
Aws::QuickSight::Model::CustomSql::SetName
void SetName(const Aws::String &value)
Definition: CustomSql.h:97
AWSVector.h
Aws::QuickSight::Model::CustomSql::GetColumns
const Aws::Vector< InputColumn > & GetColumns() const
Definition: CustomSql.h:169
Aws::QuickSight::Model::CustomSql::AddColumns
CustomSql & AddColumns(InputColumn &&value)
Definition: CustomSql.h:204
Aws::QuickSight::Model::CustomSql::WithSqlQuery
CustomSql & WithSqlQuery(Aws::String &&value)
Definition: CustomSql.h:158
Aws::QuickSight::Model::CustomSql::WithDataSourceArn
CustomSql & WithDataSourceArn(const Aws::String &value)
Definition: CustomSql.h:71
Aws::QuickSight::Model::CustomSql::SetSqlQuery
void SetSqlQuery(const char *value)
Definition: CustomSql.h:148
Aws::QuickSight::Model::CustomSql::SetDataSourceArn
void SetDataSourceArn(const char *value)
Definition: CustomSql.h:66
Aws::QuickSight::Model::CustomSql::SqlQueryHasBeenSet
bool SqlQueryHasBeenSet() const
Definition: CustomSql.h:133
Aws::QuickSight::Model::CustomSql::SetDataSourceArn
void SetDataSourceArn(const Aws::String &value)
Definition: CustomSql.h:56
Aws::QuickSight::Model::CustomSql::WithDataSourceArn
CustomSql & WithDataSourceArn(Aws::String &&value)
Definition: CustomSql.h:76
Aws::QuickSight::Model::CustomSql::AddColumns
CustomSql & AddColumns(const InputColumn &value)
Definition: CustomSql.h:199
Aws::QuickSight::Model::CustomSql::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::QuickSight::Model::CustomSql::GetDataSourceArn
const Aws::String & GetDataSourceArn() const
Definition: CustomSql.h:46
Aws::QuickSight::Model::CustomSql::SetDataSourceArn
void SetDataSourceArn(Aws::String &&value)
Definition: CustomSql.h:61
Aws::QuickSight::Model::CustomSql::WithColumns
CustomSql & WithColumns(Aws::Vector< InputColumn > &&value)
Definition: CustomSql.h:194
Aws::QuickSight::Model::CustomSql::WithColumns
CustomSql & WithColumns(const Aws::Vector< InputColumn > &value)
Definition: CustomSql.h:189
Aws::QuickSight::Model::CustomSql::operator=
CustomSql & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::CustomSql::GetSqlQuery
const Aws::String & GetSqlQuery() const
Definition: CustomSql.h:128
Aws::QuickSight::Model::CustomSql
Definition: CustomSql.h:35
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::CustomSql::ColumnsHasBeenSet
bool ColumnsHasBeenSet() const
Definition: CustomSql.h:174
Aws::QuickSight::Model::CustomSql::CustomSql
CustomSql(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::CustomSql::WithSqlQuery
CustomSql & WithSqlQuery(const char *value)
Definition: CustomSql.h:163
Aws::QuickSight::Model::CustomSql::WithDataSourceArn
CustomSql & WithDataSourceArn(const char *value)
Definition: CustomSql.h:81
Aws::QuickSight::Model::CustomSql::SetName
void SetName(Aws::String &&value)
Definition: CustomSql.h:102
Aws::QuickSight::Model::CustomSql::SetSqlQuery
void SetSqlQuery(const Aws::String &value)
Definition: CustomSql.h:138
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::CustomSql::SetName
void SetName(const char *value)
Definition: CustomSql.h:107
Aws::QuickSight::Model::CustomSql::GetName
const Aws::String & GetName() const
Definition: CustomSql.h:87
Aws::QuickSight::Model::CustomSql::WithName
CustomSql & WithName(const char *value)
Definition: CustomSql.h:122
Aws::QuickSight::Model::CustomSql::SetColumns
void SetColumns(Aws::Vector< InputColumn > &&value)
Definition: CustomSql.h:184
Aws::QuickSight::Model::CustomSql::DataSourceArnHasBeenSet
bool DataSourceArnHasBeenSet() const
Definition: CustomSql.h:51