/** * 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 RedshiftDataAPIService { namespace Model { class GetStatementResultResult { public: AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultResult(); AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultResult(const Aws::AmazonWebServiceResult& result); AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The properties (metadata) of a column.

*/ inline const Aws::Vector& GetColumnMetadata() const{ return m_columnMetadata; } /** *

The properties (metadata) of a column.

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

The properties (metadata) of a column.

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

The properties (metadata) of a column.

*/ inline GetStatementResultResult& WithColumnMetadata(const Aws::Vector& value) { SetColumnMetadata(value); return *this;} /** *

The properties (metadata) of a column.

*/ inline GetStatementResultResult& WithColumnMetadata(Aws::Vector&& value) { SetColumnMetadata(std::move(value)); return *this;} /** *

The properties (metadata) of a column.

*/ inline GetStatementResultResult& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadata.push_back(value); return *this; } /** *

The properties (metadata) of a column.

*/ inline GetStatementResultResult& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadata.push_back(std::move(value)); return *this; } /** *

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

*/ inline GetStatementResultResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

*/ inline GetStatementResultResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

*/ inline GetStatementResultResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The results of the SQL statement.

*/ inline const Aws::Vector>& GetRecords() const{ return m_records; } /** *

The results of the SQL statement.

*/ inline void SetRecords(const Aws::Vector>& value) { m_records = value; } /** *

The results of the SQL statement.

*/ inline void SetRecords(Aws::Vector>&& value) { m_records = std::move(value); } /** *

The results of the SQL statement.

*/ inline GetStatementResultResult& WithRecords(const Aws::Vector>& value) { SetRecords(value); return *this;} /** *

The results of the SQL statement.

*/ inline GetStatementResultResult& WithRecords(Aws::Vector>&& value) { SetRecords(std::move(value)); return *this;} /** *

The results of the SQL statement.

*/ inline GetStatementResultResult& AddRecords(const Aws::Vector& value) { m_records.push_back(value); return *this; } /** *

The results of the SQL statement.

*/ inline GetStatementResultResult& AddRecords(Aws::Vector&& value) { m_records.push_back(std::move(value)); return *this; } /** *

The total number of rows in the result set returned from a query. You can use * this number to estimate the number of calls to the * GetStatementResult operation needed to page through the results. *

*/ inline long long GetTotalNumRows() const{ return m_totalNumRows; } /** *

The total number of rows in the result set returned from a query. You can use * this number to estimate the number of calls to the * GetStatementResult operation needed to page through the results. *

*/ inline void SetTotalNumRows(long long value) { m_totalNumRows = value; } /** *

The total number of rows in the result set returned from a query. You can use * this number to estimate the number of calls to the * GetStatementResult operation needed to page through the results. *

*/ inline GetStatementResultResult& WithTotalNumRows(long long value) { SetTotalNumRows(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 GetStatementResultResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetStatementResultResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetStatementResultResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_columnMetadata; Aws::String m_nextToken; Aws::Vector> m_records; long long m_totalNumRows; Aws::String m_requestId; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws