/** * 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 GetPreparedStatementRequest : public AthenaRequest { public: AWS_ATHENA_API GetPreparedStatementRequest(); // 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 "GetPreparedStatement"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the prepared statement to retrieve.

*/ inline const Aws::String& GetStatementName() const{ return m_statementName; } /** *

The name of the prepared statement to retrieve.

*/ inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; } /** *

The name of the prepared statement to retrieve.

*/ inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; } /** *

The name of the prepared statement to retrieve.

*/ inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); } /** *

The name of the prepared statement to retrieve.

*/ inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); } /** *

The name of the prepared statement to retrieve.

*/ inline GetPreparedStatementRequest& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;} /** *

The name of the prepared statement to retrieve.

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

The name of the prepared statement to retrieve.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

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

The workgroup to which the statement to be retrieved belongs.

*/ inline GetPreparedStatementRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} private: Aws::String m_statementName; bool m_statementNameHasBeenSet = false; Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws