7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ManagedSearchRerankingConfiguration.h>
9#include <aws/bedrock-agent-runtime/model/RerankingModelType.h>
10#include <aws/bedrock-agent-runtime/model/RetrievalFilter.h>
21namespace BedrockAgentRuntime {
42 template <
typename FilterT = RetrievalFilter>
44 m_filterHasBeenSet =
true;
45 m_filter = std::forward<FilterT>(value);
47 template <
typename FilterT = RetrievalFilter>
61 m_numberOfResultsHasBeenSet =
true;
62 m_numberOfResults = value;
77 template <
typename RerankingConfigurationT = ManagedSearchRerankingConfiguration>
79 m_rerankingConfigurationHasBeenSet =
true;
80 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
82 template <
typename RerankingConfigurationT = ManagedSearchRerankingConfiguration>
98 m_rerankingModelTypeHasBeenSet =
true;
99 m_rerankingModelType = value;
109 int m_numberOfResults{0};
111 ManagedSearchRerankingConfiguration m_rerankingConfiguration;
114 bool m_filterHasBeenSet =
false;
115 bool m_numberOfResultsHasBeenSet =
false;
116 bool m_rerankingConfigurationHasBeenSet =
false;
117 bool m_rerankingModelTypeHasBeenSet =
false;
AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const ManagedSearchRerankingConfiguration & GetRerankingConfiguration() const
ManagedSearchConfiguration & WithNumberOfResults(int value)
bool NumberOfResultsHasBeenSet() const
void SetFilter(FilterT &&value)
AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration(Aws::Utils::Json::JsonView jsonValue)
const RetrievalFilter & GetFilter() const
void SetNumberOfResults(int value)
ManagedSearchConfiguration & WithFilter(FilterT &&value)
ManagedSearchConfiguration & WithRerankingConfiguration(RerankingConfigurationT &&value)
void SetRerankingModelType(RerankingModelType value)
AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration()=default
bool FilterHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
RerankingModelType GetRerankingModelType() const
int GetNumberOfResults() const
bool RerankingModelTypeHasBeenSet() const
void SetRerankingConfiguration(RerankingConfigurationT &&value)
bool RerankingConfigurationHasBeenSet() const
ManagedSearchConfiguration & WithRerankingModelType(RerankingModelType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue