AWS SDK for C++  1.9.105
AWS SDK for C++
QueryExecution.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace Athena
28 {
29 namespace Model
30 {
31 
39  {
40  public:
45 
46 
50  inline const Aws::String& GetQueryExecutionId() const{ return m_queryExecutionId; }
51 
55  inline bool QueryExecutionIdHasBeenSet() const { return m_queryExecutionIdHasBeenSet; }
56 
60  inline void SetQueryExecutionId(const Aws::String& value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId = value; }
61 
65  inline void SetQueryExecutionId(Aws::String&& value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId = std::move(value); }
66 
70  inline void SetQueryExecutionId(const char* value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId.assign(value); }
71 
75  inline QueryExecution& WithQueryExecutionId(const Aws::String& value) { SetQueryExecutionId(value); return *this;}
76 
80  inline QueryExecution& WithQueryExecutionId(Aws::String&& value) { SetQueryExecutionId(std::move(value)); return *this;}
81 
85  inline QueryExecution& WithQueryExecutionId(const char* value) { SetQueryExecutionId(value); return *this;}
86 
87 
91  inline const Aws::String& GetQuery() const{ return m_query; }
92 
96  inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
97 
101  inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
102 
106  inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
107 
111  inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
112 
116  inline QueryExecution& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
117 
121  inline QueryExecution& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
122 
126  inline QueryExecution& WithQuery(const char* value) { SetQuery(value); return *this;}
127 
128 
136  inline const StatementType& GetStatementType() const{ return m_statementType; }
137 
145  inline bool StatementTypeHasBeenSet() const { return m_statementTypeHasBeenSet; }
146 
154  inline void SetStatementType(const StatementType& value) { m_statementTypeHasBeenSet = true; m_statementType = value; }
155 
163  inline void SetStatementType(StatementType&& value) { m_statementTypeHasBeenSet = true; m_statementType = std::move(value); }
164 
172  inline QueryExecution& WithStatementType(const StatementType& value) { SetStatementType(value); return *this;}
173 
181  inline QueryExecution& WithStatementType(StatementType&& value) { SetStatementType(std::move(value)); return *this;}
182 
183 
191  inline const ResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; }
192 
200  inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; }
201 
209  inline void SetResultConfiguration(const ResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; }
210 
218  inline void SetResultConfiguration(ResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); }
219 
227  inline QueryExecution& WithResultConfiguration(const ResultConfiguration& value) { SetResultConfiguration(value); return *this;}
228 
236  inline QueryExecution& WithResultConfiguration(ResultConfiguration&& value) { SetResultConfiguration(std::move(value)); return *this;}
237 
238 
242  inline const QueryExecutionContext& GetQueryExecutionContext() const{ return m_queryExecutionContext; }
243 
247  inline bool QueryExecutionContextHasBeenSet() const { return m_queryExecutionContextHasBeenSet; }
248 
252  inline void SetQueryExecutionContext(const QueryExecutionContext& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = value; }
253 
257  inline void SetQueryExecutionContext(QueryExecutionContext&& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = std::move(value); }
258 
262  inline QueryExecution& WithQueryExecutionContext(const QueryExecutionContext& value) { SetQueryExecutionContext(value); return *this;}
263 
267  inline QueryExecution& WithQueryExecutionContext(QueryExecutionContext&& value) { SetQueryExecutionContext(std::move(value)); return *this;}
268 
269 
274  inline const QueryExecutionStatus& GetStatus() const{ return m_status; }
275 
280  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
281 
286  inline void SetStatus(const QueryExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
287 
292  inline void SetStatus(QueryExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
293 
298  inline QueryExecution& WithStatus(const QueryExecutionStatus& value) { SetStatus(value); return *this;}
299 
304  inline QueryExecution& WithStatus(QueryExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
305 
306 
311  inline const QueryExecutionStatistics& GetStatistics() const{ return m_statistics; }
312 
317  inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
318 
323  inline void SetStatistics(const QueryExecutionStatistics& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
324 
329  inline void SetStatistics(QueryExecutionStatistics&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
330 
335  inline QueryExecution& WithStatistics(const QueryExecutionStatistics& value) { SetStatistics(value); return *this;}
336 
341  inline QueryExecution& WithStatistics(QueryExecutionStatistics&& value) { SetStatistics(std::move(value)); return *this;}
342 
343 
347  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
348 
352  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
353 
357  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
358 
362  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
363 
367  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
368 
372  inline QueryExecution& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
373 
377  inline QueryExecution& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
378 
382  inline QueryExecution& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
383 
384 
388  inline const EngineVersion& GetEngineVersion() const{ return m_engineVersion; }
389 
393  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
394 
398  inline void SetEngineVersion(const EngineVersion& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
399 
403  inline void SetEngineVersion(EngineVersion&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
404 
408  inline QueryExecution& WithEngineVersion(const EngineVersion& value) { SetEngineVersion(value); return *this;}
409 
413  inline QueryExecution& WithEngineVersion(EngineVersion&& value) { SetEngineVersion(std::move(value)); return *this;}
414 
415  private:
416 
417  Aws::String m_queryExecutionId;
418  bool m_queryExecutionIdHasBeenSet;
419 
420  Aws::String m_query;
421  bool m_queryHasBeenSet;
422 
423  StatementType m_statementType;
424  bool m_statementTypeHasBeenSet;
425 
426  ResultConfiguration m_resultConfiguration;
427  bool m_resultConfigurationHasBeenSet;
428 
429  QueryExecutionContext m_queryExecutionContext;
430  bool m_queryExecutionContextHasBeenSet;
431 
432  QueryExecutionStatus m_status;
433  bool m_statusHasBeenSet;
434 
435  QueryExecutionStatistics m_statistics;
436  bool m_statisticsHasBeenSet;
437 
438  Aws::String m_workGroup;
439  bool m_workGroupHasBeenSet;
440 
441  EngineVersion m_engineVersion;
442  bool m_engineVersionHasBeenSet;
443  };
444 
445 } // namespace Model
446 } // namespace Athena
447 } // namespace Aws
Aws::Athena::Model::QueryExecution::GetStatementType
const StatementType & GetStatementType() const
Definition: QueryExecution.h:136
QueryExecutionStatistics.h
Aws::Athena::Model::QueryExecution::QueryExecution
QueryExecution(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::QueryExecution::SetQueryExecutionContext
void SetQueryExecutionContext(const QueryExecutionContext &value)
Definition: QueryExecution.h:252
Aws::Athena::Model::QueryExecution::WithWorkGroup
QueryExecution & WithWorkGroup(const char *value)
Definition: QueryExecution.h:382
Aws::Athena::Model::QueryExecution::WithStatementType
QueryExecution & WithStatementType(const StatementType &value)
Definition: QueryExecution.h:172
Aws::Athena::Model::QueryExecution::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: QueryExecution.h:347
Aws::Athena::Model::QueryExecution::SetStatementType
void SetStatementType(StatementType &&value)
Definition: QueryExecution.h:163
Aws::Athena::Model::QueryExecution::SetEngineVersion
void SetEngineVersion(const EngineVersion &value)
Definition: QueryExecution.h:398
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::QueryExecution::WithStatus
QueryExecution & WithStatus(const QueryExecutionStatus &value)
Definition: QueryExecution.h:298
Aws::Athena::Model::QueryExecution::WithStatistics
QueryExecution & WithStatistics(const QueryExecutionStatistics &value)
Definition: QueryExecution.h:335
Aws::Athena::Model::QueryExecution::QueryHasBeenSet
bool QueryHasBeenSet() const
Definition: QueryExecution.h:96
Aws::Athena::Model::QueryExecution::ResultConfigurationHasBeenSet
bool ResultConfigurationHasBeenSet() const
Definition: QueryExecution.h:200
Aws::Athena::Model::QueryExecution::QueryExecutionIdHasBeenSet
bool QueryExecutionIdHasBeenSet() const
Definition: QueryExecution.h:55
Aws::Athena::Model::QueryExecution::WithEngineVersion
QueryExecution & WithEngineVersion(EngineVersion &&value)
Definition: QueryExecution.h:413
Aws::Athena::Model::QueryExecution::WithQueryExecutionContext
QueryExecution & WithQueryExecutionContext(const QueryExecutionContext &value)
Definition: QueryExecution.h:262
Aws::Athena::Model::EngineVersion
Definition: EngineVersion.h:32
Aws::Athena::Model::QueryExecution::SetResultConfiguration
void SetResultConfiguration(const ResultConfiguration &value)
Definition: QueryExecution.h:209
Aws::Athena::Model::QueryExecution::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: QueryExecution.h:280
Aws::Athena::Model::QueryExecution::GetStatistics
const QueryExecutionStatistics & GetStatistics() const
Definition: QueryExecution.h:311
Aws::Athena::Model::QueryExecution::GetQueryExecutionContext
const QueryExecutionContext & GetQueryExecutionContext() const
Definition: QueryExecution.h:242
Aws::Athena::Model::QueryExecution::SetQuery
void SetQuery(const char *value)
Definition: QueryExecution.h:111
Aws::Athena::Model::ResultConfiguration
Definition: ResultConfiguration.h:36
Aws::Athena::Model::QueryExecution::WithQueryExecutionId
QueryExecution & WithQueryExecutionId(Aws::String &&value)
Definition: QueryExecution.h:80
Aws::Athena::Model::QueryExecution::WithResultConfiguration
QueryExecution & WithResultConfiguration(ResultConfiguration &&value)
Definition: QueryExecution.h:236
QueryExecutionContext.h
Aws::Athena::Model::QueryExecution::SetStatistics
void SetStatistics(QueryExecutionStatistics &&value)
Definition: QueryExecution.h:329
Aws::Athena::Model::QueryExecutionStatistics
Definition: QueryExecutionStatistics.h:34
Aws::Athena::Model::QueryExecution::WithStatistics
QueryExecution & WithStatistics(QueryExecutionStatistics &&value)
Definition: QueryExecution.h:341
Aws::Athena::Model::QueryExecution::SetQueryExecutionContext
void SetQueryExecutionContext(QueryExecutionContext &&value)
Definition: QueryExecution.h:257
Aws::Athena::Model::QueryExecution::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::QueryExecution::WithQuery
QueryExecution & WithQuery(const char *value)
Definition: QueryExecution.h:126
Aws::Athena::Model::QueryExecution::QueryExecution
QueryExecution()
Aws::Athena::Model::QueryExecution::GetStatus
const QueryExecutionStatus & GetStatus() const
Definition: QueryExecution.h:274
Aws::Athena::Model::QueryExecution::SetStatus
void SetStatus(const QueryExecutionStatus &value)
Definition: QueryExecution.h:286
Aws::Athena::Model::QueryExecution::StatementTypeHasBeenSet
bool StatementTypeHasBeenSet() const
Definition: QueryExecution.h:145
Aws::Athena::Model::QueryExecution::WithEngineVersion
QueryExecution & WithEngineVersion(const EngineVersion &value)
Definition: QueryExecution.h:408
Aws::Athena::Model::QueryExecution::WithQueryExecutionId
QueryExecution & WithQueryExecutionId(const Aws::String &value)
Definition: QueryExecution.h:75
Aws::Athena::Model::QueryExecution::GetResultConfiguration
const ResultConfiguration & GetResultConfiguration() const
Definition: QueryExecution.h:191
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Athena::Model::QueryExecution::GetQuery
const Aws::String & GetQuery() const
Definition: QueryExecution.h:91
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::QueryExecution::EngineVersionHasBeenSet
bool EngineVersionHasBeenSet() const
Definition: QueryExecution.h:393
Aws::Athena::Model::QueryExecution
Definition: QueryExecution.h:39
Aws::Athena::Model::QueryExecution::WithQueryExecutionId
QueryExecution & WithQueryExecutionId(const char *value)
Definition: QueryExecution.h:85
Aws::Athena::Model::StatementType
StatementType
Definition: StatementType.h:17
Aws::Athena::Model::QueryExecution::WithStatus
QueryExecution & WithStatus(QueryExecutionStatus &&value)
Definition: QueryExecution.h:304
Aws::Athena::Model::QueryExecution::SetResultConfiguration
void SetResultConfiguration(ResultConfiguration &&value)
Definition: QueryExecution.h:218
Aws::Athena::Model::QueryExecution::SetEngineVersion
void SetEngineVersion(EngineVersion &&value)
Definition: QueryExecution.h:403
Aws::Athena::Model::QueryExecution::WithQuery
QueryExecution & WithQuery(const Aws::String &value)
Definition: QueryExecution.h:116
StatementType.h
Aws::Athena::Model::QueryExecution::GetQueryExecutionId
const Aws::String & GetQueryExecutionId() const
Definition: QueryExecution.h:50
Aws::Athena::Model::QueryExecution::SetQueryExecutionId
void SetQueryExecutionId(const Aws::String &value)
Definition: QueryExecution.h:60
Aws::Athena::Model::QueryExecution::WithWorkGroup
QueryExecution & WithWorkGroup(Aws::String &&value)
Definition: QueryExecution.h:377
Aws::Athena::Model::QueryExecution::StatisticsHasBeenSet
bool StatisticsHasBeenSet() const
Definition: QueryExecution.h:317
Aws::Athena::Model::QueryExecution::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: QueryExecution.h:367
Aws::Athena::Model::QueryExecution::SetStatus
void SetStatus(QueryExecutionStatus &&value)
Definition: QueryExecution.h:292
Aws::Athena::Model::QueryExecution::WithQuery
QueryExecution & WithQuery(Aws::String &&value)
Definition: QueryExecution.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::QueryExecution::operator=
QueryExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::QueryExecution::QueryExecutionContextHasBeenSet
bool QueryExecutionContextHasBeenSet() const
Definition: QueryExecution.h:247
Aws::Athena::Model::QueryExecution::WithResultConfiguration
QueryExecution & WithResultConfiguration(const ResultConfiguration &value)
Definition: QueryExecution.h:227
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::QueryExecution::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: QueryExecution.h:357
QueryExecutionStatus.h
Aws::Athena::Model::QueryExecution::SetQueryExecutionId
void SetQueryExecutionId(Aws::String &&value)
Definition: QueryExecution.h:65
Aws::Athena::Model::QueryExecution::GetEngineVersion
const EngineVersion & GetEngineVersion() const
Definition: QueryExecution.h:388
Aws::Athena::Model::QueryExecution::SetStatistics
void SetStatistics(const QueryExecutionStatistics &value)
Definition: QueryExecution.h:323
Aws::Athena::Model::QueryExecution::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: QueryExecution.h:352
Aws::Athena::Model::QueryExecution::SetStatementType
void SetStatementType(const StatementType &value)
Definition: QueryExecution.h:154
Aws::Athena::Model::QueryExecution::WithWorkGroup
QueryExecution & WithWorkGroup(const Aws::String &value)
Definition: QueryExecution.h:372
Aws::Athena::Model::QueryExecutionContext
Definition: QueryExecutionContext.h:33
Aws::Athena::Model::QueryExecution::SetQuery
void SetQuery(Aws::String &&value)
Definition: QueryExecution.h:106
ResultConfiguration.h
Aws::Athena::Model::QueryExecution::SetQuery
void SetQuery(const Aws::String &value)
Definition: QueryExecution.h:101
Aws::Athena::Model::QueryExecution::SetQueryExecutionId
void SetQueryExecutionId(const char *value)
Definition: QueryExecution.h:70
Aws::Athena::Model::QueryExecution::WithQueryExecutionContext
QueryExecution & WithQueryExecutionContext(QueryExecutionContext &&value)
Definition: QueryExecution.h:267
Aws::Athena::Model::QueryExecution::WithStatementType
QueryExecution & WithStatementType(StatementType &&value)
Definition: QueryExecution.h:181
EngineVersion.h
Aws::Athena::Model::QueryExecutionStatus
Definition: QueryExecutionStatus.h:35
Aws::Athena::Model::QueryExecution::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: QueryExecution.h:362