AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomSql.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/InputColumn.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 QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QUICKSIGHT_API CustomSql();
38 AWS_QUICKSIGHT_API CustomSql(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API CustomSql& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDataSourceArn() const{ return m_dataSourceArn; }
48 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
49 inline void SetDataSourceArn(const Aws::String& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = value; }
50 inline void SetDataSourceArn(Aws::String&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::move(value); }
51 inline void SetDataSourceArn(const char* value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn.assign(value); }
52 inline CustomSql& WithDataSourceArn(const Aws::String& value) { SetDataSourceArn(value); return *this;}
53 inline CustomSql& WithDataSourceArn(Aws::String&& value) { SetDataSourceArn(std::move(value)); return *this;}
54 inline CustomSql& WithDataSourceArn(const char* value) { SetDataSourceArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CustomSql& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CustomSql& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CustomSql& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetSqlQuery() const{ return m_sqlQuery; }
76 inline bool SqlQueryHasBeenSet() const { return m_sqlQueryHasBeenSet; }
77 inline void SetSqlQuery(const Aws::String& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = value; }
78 inline void SetSqlQuery(Aws::String&& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = std::move(value); }
79 inline void SetSqlQuery(const char* value) { m_sqlQueryHasBeenSet = true; m_sqlQuery.assign(value); }
80 inline CustomSql& WithSqlQuery(const Aws::String& value) { SetSqlQuery(value); return *this;}
81 inline CustomSql& WithSqlQuery(Aws::String&& value) { SetSqlQuery(std::move(value)); return *this;}
82 inline CustomSql& WithSqlQuery(const char* value) { SetSqlQuery(value); return *this;}
84
86
89 inline const Aws::Vector<InputColumn>& GetColumns() const{ return m_columns; }
90 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
91 inline void SetColumns(const Aws::Vector<InputColumn>& value) { m_columnsHasBeenSet = true; m_columns = value; }
92 inline void SetColumns(Aws::Vector<InputColumn>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
93 inline CustomSql& WithColumns(const Aws::Vector<InputColumn>& value) { SetColumns(value); return *this;}
94 inline CustomSql& WithColumns(Aws::Vector<InputColumn>&& value) { SetColumns(std::move(value)); return *this;}
95 inline CustomSql& AddColumns(const InputColumn& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
96 inline CustomSql& AddColumns(InputColumn&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_dataSourceArn;
101 bool m_dataSourceArnHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_sqlQuery;
107 bool m_sqlQueryHasBeenSet = false;
108
109 Aws::Vector<InputColumn> m_columns;
110 bool m_columnsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace QuickSight
115} // namespace Aws
void SetDataSourceArn(Aws::String &&value)
Definition CustomSql.h:50
CustomSql & WithDataSourceArn(Aws::String &&value)
Definition CustomSql.h:53
CustomSql & WithName(const char *value)
Definition CustomSql.h:68
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API CustomSql & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomSql & AddColumns(InputColumn &&value)
Definition CustomSql.h:96
CustomSql & AddColumns(const InputColumn &value)
Definition CustomSql.h:95
void SetColumns(Aws::Vector< InputColumn > &&value)
Definition CustomSql.h:92
CustomSql & WithName(const Aws::String &value)
Definition CustomSql.h:66
const Aws::String & GetSqlQuery() const
Definition CustomSql.h:75
CustomSql & WithColumns(Aws::Vector< InputColumn > &&value)
Definition CustomSql.h:94
CustomSql & WithName(Aws::String &&value)
Definition CustomSql.h:67
void SetDataSourceArn(const char *value)
Definition CustomSql.h:51
CustomSql & WithDataSourceArn(const Aws::String &value)
Definition CustomSql.h:52
const Aws::Vector< InputColumn > & GetColumns() const
Definition CustomSql.h:89
const Aws::String & GetName() const
Definition CustomSql.h:61
void SetDataSourceArn(const Aws::String &value)
Definition CustomSql.h:49
CustomSql & WithSqlQuery(Aws::String &&value)
Definition CustomSql.h:81
AWS_QUICKSIGHT_API CustomSql(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition CustomSql.h:65
AWS_QUICKSIGHT_API CustomSql()
CustomSql & WithDataSourceArn(const char *value)
Definition CustomSql.h:54
void SetSqlQuery(const char *value)
Definition CustomSql.h:79
void SetSqlQuery(Aws::String &&value)
Definition CustomSql.h:78
void SetName(Aws::String &&value)
Definition CustomSql.h:64
const Aws::String & GetDataSourceArn() const
Definition CustomSql.h:47
void SetName(const Aws::String &value)
Definition CustomSql.h:63
CustomSql & WithSqlQuery(const char *value)
Definition CustomSql.h:82
CustomSql & WithColumns(const Aws::Vector< InputColumn > &value)
Definition CustomSql.h:93
void SetColumns(const Aws::Vector< InputColumn > &value)
Definition CustomSql.h:91
CustomSql & WithSqlQuery(const Aws::String &value)
Definition CustomSql.h:80
void SetSqlQuery(const Aws::String &value)
Definition CustomSql.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue