/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The SQL statement to run.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 StatementData& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time (UTC) the statement was created.
*/ inline StatementData& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline StatementData& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline StatementData& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The SQL statement identifier. This value is a universally unique identifier * (UUID) generated by Amazon Redshift Data API.
*/ inline StatementData& WithId(const char* value) { SetId(value); return *this;} /** *A value that indicates whether the statement is a batch query request.
*/ inline bool GetIsBatchStatement() const{ return m_isBatchStatement; } /** *A value that indicates whether the statement is a batch query request.
*/ inline bool IsBatchStatementHasBeenSet() const { return m_isBatchStatementHasBeenSet; } /** *A value that indicates whether the statement is a batch query request.
*/ inline void SetIsBatchStatement(bool value) { m_isBatchStatementHasBeenSet = true; m_isBatchStatement = value; } /** *A value that indicates whether the statement is a batch query request.
*/ inline StatementData& WithIsBatchStatement(bool value) { SetIsBatchStatement(value); return *this;} /** *The parameters used in a SQL statement.
*/ inline const Aws::VectorThe parameters used in a SQL statement.
*/ inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; } /** *The parameters used in a SQL statement.
*/ inline void SetQueryParameters(const Aws::VectorThe parameters used in a SQL statement.
*/ inline void SetQueryParameters(Aws::VectorThe parameters used in a SQL statement.
*/ inline StatementData& WithQueryParameters(const Aws::VectorThe parameters used in a SQL statement.
*/ inline StatementData& WithQueryParameters(Aws::VectorThe parameters used in a SQL statement.
*/ inline StatementData& AddQueryParameters(const SqlParameter& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; } /** *The parameters used in a SQL statement.
*/ inline StatementData& AddQueryParameters(SqlParameter&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; } /** *The SQL statement.
*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *The SQL statement.
*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *The SQL statement.
*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *The SQL statement.
*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *The SQL statement.
*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *The SQL statement.
*/ inline StatementData& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *The SQL statement.
*/ inline StatementData& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *The SQL statement.
*/ inline StatementData& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *One or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline const Aws::VectorOne or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline bool QueryStringsHasBeenSet() const { return m_queryStringsHasBeenSet; } /** *One or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline void SetQueryStrings(const Aws::VectorOne or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline void SetQueryStrings(Aws::VectorOne or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline StatementData& WithQueryStrings(const Aws::VectorOne or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline StatementData& WithQueryStrings(Aws::VectorOne or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline StatementData& AddQueryStrings(const Aws::String& value) { m_queryStringsHasBeenSet = true; m_queryStrings.push_back(value); return *this; } /** *One or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline StatementData& AddQueryStrings(Aws::String&& value) { m_queryStringsHasBeenSet = true; m_queryStrings.push_back(std::move(value)); return *this; } /** *One or more SQL statements. Each query string in the array corresponds to one * of the queries in a batch query request.
*/ inline StatementData& AddQueryStrings(const char* value) { m_queryStringsHasBeenSet = true; m_queryStrings.push_back(value); return *this; } /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline const Aws::String& GetSecretArn() const{ return m_secretArn; } /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline StatementData& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline StatementData& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} /** *The name or Amazon Resource Name (ARN) of the secret that enables access to * the database.
*/ inline StatementData& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} /** *The name of the SQL statement.
*/ inline const Aws::String& GetStatementName() const{ return m_statementName; } /** *The name of the SQL statement.
*/ inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; } /** *The name of the SQL statement.
*/ inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; } /** *The name of the SQL statement.
*/ inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); } /** *The name of the SQL statement.
*/ inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); } /** *The name of the SQL statement.
*/ inline StatementData& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;} /** *The name of the SQL statement.
*/ inline StatementData& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;} /** *The name of the SQL statement.
*/ inline StatementData& WithStatementName(const char* value) { SetStatementName(value); return *this;} /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline const StatusString& 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 StatusString& 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(StatusString&& 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 StatementData& WithStatus(const StatusString& value) { SetStatus(value); return *this;} /** *The status of the SQL statement. An example is the that the SQL statement * finished.
*/ inline StatementData& WithStatus(StatusString&& 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 StatementData& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The date and time (UTC) that the statement metadata was last updated.
*/ inline StatementData& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; bool m_isBatchStatement; bool m_isBatchStatementHasBeenSet = false; Aws::Vector