AWS SDK for C++
AWS SDK for C++ Version 1.11.788
Main Page
Related Pages
Namespaces
Classes
Modules
Search
Loading...
Searching...
No Matches
generated
src
aws-cpp-sdk-bedrock-agent-runtime
include
aws
bedrock-agent-runtime
model
RetrievePaginationTraits.h
1
6
#pragma once
7
#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeServiceClientModel.h>
8
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9
#include <aws/bedrock-agent-runtime/model/RetrieveRequest.h>
10
#include <aws/bedrock-agent-runtime/model/RetrieveResult.h>
11
12
namespace
Aws
{
13
namespace
BedrockAgentRuntime {
14
namespace
Pagination {
15
16
template
<
typename
Client = BedrockAgentRuntimeClient>
17
struct
RetrievePaginationTraits
{
18
using
RequestType
=
Model::RetrieveRequest
;
19
using
ResultType
=
Model::RetrieveResult
;
20
using
OutcomeType
=
Model::RetrieveOutcome
;
21
using
ClientType
= Client;
22
23
static
OutcomeType
Invoke
(Client* client,
const
RequestType
&
request
) {
return
client->Retrieve(
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 BedrockAgentRuntime
32
}
// namespace Aws
Aws::BedrockAgentRuntime::Model::RetrieveRequest
Definition
RetrieveRequest.h:22
Aws::BedrockAgentRuntime::Model::RetrieveResult
Definition
RetrieveResult.h:27
Aws::BedrockAgentRuntime::Model::RetrieveResult::GetNextToken
const Aws::String & GetNextToken() const
Definition
RetrieveResult.h:54
Aws::Utils::Outcome
Aws::BedrockAgentRuntime::Model::RetrieveOutcome
Aws::Utils::Outcome< RetrieveResult, BedrockAgentRuntimeError > RetrieveOutcome
Definition
BedrockAgentRuntimeServiceClientModel.h:140
Aws
Aws::MakeShared
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::BedrockAgentRuntime::Pagination::RetrievePaginationTraits
Definition
RetrievePaginationTraits.h:17
Aws::BedrockAgentRuntime::Pagination::RetrievePaginationTraits::SetNextRequest
static void SetNextRequest(const ResultType &result, RequestType &request)
Definition
RetrievePaginationTraits.h:27
Aws::BedrockAgentRuntime::Pagination::RetrievePaginationTraits::Invoke
static OutcomeType Invoke(Client *client, const RequestType &request)
Definition
RetrievePaginationTraits.h:23
Aws::BedrockAgentRuntime::Pagination::RetrievePaginationTraits::ClientType
Client ClientType
Definition
RetrievePaginationTraits.h:21
Aws::BedrockAgentRuntime::Pagination::RetrievePaginationTraits::HasMoreResults
static bool HasMoreResults(const ResultType &result)
Definition
RetrievePaginationTraits.h:25
Generated by
1.9.8
Privacy |
Site terms |
Cookie preferences