/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a single instance of a query execution.See
* Also:
AWS
* API Reference
The unique identifier for each query execution.
*/ inline const Aws::String& GetQueryExecutionId() const{ return m_queryExecutionId; } /** *The unique identifier for each query execution.
*/ inline bool QueryExecutionIdHasBeenSet() const { return m_queryExecutionIdHasBeenSet; } /** *The unique identifier for each query execution.
*/ inline void SetQueryExecutionId(const Aws::String& value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId = value; } /** *The unique identifier for each query execution.
*/ inline void SetQueryExecutionId(Aws::String&& value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId = std::move(value); } /** *The unique identifier for each query execution.
*/ inline void SetQueryExecutionId(const char* value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId.assign(value); } /** *The unique identifier for each query execution.
*/ inline QueryExecution& WithQueryExecutionId(const Aws::String& value) { SetQueryExecutionId(value); return *this;} /** *The unique identifier for each query execution.
*/ inline QueryExecution& WithQueryExecutionId(Aws::String&& value) { SetQueryExecutionId(std::move(value)); return *this;} /** *The unique identifier for each query execution.
*/ inline QueryExecution& WithQueryExecutionId(const char* value) { SetQueryExecutionId(value); return *this;} /** *The SQL query statements which the query execution ran.
*/ inline const Aws::String& GetQuery() const{ return m_query; } /** *The SQL query statements which the query execution ran.
*/ inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; } /** *The SQL query statements which the query execution ran.
*/ inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; } /** *The SQL query statements which the query execution ran.
*/ inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); } /** *The SQL query statements which the query execution ran.
*/ inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); } /** *The SQL query statements which the query execution ran.
*/ inline QueryExecution& WithQuery(const Aws::String& value) { SetQuery(value); return *this;} /** *The SQL query statements which the query execution ran.
*/ inline QueryExecution& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;} /** *The SQL query statements which the query execution ran.
*/ inline QueryExecution& WithQuery(const char* value) { SetQuery(value); return *this;} /** *The type of query statement that was run. DDL
indicates DDL
* query statements. DML
indicates DML (Data Manipulation Language)
* query statements, such as CREATE TABLE AS SELECT
.
* UTILITY
indicates query statements other than DDL and DML, such as
* SHOW CREATE TABLE
, or DESCRIBE TABLE
.
The type of query statement that was run. DDL
indicates DDL
* query statements. DML
indicates DML (Data Manipulation Language)
* query statements, such as CREATE TABLE AS SELECT
.
* UTILITY
indicates query statements other than DDL and DML, such as
* SHOW CREATE TABLE
, or DESCRIBE TABLE
.
The type of query statement that was run. DDL
indicates DDL
* query statements. DML
indicates DML (Data Manipulation Language)
* query statements, such as CREATE TABLE AS SELECT
.
* UTILITY
indicates query statements other than DDL and DML, such as
* SHOW CREATE TABLE
, or DESCRIBE TABLE
.
The type of query statement that was run. DDL
indicates DDL
* query statements. DML
indicates DML (Data Manipulation Language)
* query statements, such as CREATE TABLE AS SELECT
.
* UTILITY
indicates query statements other than DDL and DML, such as
* SHOW CREATE TABLE
, or DESCRIBE TABLE
.
The type of query statement that was run. DDL
indicates DDL
* query statements. DML
indicates DML (Data Manipulation Language)
* query statements, such as CREATE TABLE AS SELECT
.
* UTILITY
indicates query statements other than DDL and DML, such as
* SHOW CREATE TABLE
, or DESCRIBE TABLE
.
The type of query statement that was run. DDL
indicates DDL
* query statements. DML
indicates DML (Data Manipulation Language)
* query statements, such as CREATE TABLE AS SELECT
.
* UTILITY
indicates query statements other than DDL and DML, such as
* SHOW CREATE TABLE
, or DESCRIBE TABLE
.
The location in Amazon S3 where query and calculation results are stored and * the encryption option, if any, used for query results. These are known as * "client-side settings". If workgroup settings override client-side settings, * then the query uses the location for the query results and the encryption * configuration that are specified for the workgroup.
*/ inline const ResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; } /** *The location in Amazon S3 where query and calculation results are stored and * the encryption option, if any, used for query results. These are known as * "client-side settings". If workgroup settings override client-side settings, * then the query uses the location for the query results and the encryption * configuration that are specified for the workgroup.
*/ inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; } /** *The location in Amazon S3 where query and calculation results are stored and * the encryption option, if any, used for query results. These are known as * "client-side settings". If workgroup settings override client-side settings, * then the query uses the location for the query results and the encryption * configuration that are specified for the workgroup.
*/ inline void SetResultConfiguration(const ResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; } /** *The location in Amazon S3 where query and calculation results are stored and * the encryption option, if any, used for query results. These are known as * "client-side settings". If workgroup settings override client-side settings, * then the query uses the location for the query results and the encryption * configuration that are specified for the workgroup.
*/ inline void SetResultConfiguration(ResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); } /** *The location in Amazon S3 where query and calculation results are stored and * the encryption option, if any, used for query results. These are known as * "client-side settings". If workgroup settings override client-side settings, * then the query uses the location for the query results and the encryption * configuration that are specified for the workgroup.
*/ inline QueryExecution& WithResultConfiguration(const ResultConfiguration& value) { SetResultConfiguration(value); return *this;} /** *The location in Amazon S3 where query and calculation results are stored and * the encryption option, if any, used for query results. These are known as * "client-side settings". If workgroup settings override client-side settings, * then the query uses the location for the query results and the encryption * configuration that are specified for the workgroup.
*/ inline QueryExecution& WithResultConfiguration(ResultConfiguration&& value) { SetResultConfiguration(std::move(value)); return *this;} /** *Specifies the query result reuse behavior that was used for the query.
*/ inline const ResultReuseConfiguration& GetResultReuseConfiguration() const{ return m_resultReuseConfiguration; } /** *Specifies the query result reuse behavior that was used for the query.
*/ inline bool ResultReuseConfigurationHasBeenSet() const { return m_resultReuseConfigurationHasBeenSet; } /** *Specifies the query result reuse behavior that was used for the query.
*/ inline void SetResultReuseConfiguration(const ResultReuseConfiguration& value) { m_resultReuseConfigurationHasBeenSet = true; m_resultReuseConfiguration = value; } /** *Specifies the query result reuse behavior that was used for the query.
*/ inline void SetResultReuseConfiguration(ResultReuseConfiguration&& value) { m_resultReuseConfigurationHasBeenSet = true; m_resultReuseConfiguration = std::move(value); } /** *Specifies the query result reuse behavior that was used for the query.
*/ inline QueryExecution& WithResultReuseConfiguration(const ResultReuseConfiguration& value) { SetResultReuseConfiguration(value); return *this;} /** *Specifies the query result reuse behavior that was used for the query.
*/ inline QueryExecution& WithResultReuseConfiguration(ResultReuseConfiguration&& value) { SetResultReuseConfiguration(std::move(value)); return *this;} /** *The database in which the query execution occurred.
*/ inline const QueryExecutionContext& GetQueryExecutionContext() const{ return m_queryExecutionContext; } /** *The database in which the query execution occurred.
*/ inline bool QueryExecutionContextHasBeenSet() const { return m_queryExecutionContextHasBeenSet; } /** *The database in which the query execution occurred.
*/ inline void SetQueryExecutionContext(const QueryExecutionContext& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = value; } /** *The database in which the query execution occurred.
*/ inline void SetQueryExecutionContext(QueryExecutionContext&& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = std::move(value); } /** *The database in which the query execution occurred.
*/ inline QueryExecution& WithQueryExecutionContext(const QueryExecutionContext& value) { SetQueryExecutionContext(value); return *this;} /** *The database in which the query execution occurred.
*/ inline QueryExecution& WithQueryExecutionContext(QueryExecutionContext&& value) { SetQueryExecutionContext(std::move(value)); return *this;} /** *The completion date, current state, submission time, and state change reason * (if applicable) for the query execution.
*/ inline const QueryExecutionStatus& GetStatus() const{ return m_status; } /** *The completion date, current state, submission time, and state change reason * (if applicable) for the query execution.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The completion date, current state, submission time, and state change reason * (if applicable) for the query execution.
*/ inline void SetStatus(const QueryExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The completion date, current state, submission time, and state change reason * (if applicable) for the query execution.
*/ inline void SetStatus(QueryExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The completion date, current state, submission time, and state change reason * (if applicable) for the query execution.
*/ inline QueryExecution& WithStatus(const QueryExecutionStatus& value) { SetStatus(value); return *this;} /** *The completion date, current state, submission time, and state change reason * (if applicable) for the query execution.
*/ inline QueryExecution& WithStatus(QueryExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *Query execution statistics, such as the amount of data scanned, the amount of * time that the query took to process, and the type of statement that was run.
*/ inline const QueryExecutionStatistics& GetStatistics() const{ return m_statistics; } /** *Query execution statistics, such as the amount of data scanned, the amount of * time that the query took to process, and the type of statement that was run.
*/ inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; } /** *Query execution statistics, such as the amount of data scanned, the amount of * time that the query took to process, and the type of statement that was run.
*/ inline void SetStatistics(const QueryExecutionStatistics& value) { m_statisticsHasBeenSet = true; m_statistics = value; } /** *Query execution statistics, such as the amount of data scanned, the amount of * time that the query took to process, and the type of statement that was run.
*/ inline void SetStatistics(QueryExecutionStatistics&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); } /** *Query execution statistics, such as the amount of data scanned, the amount of * time that the query took to process, and the type of statement that was run.
*/ inline QueryExecution& WithStatistics(const QueryExecutionStatistics& value) { SetStatistics(value); return *this;} /** *Query execution statistics, such as the amount of data scanned, the amount of * time that the query took to process, and the type of statement that was run.
*/ inline QueryExecution& WithStatistics(QueryExecutionStatistics&& value) { SetStatistics(std::move(value)); return *this;} /** *The name of the workgroup in which the query ran.
*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *The name of the workgroup in which the query ran.
*/ inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; } /** *The name of the workgroup in which the query ran.
*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; } /** *The name of the workgroup in which the query ran.
*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); } /** *The name of the workgroup in which the query ran.
*/ inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); } /** *The name of the workgroup in which the query ran.
*/ inline QueryExecution& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *The name of the workgroup in which the query ran.
*/ inline QueryExecution& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *The name of the workgroup in which the query ran.
*/ inline QueryExecution& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} /** *The engine version that executed the query.
*/ inline const EngineVersion& GetEngineVersion() const{ return m_engineVersion; } /** *The engine version that executed the query.
*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *The engine version that executed the query.
*/ inline void SetEngineVersion(const EngineVersion& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *The engine version that executed the query.
*/ inline void SetEngineVersion(EngineVersion&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *The engine version that executed the query.
*/ inline QueryExecution& WithEngineVersion(const EngineVersion& value) { SetEngineVersion(value); return *this;} /** *The engine version that executed the query.
*/ inline QueryExecution& WithEngineVersion(EngineVersion&& value) { SetEngineVersion(std::move(value)); return *this;} /** *A list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline const Aws::VectorA list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline bool ExecutionParametersHasBeenSet() const { return m_executionParametersHasBeenSet; } /** *A list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline void SetExecutionParameters(const Aws::VectorA list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline void SetExecutionParameters(Aws::VectorA list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline QueryExecution& WithExecutionParameters(const Aws::VectorA list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline QueryExecution& WithExecutionParameters(Aws::VectorA list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline QueryExecution& AddExecutionParameters(const Aws::String& value) { m_executionParametersHasBeenSet = true; m_executionParameters.push_back(value); return *this; } /** *A list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline QueryExecution& AddExecutionParameters(Aws::String&& value) { m_executionParametersHasBeenSet = true; m_executionParameters.push_back(std::move(value)); return *this; } /** *A list of values for the parameters in a query. The values are applied * sequentially to the parameters in the query in the order in which the parameters * occur. The list of parameters is not returned in the response.
*/ inline QueryExecution& AddExecutionParameters(const char* value) { m_executionParametersHasBeenSet = true; m_executionParameters.push_back(value); return *this; } /** *The kind of query statement that was run.
*/ inline const Aws::String& GetSubstatementType() const{ return m_substatementType; } /** *The kind of query statement that was run.
*/ inline bool SubstatementTypeHasBeenSet() const { return m_substatementTypeHasBeenSet; } /** *The kind of query statement that was run.
*/ inline void SetSubstatementType(const Aws::String& value) { m_substatementTypeHasBeenSet = true; m_substatementType = value; } /** *The kind of query statement that was run.
*/ inline void SetSubstatementType(Aws::String&& value) { m_substatementTypeHasBeenSet = true; m_substatementType = std::move(value); } /** *The kind of query statement that was run.
*/ inline void SetSubstatementType(const char* value) { m_substatementTypeHasBeenSet = true; m_substatementType.assign(value); } /** *The kind of query statement that was run.
*/ inline QueryExecution& WithSubstatementType(const Aws::String& value) { SetSubstatementType(value); return *this;} /** *The kind of query statement that was run.
*/ inline QueryExecution& WithSubstatementType(Aws::String&& value) { SetSubstatementType(std::move(value)); return *this;} /** *The kind of query statement that was run.
*/ inline QueryExecution& WithSubstatementType(const char* value) { SetSubstatementType(value); return *this;} private: Aws::String m_queryExecutionId; bool m_queryExecutionIdHasBeenSet = false; Aws::String m_query; bool m_queryHasBeenSet = false; StatementType m_statementType; bool m_statementTypeHasBeenSet = false; ResultConfiguration m_resultConfiguration; bool m_resultConfigurationHasBeenSet = false; ResultReuseConfiguration m_resultReuseConfiguration; bool m_resultReuseConfigurationHasBeenSet = false; QueryExecutionContext m_queryExecutionContext; bool m_queryExecutionContextHasBeenSet = false; QueryExecutionStatus m_status; bool m_statusHasBeenSet = false; QueryExecutionStatistics m_statistics; bool m_statisticsHasBeenSet = false; Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; EngineVersion m_engineVersion; bool m_engineVersionHasBeenSet = false; Aws::Vector