/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A prepared SQL statement for use with Athena.See Also:
AWS
* API Reference
The name of the prepared statement.
*/ inline const Aws::String& GetStatementName() const{ return m_statementName; } /** *The name of the prepared statement.
*/ inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; } /** *The name of the prepared statement.
*/ inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; } /** *The name of the prepared statement.
*/ inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); } /** *The name of the prepared statement.
*/ inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); } /** *The name of the prepared statement.
*/ inline PreparedStatement& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;} /** *The name of the prepared statement.
*/ inline PreparedStatement& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;} /** *The name of the prepared statement.
*/ inline PreparedStatement& WithStatementName(const char* value) { SetStatementName(value); return *this;} /** *The query string for the prepared statement.
*/ inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; } /** *The query string for the prepared statement.
*/ inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; } /** *The query string for the prepared statement.
*/ inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; } /** *The query string for the prepared statement.
*/ inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); } /** *The query string for the prepared statement.
*/ inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); } /** *The query string for the prepared statement.
*/ inline PreparedStatement& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;} /** *The query string for the prepared statement.
*/ inline PreparedStatement& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;} /** *The query string for the prepared statement.
*/ inline PreparedStatement& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;} /** *The name of the workgroup to which the prepared statement belongs.
*/ inline const Aws::String& GetWorkGroupName() const{ return m_workGroupName; } /** *The name of the workgroup to which the prepared statement belongs.
*/ inline bool WorkGroupNameHasBeenSet() const { return m_workGroupNameHasBeenSet; } /** *The name of the workgroup to which the prepared statement belongs.
*/ inline void SetWorkGroupName(const Aws::String& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = value; } /** *The name of the workgroup to which the prepared statement belongs.
*/ inline void SetWorkGroupName(Aws::String&& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = std::move(value); } /** *The name of the workgroup to which the prepared statement belongs.
*/ inline void SetWorkGroupName(const char* value) { m_workGroupNameHasBeenSet = true; m_workGroupName.assign(value); } /** *The name of the workgroup to which the prepared statement belongs.
*/ inline PreparedStatement& WithWorkGroupName(const Aws::String& value) { SetWorkGroupName(value); return *this;} /** *The name of the workgroup to which the prepared statement belongs.
*/ inline PreparedStatement& WithWorkGroupName(Aws::String&& value) { SetWorkGroupName(std::move(value)); return *this;} /** *The name of the workgroup to which the prepared statement belongs.
*/ inline PreparedStatement& WithWorkGroupName(const char* value) { SetWorkGroupName(value); return *this;} /** *The description of the prepared statement.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the prepared statement.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the prepared statement.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the prepared statement.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the prepared statement.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the prepared statement.
*/ inline PreparedStatement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the prepared statement.
*/ inline PreparedStatement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the prepared statement.
*/ inline PreparedStatement& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The last modified time of the prepared statement.
*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *The last modified time of the prepared statement.
*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *The last modified time of the prepared statement.
*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *The last modified time of the prepared statement.
*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *The last modified time of the prepared statement.
*/ inline PreparedStatement& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *The last modified time of the prepared statement.
*/ inline PreparedStatement& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} private: Aws::String m_statementName; bool m_statementNameHasBeenSet = false; Aws::String m_queryStatement; bool m_queryStatementHasBeenSet = false; Aws::String m_workGroupName; bool m_workGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws