AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
GetRestApisPaginationTraits.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayServiceClientModel.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/GetRestApisRequest.h>
10#include <aws/apigateway/model/GetRestApisResult.h>
11
12namespace Aws {
13namespace APIGateway {
14namespace Pagination {
15
16template <typename Client = APIGatewayClient>
21 using ClientType = Client;
22
23 static OutcomeType Invoke(Client* client, const RequestType& request) { return client->GetRestApis(request); }
24
25 static bool HasMoreResults(const ResultType& result) { return !result.GetPosition().empty(); }
26
27 static void SetNextRequest(const ResultType& result, RequestType& request) { request.SetPosition(result.GetPosition()); }
28};
29
30} // namespace Pagination
31} // namespace APIGateway
32} // namespace Aws
Aws::Utils::Outcome< GetRestApisResult, APIGatewayError > GetRestApisOutcome
static OutcomeType Invoke(Client *client, const RequestType &request)
static void SetNextRequest(const ResultType &result, RequestType &request)