/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an SQL statement.See Also:
AWS
* API Reference
The date and time (UTC) the statement was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time (UTC) the statement was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time (UTC) the statement was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time (UTC) the statement was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time (UTC) the statement was created.
*/ inline SubStatementData& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time (UTC) the statement was created.
*/ inline SubStatementData& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The amount of time in nanoseconds that the statement ran.
*/ inline long long GetDuration() const{ return m_duration; } /** *The amount of time in nanoseconds that the statement ran.
*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *The amount of time in nanoseconds that the statement ran.
*/ inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; } /** *The amount of time in nanoseconds that the statement ran.
*/ inline SubStatementData& WithDuration(long long value) { SetDuration(value); return *this;} /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline const Aws::String& GetError() const{ return m_error; } /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline SubStatementData& WithError(const Aws::String& value) { SetError(value); return *this;} /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline SubStatementData& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *The error message from the cluster if the SQL statement encountered an error * while running.
*/ inline SubStatementData& WithError(const char* value) { SetError(value); return *this;} /** *A value that indicates whether the statement has a result set. The result set * can be empty. The value is true for an empty result set.
*/ inline bool GetHasResultSet() const{ return m_hasResultSet; } /** *A value that indicates whether the statement has a result set. The result set * can be empty. The value is true for an empty result set.
*/ inline bool HasResultSetHasBeenSet() const { return m_hasResultSetHasBeenSet; } /** *A value that indicates whether the statement has a result set. The result set * can be empty. The value is true for an empty result set.
*/ inline void SetHasResultSet(bool value) { m_hasResultSetHasBeenSet = true; m_hasResultSet = value; } /** *A value that indicates whether the statement has a result set. The result set * can be empty. The value is true for an empty result set.
*/ inline SubStatementData& WithHasResultSet(bool value) { SetHasResultSet(value); return *this;} /** *The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The identifier of the SQL statement. This value is a universally unique
* identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the
* number of the SQL statement. For example,
* d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
* :2
that indicates the second SQL statement of a batch query.
The SQL statement text.
*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *The SQL statement text.
*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *The SQL statement text.
*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *The SQL statement text.
*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *The SQL statement text.
*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *The SQL statement text.
*/ inline SubStatementData& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *The SQL statement text.
*/ inline SubStatementData& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *The SQL statement text.
*/ inline SubStatementData& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline long long GetRedshiftQueryId() const{ return m_redshiftQueryId; } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline bool RedshiftQueryIdHasBeenSet() const { return m_redshiftQueryIdHasBeenSet; } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline void SetRedshiftQueryId(long long value) { m_redshiftQueryIdHasBeenSet = true; m_redshiftQueryId = value; } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline SubStatementData& WithRedshiftQueryId(long long value) { SetRedshiftQueryId(value); return *this;} /** *Either the number of rows returned from the SQL statement or the number of
* rows affected. If result size is greater than zero, the result rows can be the
* number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY,
* and others. A -1
indicates the value is null.
Either the number of rows returned from the SQL statement or the number of
* rows affected. If result size is greater than zero, the result rows can be the
* number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY,
* and others. A -1
indicates the value is null.
Either the number of rows returned from the SQL statement or the number of
* rows affected. If result size is greater than zero, the result rows can be the
* number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY,
* and others. A -1
indicates the value is null.
Either the number of rows returned from the SQL statement or the number of
* rows affected. If result size is greater than zero, the result rows can be the
* number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY,
* and others. A -1
indicates the value is null.
The size in bytes of the returned results. A -1
indicates the
* value is null.
The size in bytes of the returned results. A -1
indicates the
* value is null.
The size in bytes of the returned results. A -1
indicates the
* value is null.
The size in bytes of the returned results. A -1
indicates the
* value is null.
The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline const StatementStatusString& GetStatus() const{ return m_status; } /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline void SetStatus(const StatementStatusString& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline void SetStatus(StatementStatusString&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline SubStatementData& WithStatus(const StatementStatusString& value) { SetStatus(value); return *this;} /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline SubStatementData& WithStatus(StatementStatusString&& value) { SetStatus(std::move(value)); return *this;} /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline SubStatementData& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline SubStatementData& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; long long m_duration; bool m_durationHasBeenSet = false; Aws::String m_error; bool m_errorHasBeenSet = false; bool m_hasResultSet; bool m_hasResultSetHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; long long m_redshiftQueryId; bool m_redshiftQueryIdHasBeenSet = false; long long m_resultRows; bool m_resultRowsHasBeenSet = false; long long m_resultSize; bool m_resultSizeHasBeenSet = false; StatementStatusString m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws