AWS SDK for C++  1.9.104
AWS SDK for C++
PreparedStatement.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Athena
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetStatementName() const{ return m_statementName; }
45 
49  inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
50 
54  inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; }
55 
59  inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); }
60 
64  inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); }
65 
69  inline PreparedStatement& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;}
70 
74  inline PreparedStatement& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;}
75 
79  inline PreparedStatement& WithStatementName(const char* value) { SetStatementName(value); return *this;}
80 
81 
85  inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; }
86 
90  inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
91 
95  inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; }
96 
100  inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); }
101 
105  inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); }
106 
110  inline PreparedStatement& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;}
111 
115  inline PreparedStatement& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;}
116 
120  inline PreparedStatement& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;}
121 
122 
126  inline const Aws::String& GetWorkGroupName() const{ return m_workGroupName; }
127 
131  inline bool WorkGroupNameHasBeenSet() const { return m_workGroupNameHasBeenSet; }
132 
136  inline void SetWorkGroupName(const Aws::String& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = value; }
137 
141  inline void SetWorkGroupName(Aws::String&& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = std::move(value); }
142 
146  inline void SetWorkGroupName(const char* value) { m_workGroupNameHasBeenSet = true; m_workGroupName.assign(value); }
147 
151  inline PreparedStatement& WithWorkGroupName(const Aws::String& value) { SetWorkGroupName(value); return *this;}
152 
156  inline PreparedStatement& WithWorkGroupName(Aws::String&& value) { SetWorkGroupName(std::move(value)); return *this;}
157 
161  inline PreparedStatement& WithWorkGroupName(const char* value) { SetWorkGroupName(value); return *this;}
162 
163 
167  inline const Aws::String& GetDescription() const{ return m_description; }
168 
172  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
173 
177  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
178 
182  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
183 
187  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
188 
192  inline PreparedStatement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
193 
197  inline PreparedStatement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
198 
202  inline PreparedStatement& WithDescription(const char* value) { SetDescription(value); return *this;}
203 
204 
208  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
209 
213  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
214 
218  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
219 
223  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
224 
228  inline PreparedStatement& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
229 
233  inline PreparedStatement& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
234 
235  private:
236 
237  Aws::String m_statementName;
238  bool m_statementNameHasBeenSet;
239 
240  Aws::String m_queryStatement;
241  bool m_queryStatementHasBeenSet;
242 
243  Aws::String m_workGroupName;
244  bool m_workGroupNameHasBeenSet;
245 
246  Aws::String m_description;
247  bool m_descriptionHasBeenSet;
248 
249  Aws::Utils::DateTime m_lastModifiedTime;
250  bool m_lastModifiedTimeHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace Athena
255 } // namespace Aws
Aws::Athena::Model::PreparedStatement
Definition: PreparedStatement.h:33
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Athena::Model::PreparedStatement::WithLastModifiedTime
PreparedStatement & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: PreparedStatement.h:233
Aws::Athena::Model::PreparedStatement::WithQueryStatement
PreparedStatement & WithQueryStatement(const Aws::String &value)
Definition: PreparedStatement.h:110
Aws::Athena::Model::PreparedStatement::GetDescription
const Aws::String & GetDescription() const
Definition: PreparedStatement.h:167
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::PreparedStatement::SetWorkGroupName
void SetWorkGroupName(Aws::String &&value)
Definition: PreparedStatement.h:141
Aws::Athena::Model::PreparedStatement::QueryStatementHasBeenSet
bool QueryStatementHasBeenSet() const
Definition: PreparedStatement.h:90
Aws::Athena::Model::PreparedStatement::StatementNameHasBeenSet
bool StatementNameHasBeenSet() const
Definition: PreparedStatement.h:49
DateTime.h
Aws::Athena::Model::PreparedStatement::PreparedStatement
PreparedStatement()
Aws::Athena::Model::PreparedStatement::WithWorkGroupName
PreparedStatement & WithWorkGroupName(const char *value)
Definition: PreparedStatement.h:161
Aws::Athena::Model::PreparedStatement::WithStatementName
PreparedStatement & WithStatementName(const Aws::String &value)
Definition: PreparedStatement.h:69
Aws::Athena::Model::PreparedStatement::GetWorkGroupName
const Aws::String & GetWorkGroupName() const
Definition: PreparedStatement.h:126
Aws::Athena::Model::PreparedStatement::SetStatementName
void SetStatementName(Aws::String &&value)
Definition: PreparedStatement.h:59
Aws::Athena::Model::PreparedStatement::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PreparedStatement.h:172
Aws::Athena::Model::PreparedStatement::WithWorkGroupName
PreparedStatement & WithWorkGroupName(const Aws::String &value)
Definition: PreparedStatement.h:151
Aws::Athena::Model::PreparedStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::PreparedStatement::WithLastModifiedTime
PreparedStatement & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: PreparedStatement.h:228
Aws::Athena::Model::PreparedStatement::SetLastModifiedTime
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: PreparedStatement.h:223
Aws::Athena::Model::PreparedStatement::SetDescription
void SetDescription(Aws::String &&value)
Definition: PreparedStatement.h:182
Aws::Athena::Model::PreparedStatement::PreparedStatement
PreparedStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::PreparedStatement::SetLastModifiedTime
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: PreparedStatement.h:218
Aws::Athena::Model::PreparedStatement::SetWorkGroupName
void SetWorkGroupName(const Aws::String &value)
Definition: PreparedStatement.h:136
Aws::Athena::Model::PreparedStatement::WithStatementName
PreparedStatement & WithStatementName(const char *value)
Definition: PreparedStatement.h:79
Aws::Athena::Model::PreparedStatement::WithDescription
PreparedStatement & WithDescription(const Aws::String &value)
Definition: PreparedStatement.h:192
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::PreparedStatement::operator=
PreparedStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::PreparedStatement::SetWorkGroupName
void SetWorkGroupName(const char *value)
Definition: PreparedStatement.h:146
Aws::Athena::Model::PreparedStatement::SetStatementName
void SetStatementName(const Aws::String &value)
Definition: PreparedStatement.h:54
Aws::Athena::Model::PreparedStatement::SetStatementName
void SetStatementName(const char *value)
Definition: PreparedStatement.h:64
Aws::Athena::Model::PreparedStatement::WithQueryStatement
PreparedStatement & WithQueryStatement(Aws::String &&value)
Definition: PreparedStatement.h:115
Aws::Athena::Model::PreparedStatement::GetQueryStatement
const Aws::String & GetQueryStatement() const
Definition: PreparedStatement.h:85
Aws::Athena::Model::PreparedStatement::SetDescription
void SetDescription(const Aws::String &value)
Definition: PreparedStatement.h:177
Aws::Athena::Model::PreparedStatement::SetQueryStatement
void SetQueryStatement(const Aws::String &value)
Definition: PreparedStatement.h:95
Aws::Athena::Model::PreparedStatement::GetStatementName
const Aws::String & GetStatementName() const
Definition: PreparedStatement.h:44
Aws::Athena::Model::PreparedStatement::GetLastModifiedTime
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: PreparedStatement.h:208
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::PreparedStatement::WithQueryStatement
PreparedStatement & WithQueryStatement(const char *value)
Definition: PreparedStatement.h:120
Aws::Athena::Model::PreparedStatement::WithStatementName
PreparedStatement & WithStatementName(Aws::String &&value)
Definition: PreparedStatement.h:74
Aws::Athena::Model::PreparedStatement::SetQueryStatement
void SetQueryStatement(const char *value)
Definition: PreparedStatement.h:105
Aws::Athena::Model::PreparedStatement::SetDescription
void SetDescription(const char *value)
Definition: PreparedStatement.h:187
Aws::Athena::Model::PreparedStatement::WithDescription
PreparedStatement & WithDescription(Aws::String &&value)
Definition: PreparedStatement.h:197
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::PreparedStatement::SetQueryStatement
void SetQueryStatement(Aws::String &&value)
Definition: PreparedStatement.h:100
Aws::Athena::Model::PreparedStatement::LastModifiedTimeHasBeenSet
bool LastModifiedTimeHasBeenSet() const
Definition: PreparedStatement.h:213
Aws::Athena::Model::PreparedStatement::WithDescription
PreparedStatement & WithDescription(const char *value)
Definition: PreparedStatement.h:202
Aws::Athena::Model::PreparedStatement::WorkGroupNameHasBeenSet
bool WorkGroupNameHasBeenSet() const
Definition: PreparedStatement.h:131
Aws::Athena::Model::PreparedStatement::WithWorkGroupName
PreparedStatement & WithWorkGroupName(Aws::String &&value)
Definition: PreparedStatement.h:156