/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace TimestreamQuery { namespace Model { class PrepareQueryResult { public: AWS_TIMESTREAMQUERY_API PrepareQueryResult(); AWS_TIMESTREAMQUERY_API PrepareQueryResult(const Aws::AmazonWebServiceResult& result); AWS_TIMESTREAMQUERY_API PrepareQueryResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The query string that you want prepare.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The query string that you want prepare.

*/ inline void SetQueryString(const Aws::String& value) { m_queryString = value; } /** *

The query string that you want prepare.

*/ inline void SetQueryString(Aws::String&& value) { m_queryString = std::move(value); } /** *

The query string that you want prepare.

*/ inline void SetQueryString(const char* value) { m_queryString.assign(value); } /** *

The query string that you want prepare.

*/ inline PrepareQueryResult& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The query string that you want prepare.

*/ inline PrepareQueryResult& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The query string that you want prepare.

*/ inline PrepareQueryResult& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *

A list of SELECT clause columns of the submitted query string.

*/ inline const Aws::Vector& GetColumns() const{ return m_columns; } /** *

A list of SELECT clause columns of the submitted query string.

*/ inline void SetColumns(const Aws::Vector& value) { m_columns = value; } /** *

A list of SELECT clause columns of the submitted query string.

*/ inline void SetColumns(Aws::Vector&& value) { m_columns = std::move(value); } /** *

A list of SELECT clause columns of the submitted query string.

*/ inline PrepareQueryResult& WithColumns(const Aws::Vector& value) { SetColumns(value); return *this;} /** *

A list of SELECT clause columns of the submitted query string.

*/ inline PrepareQueryResult& WithColumns(Aws::Vector&& value) { SetColumns(std::move(value)); return *this;} /** *

A list of SELECT clause columns of the submitted query string.

*/ inline PrepareQueryResult& AddColumns(const SelectColumn& value) { m_columns.push_back(value); return *this; } /** *

A list of SELECT clause columns of the submitted query string.

*/ inline PrepareQueryResult& AddColumns(SelectColumn&& value) { m_columns.push_back(std::move(value)); return *this; } /** *

A list of parameters used in the submitted query string.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

A list of parameters used in the submitted query string.

*/ inline void SetParameters(const Aws::Vector& value) { m_parameters = value; } /** *

A list of parameters used in the submitted query string.

*/ inline void SetParameters(Aws::Vector&& value) { m_parameters = std::move(value); } /** *

A list of parameters used in the submitted query string.

*/ inline PrepareQueryResult& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

A list of parameters used in the submitted query string.

*/ inline PrepareQueryResult& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

A list of parameters used in the submitted query string.

*/ inline PrepareQueryResult& AddParameters(const ParameterMapping& value) { m_parameters.push_back(value); return *this; } /** *

A list of parameters used in the submitted query string.

*/ inline PrepareQueryResult& AddParameters(ParameterMapping&& value) { m_parameters.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PrepareQueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PrepareQueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PrepareQueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_queryString; Aws::Vector m_columns; Aws::Vector m_parameters; Aws::String m_requestId; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws