AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
QueryResult.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/timestream-query/model/QueryStatus.h>
11#include <aws/timestream-query/model/QueryInsightsResponse.h>
12#include <aws/timestream-query/model/Row.h>
13#include <aws/timestream-query/model/ColumnInfo.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace TimestreamQuery
29{
30namespace Model
31{
33 {
34 public:
35 AWS_TIMESTREAMQUERY_API QueryResult() = default;
38
39
41
44 inline const Aws::String& GetQueryId() const { return m_queryId; }
45 template<typename QueryIdT = Aws::String>
46 void SetQueryId(QueryIdT&& value) { m_queryIdHasBeenSet = true; m_queryId = std::forward<QueryIdT>(value); }
47 template<typename QueryIdT = Aws::String>
48 QueryResult& WithQueryId(QueryIdT&& value) { SetQueryId(std::forward<QueryIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 template<typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
59 template<typename NextTokenT = Aws::String>
60 QueryResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Row>& GetRows() const { return m_rows; }
68 template<typename RowsT = Aws::Vector<Row>>
69 void SetRows(RowsT&& value) { m_rowsHasBeenSet = true; m_rows = std::forward<RowsT>(value); }
70 template<typename RowsT = Aws::Vector<Row>>
71 QueryResult& WithRows(RowsT&& value) { SetRows(std::forward<RowsT>(value)); return *this;}
72 template<typename RowsT = Row>
73 QueryResult& AddRows(RowsT&& value) { m_rowsHasBeenSet = true; m_rows.emplace_back(std::forward<RowsT>(value)); return *this; }
75
77
80 inline const Aws::Vector<ColumnInfo>& GetColumnInfo() const { return m_columnInfo; }
81 template<typename ColumnInfoT = Aws::Vector<ColumnInfo>>
82 void SetColumnInfo(ColumnInfoT&& value) { m_columnInfoHasBeenSet = true; m_columnInfo = std::forward<ColumnInfoT>(value); }
83 template<typename ColumnInfoT = Aws::Vector<ColumnInfo>>
84 QueryResult& WithColumnInfo(ColumnInfoT&& value) { SetColumnInfo(std::forward<ColumnInfoT>(value)); return *this;}
85 template<typename ColumnInfoT = ColumnInfo>
86 QueryResult& AddColumnInfo(ColumnInfoT&& value) { m_columnInfoHasBeenSet = true; m_columnInfo.emplace_back(std::forward<ColumnInfoT>(value)); return *this; }
88
90
94 inline const QueryStatus& GetQueryStatus() const { return m_queryStatus; }
95 template<typename QueryStatusT = QueryStatus>
96 void SetQueryStatus(QueryStatusT&& value) { m_queryStatusHasBeenSet = true; m_queryStatus = std::forward<QueryStatusT>(value); }
97 template<typename QueryStatusT = QueryStatus>
98 QueryResult& WithQueryStatus(QueryStatusT&& value) { SetQueryStatus(std::forward<QueryStatusT>(value)); return *this;}
100
102
106 inline const QueryInsightsResponse& GetQueryInsightsResponse() const { return m_queryInsightsResponse; }
107 template<typename QueryInsightsResponseT = QueryInsightsResponse>
108 void SetQueryInsightsResponse(QueryInsightsResponseT&& value) { m_queryInsightsResponseHasBeenSet = true; m_queryInsightsResponse = std::forward<QueryInsightsResponseT>(value); }
109 template<typename QueryInsightsResponseT = QueryInsightsResponse>
110 QueryResult& WithQueryInsightsResponse(QueryInsightsResponseT&& value) { SetQueryInsightsResponse(std::forward<QueryInsightsResponseT>(value)); return *this;}
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template<typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
118 template<typename RequestIdT = Aws::String>
119 QueryResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
121 private:
122
123 Aws::String m_queryId;
124 bool m_queryIdHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
129 Aws::Vector<Row> m_rows;
130 bool m_rowsHasBeenSet = false;
131
132 Aws::Vector<ColumnInfo> m_columnInfo;
133 bool m_columnInfoHasBeenSet = false;
134
135 QueryStatus m_queryStatus;
136 bool m_queryStatusHasBeenSet = false;
137
138 QueryInsightsResponse m_queryInsightsResponse;
139 bool m_queryInsightsResponseHasBeenSet = false;
140
141 Aws::String m_requestId;
142 bool m_requestIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace TimestreamQuery
147} // namespace Aws
const Aws::String & GetRequestId() const
const QueryStatus & GetQueryStatus() const
Definition QueryResult.h:94
QueryResult & AddRows(RowsT &&value)
Definition QueryResult.h:73
QueryResult & WithQueryId(QueryIdT &&value)
Definition QueryResult.h:48
AWS_TIMESTREAMQUERY_API QueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
QueryResult & WithQueryInsightsResponse(QueryInsightsResponseT &&value)
AWS_TIMESTREAMQUERY_API QueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetQueryInsightsResponse(QueryInsightsResponseT &&value)
QueryResult & WithColumnInfo(ColumnInfoT &&value)
Definition QueryResult.h:84
const Aws::String & GetNextToken() const
Definition QueryResult.h:56
void SetColumnInfo(ColumnInfoT &&value)
Definition QueryResult.h:82
QueryResult & WithQueryStatus(QueryStatusT &&value)
Definition QueryResult.h:98
QueryResult & WithNextToken(NextTokenT &&value)
Definition QueryResult.h:60
const Aws::String & GetQueryId() const
Definition QueryResult.h:44
void SetQueryStatus(QueryStatusT &&value)
Definition QueryResult.h:96
const QueryInsightsResponse & GetQueryInsightsResponse() const
QueryResult & AddColumnInfo(ColumnInfoT &&value)
Definition QueryResult.h:86
AWS_TIMESTREAMQUERY_API QueryResult()=default
void SetRequestId(RequestIdT &&value)
void SetNextToken(NextTokenT &&value)
Definition QueryResult.h:58
QueryResult & WithRows(RowsT &&value)
Definition QueryResult.h:71
QueryResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Row > & GetRows() const
Definition QueryResult.h:67
const Aws::Vector< ColumnInfo > & GetColumnInfo() const
Definition QueryResult.h:80
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue