/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the athena-2017-05-18.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Athena.Model { /// /// Information about a single instance of a query execution. /// public partial class QueryExecution { private EngineVersion _engineVersion; private List _executionParameters = new List(); private string _query; private QueryExecutionContext _queryExecutionContext; private string _queryExecutionId; private ResultConfiguration _resultConfiguration; private ResultReuseConfiguration _resultReuseConfiguration; private StatementType _statementType; private QueryExecutionStatistics _statistics; private QueryExecutionStatus _status; private string _substatementType; private string _workGroup; /// /// Gets and sets the property EngineVersion. /// /// The engine version that executed the query. /// /// public EngineVersion EngineVersion { get { return this._engineVersion; } set { this._engineVersion = value; } } // Check to see if EngineVersion property is set internal bool IsSetEngineVersion() { return this._engineVersion != null; } /// /// Gets and sets the property ExecutionParameters. /// /// 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. /// /// [AWSProperty(Min=1)] public List ExecutionParameters { get { return this._executionParameters; } set { this._executionParameters = value; } } // Check to see if ExecutionParameters property is set internal bool IsSetExecutionParameters() { return this._executionParameters != null && this._executionParameters.Count > 0; } /// /// Gets and sets the property Query. /// /// The SQL query statements which the query execution ran. /// /// [AWSProperty(Min=1, Max=262144)] public string Query { get { return this._query; } set { this._query = value; } } // Check to see if Query property is set internal bool IsSetQuery() { return this._query != null; } /// /// Gets and sets the property QueryExecutionContext. /// /// The database in which the query execution occurred. /// /// public QueryExecutionContext QueryExecutionContext { get { return this._queryExecutionContext; } set { this._queryExecutionContext = value; } } // Check to see if QueryExecutionContext property is set internal bool IsSetQueryExecutionContext() { return this._queryExecutionContext != null; } /// /// Gets and sets the property QueryExecutionId. /// /// The unique identifier for each query execution. /// /// [AWSProperty(Min=1, Max=128)] public string QueryExecutionId { get { return this._queryExecutionId; } set { this._queryExecutionId = value; } } // Check to see if QueryExecutionId property is set internal bool IsSetQueryExecutionId() { return this._queryExecutionId != null; } /// /// Gets and sets the property 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. /// /// public ResultConfiguration ResultConfiguration { get { return this._resultConfiguration; } set { this._resultConfiguration = value; } } // Check to see if ResultConfiguration property is set internal bool IsSetResultConfiguration() { return this._resultConfiguration != null; } /// /// Gets and sets the property ResultReuseConfiguration. /// /// Specifies the query result reuse behavior that was used for the query. /// /// public ResultReuseConfiguration ResultReuseConfiguration { get { return this._resultReuseConfiguration; } set { this._resultReuseConfiguration = value; } } // Check to see if ResultReuseConfiguration property is set internal bool IsSetResultReuseConfiguration() { return this._resultReuseConfiguration != null; } /// /// Gets and sets the property StatementType. /// /// 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. /// /// public StatementType StatementType { get { return this._statementType; } set { this._statementType = value; } } // Check to see if StatementType property is set internal bool IsSetStatementType() { return this._statementType != null; } /// /// Gets and sets the property 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. /// /// public QueryExecutionStatistics Statistics { get { return this._statistics; } set { this._statistics = value; } } // Check to see if Statistics property is set internal bool IsSetStatistics() { return this._statistics != null; } /// /// Gets and sets the property Status. /// /// The completion date, current state, submission time, and state change reason (if applicable) /// for the query execution. /// /// public QueryExecutionStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property SubstatementType. /// /// The kind of query statement that was run. /// /// public string SubstatementType { get { return this._substatementType; } set { this._substatementType = value; } } // Check to see if SubstatementType property is set internal bool IsSetSubstatementType() { return this._substatementType != null; } /// /// Gets and sets the property WorkGroup. /// /// The name of the workgroup in which the query ran. /// /// public string WorkGroup { get { return this._workGroup; } set { this._workGroup = value; } } // Check to see if WorkGroup property is set internal bool IsSetWorkGroup() { return this._workGroup != null; } } }