/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Athena { namespace Model { /** */ class CreatePreparedStatementRequest : public AthenaRequest { public: AWS_ATHENA_API CreatePreparedStatementRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreatePreparedStatement"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 CreatePreparedStatementRequest& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;} /** *

The name of the prepared statement.

*/ inline CreatePreparedStatementRequest& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;} /** *

The name of the prepared statement.

*/ inline CreatePreparedStatementRequest& WithStatementName(const char* value) { SetStatementName(value); return *this;} /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; } /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; } /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); } /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); } /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline CreatePreparedStatementRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline CreatePreparedStatementRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *

The name of the workgroup to which the prepared statement belongs.

*/ inline CreatePreparedStatementRequest& WithWorkGroup(const char* value) { SetWorkGroup(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 CreatePreparedStatementRequest& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;} /** *

The query string for the prepared statement.

*/ inline CreatePreparedStatementRequest& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;} /** *

The query string for the prepared statement.

*/ inline CreatePreparedStatementRequest& WithQueryStatement(const char* value) { SetQueryStatement(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 CreatePreparedStatementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the prepared statement.

*/ inline CreatePreparedStatementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the prepared statement.

*/ inline CreatePreparedStatementRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_statementName; bool m_statementNameHasBeenSet = false; Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; Aws::String m_queryStatement; bool m_queryStatementHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws