AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetAnomaliesPaginationTraits.h
1
6#pragma once
7#include <aws/ce/CostExplorerServiceClientModel.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/GetAnomaliesRequest.h>
10#include <aws/ce/model/GetAnomaliesResult.h>
11
12namespace Aws {
13namespace CostExplorer {
14namespace Pagination {
15
16template <typename Client = CostExplorerClient>
21 using ClientType = Client;
22
23 static OutcomeType Invoke(Client* client, const RequestType& request) { return client->GetAnomalies(request); }
24
25 static bool HasMoreResults(const ResultType& result) { return !result.GetNextPageToken().empty(); }
26
27 static void SetNextRequest(const ResultType& result, RequestType& request) { request.SetNextPageToken(result.GetNextPageToken()); }
28};
29
30} // namespace Pagination
31} // namespace CostExplorer
32} // namespace Aws
Aws::Utils::Outcome< GetAnomaliesResult, CostExplorerError > GetAnomaliesOutcome
static void SetNextRequest(const ResultType &result, RequestType &request)
static OutcomeType Invoke(Client *client, const RequestType &request)