AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
QueryPaginationTraits.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQueryServiceClientModel.h>
8#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
9#include <aws/timestream-query/model/QueryRequest.h>
10#include <aws/timestream-query/model/QueryResult.h>
11
12namespace Aws {
13namespace TimestreamQuery {
14namespace Pagination {
15
16template <typename Client = TimestreamQueryClient>
21 using ClientType = Client;
22
23 static OutcomeType Invoke(Client* client, const RequestType& request) { return client->Query(request); }
24
25 static bool HasMoreResults(const ResultType& result) { return !result.GetNextToken().empty(); }
26
27 static void SetNextRequest(const ResultType& result, RequestType& request) { request.SetNextToken(result.GetNextToken()); }
28};
29
30} // namespace Pagination
31} // namespace TimestreamQuery
32} // namespace Aws
const Aws::String & GetNextToken() const
Definition QueryResult.h:57
Aws::Utils::Outcome< QueryResult, TimestreamQueryError > QueryOutcome
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
static void SetNextRequest(const ResultType &result, RequestType &request)
static OutcomeType Invoke(Client *client, const RequestType &request)