7#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9#include <aws/bedrock-agent-runtime/model/RerankQuery.h>
10#include <aws/bedrock-agent-runtime/model/RerankSource.h>
11#include <aws/bedrock-agent-runtime/model/RerankingConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
18namespace BedrockAgentRuntime {
43 template <
typename NextTokenT = Aws::String>
45 m_nextTokenHasBeenSet =
true;
46 m_nextToken = std::forward<NextTokenT>(value);
48 template <
typename NextTokenT = Aws::String>
62 template <
typename QueriesT = Aws::Vector<RerankQuery>>
64 m_queriesHasBeenSet =
true;
65 m_queries = std::forward<QueriesT>(value);
67 template <
typename QueriesT = Aws::Vector<RerankQuery>>
72 template <
typename QueriesT = RerankQuery>
74 m_queriesHasBeenSet =
true;
75 m_queries.emplace_back(std::forward<QueriesT>(value));
86 template <
typename RerankingConfigurationT = RerankingConfiguration>
88 m_rerankingConfigurationHasBeenSet =
true;
89 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
91 template <
typename RerankingConfigurationT = RerankingConfiguration>
105 template <
typename SourcesT = Aws::Vector<RerankSource>>
107 m_sourcesHasBeenSet =
true;
108 m_sources = std::forward<SourcesT>(value);
110 template <
typename SourcesT = Aws::Vector<RerankSource>>
115 template <
typename SourcesT = RerankSource>
117 m_sourcesHasBeenSet =
true;
118 m_sources.emplace_back(std::forward<SourcesT>(value));
130 bool m_nextTokenHasBeenSet =
false;
131 bool m_queriesHasBeenSet =
false;
132 bool m_rerankingConfigurationHasBeenSet =
false;
133 bool m_sourcesHasBeenSet =
false;
void SetNextToken(NextTokenT &&value)
RerankRequest & AddQueries(QueriesT &&value)
RerankRequest & AddSources(SourcesT &&value)
bool QueriesHasBeenSet() const
bool SourcesHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
RerankRequest & WithSources(SourcesT &&value)
const Aws::Vector< RerankSource > & GetSources() const
const Aws::String & GetNextToken() const
RerankRequest & WithQueries(QueriesT &&value)
bool NextTokenHasBeenSet() const
RerankRequest & WithRerankingConfiguration(RerankingConfigurationT &&value)
bool RerankingConfigurationHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API RerankRequest()=default
void SetRerankingConfiguration(RerankingConfigurationT &&value)
const Aws::Vector< RerankQuery > & GetQueries() const
void SetQueries(QueriesT &&value)
virtual const char * GetServiceRequestName() const override
const RerankingConfiguration & GetRerankingConfiguration() const
RerankRequest & WithNextToken(NextTokenT &&value)
void SetSources(SourcesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector