7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift-data/RedshiftDataAPIService_EXPORTS.h>
11#include <aws/redshift-data/model/ColumnMetadata.h>
12#include <aws/redshift-data/model/QueryRecords.h>
13#include <aws/redshift-data/model/ResultFormatString.h>
18template <
typename RESULT_TYPE>
19class AmazonWebServiceResult;
26namespace RedshiftDataAPIService {
40 template <
typename RecordsT = Aws::Vector<QueryRecords>>
42 m_recordsHasBeenSet =
true;
43 m_records = std::forward<RecordsT>(value);
45 template <
typename RecordsT = Aws::Vector<QueryRecords>>
50 template <
typename RecordsT = QueryRecords>
52 m_recordsHasBeenSet =
true;
53 m_records.emplace_back(std::forward<RecordsT>(value));
63 template <
typename ColumnMetadataT = Aws::Vector<ColumnMetadata>>
65 m_columnMetadataHasBeenSet =
true;
66 m_columnMetadata = std::forward<ColumnMetadataT>(value);
68 template <
typename ColumnMetadataT = Aws::Vector<ColumnMetadata>>
73 template <
typename ColumnMetadataT = ColumnMetadata>
75 m_columnMetadataHasBeenSet =
true;
76 m_columnMetadata.emplace_back(std::forward<ColumnMetadataT>(value));
90 m_totalNumRowsHasBeenSet =
true;
91 m_totalNumRows = value;
105 m_resultFormatHasBeenSet =
true;
106 m_resultFormat = value;
123 template <
typename NextTokenT = Aws::String>
125 m_nextTokenHasBeenSet =
true;
126 m_nextToken = std::forward<NextTokenT>(value);
128 template <
typename NextTokenT = Aws::String>
138 template <
typename RequestIdT = Aws::String>
140 m_requestIdHasBeenSet =
true;
141 m_requestId = std::forward<RequestIdT>(value);
143 template <
typename RequestIdT = Aws::String>
156 long long m_totalNumRows{0};
164 bool m_recordsHasBeenSet =
false;
165 bool m_columnMetadataHasBeenSet =
false;
166 bool m_totalNumRowsHasBeenSet =
false;
167 bool m_resultFormatHasBeenSet =
false;
168 bool m_nextTokenHasBeenSet =
false;
169 bool m_requestIdHasBeenSet =
false;
GetStatementResultV2Result & AddRecords(RecordsT &&value)
GetStatementResultV2Result & WithRecords(RecordsT &&value)
AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTotalNumRows(long long value)
AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultV2Result()=default
const Aws::Vector< ColumnMetadata > & GetColumnMetadata() const
ResultFormatString GetResultFormat() const
GetStatementResultV2Result & WithResultFormat(ResultFormatString value)
void SetRequestId(RequestIdT &&value)
void SetNextToken(NextTokenT &&value)
const Aws::String & GetRequestId() const
void SetResultFormat(ResultFormatString value)
GetStatementResultV2Result & AddColumnMetadata(ColumnMetadataT &&value)
GetStatementResultV2Result & WithNextToken(NextTokenT &&value)
long long GetTotalNumRows() const
const Aws::Vector< QueryRecords > & GetRecords() const
void SetColumnMetadata(ColumnMetadataT &&value)
GetStatementResultV2Result & WithTotalNumRows(long long value)
void SetRecords(RecordsT &&value)
GetStatementResultV2Result & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetNextToken() const
GetStatementResultV2Result & WithColumnMetadata(ColumnMetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue