AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeTransitGatewaysPaginationTraits.h
1
6#pragma once
7#include <aws/ec2/EC2ServiceClientModel.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/DescribeTransitGatewaysRequest.h>
10#include <aws/ec2/model/DescribeTransitGatewaysResponse.h>
11
12namespace Aws {
13namespace EC2 {
14namespace Pagination {
15
16template <typename Client = EC2Client>
21 using ClientType = Client;
22
23 static OutcomeType Invoke(Client* client, const RequestType& request) { return client->DescribeTransitGateways(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 EC2
32} // namespace Aws
Aws::Utils::Outcome< DescribeTransitGatewaysResponse, EC2Error > DescribeTransitGatewaysOutcome
static OutcomeType Invoke(Client *client, const RequestType &request)
static void SetNextRequest(const ResultType &result, RequestType &request)