/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RedshiftDataAPIService { namespace Model { /** *

The SQL statement to run.

See Also:

AWS * API Reference

*/ class StatementData { public: AWS_REDSHIFTDATAAPISERVICE_API StatementData(); AWS_REDSHIFTDATAAPISERVICE_API StatementData(Aws::Utils::Json::JsonView jsonValue); AWS_REDSHIFTDATAAPISERVICE_API StatementData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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::Vector& GetQueryParameters() const{ return m_queryParameters; } /** *

The 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::Vector& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; } /** *

The parameters used in a SQL statement.

*/ inline void SetQueryParameters(Aws::Vector&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); } /** *

The parameters used in a SQL statement.

*/ inline StatementData& WithQueryParameters(const Aws::Vector& value) { SetQueryParameters(value); return *this;} /** *

The parameters used in a SQL statement.

*/ inline StatementData& WithQueryParameters(Aws::Vector&& value) { SetQueryParameters(std::move(value)); return *this;} /** *

The 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::Vector& GetQueryStrings() const{ return m_queryStrings; } /** *

One 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::Vector& value) { m_queryStringsHasBeenSet = true; m_queryStrings = value; } /** *

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(Aws::Vector&& value) { m_queryStringsHasBeenSet = true; m_queryStrings = std::move(value); } /** *

One 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::Vector& value) { SetQueryStrings(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& WithQueryStrings(Aws::Vector&& value) { SetQueryStrings(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 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 m_queryParameters; bool m_queryParametersHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; Aws::Vector m_queryStrings; bool m_queryStringsHasBeenSet = false; Aws::String m_secretArn; bool m_secretArnHasBeenSet = false; Aws::String m_statementName; bool m_statementNameHasBeenSet = false; StatusString m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws