AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ManagedSearchConfiguration.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration() = default;
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const RetrievalFilter& GetFilter() const { return m_filter; }
44 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
45 template <typename FilterT = RetrievalFilter>
46 void SetFilter(FilterT&& value) {
47 m_filterHasBeenSet = true;
48 m_filter = std::forward<FilterT>(value);
49 }
50 template <typename FilterT = RetrievalFilter>
52 SetFilter(std::forward<FilterT>(value));
53 return *this;
54 }
56
58
61 inline int GetNumberOfResults() const { return m_numberOfResults; }
62 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
63 inline void SetNumberOfResults(int value) {
64 m_numberOfResultsHasBeenSet = true;
65 m_numberOfResults = value;
66 }
68 SetNumberOfResults(value);
69 return *this;
70 }
72
74
78 inline const ManagedSearchRerankingConfiguration& GetRerankingConfiguration() const { return m_rerankingConfiguration; }
79 inline bool RerankingConfigurationHasBeenSet() const { return m_rerankingConfigurationHasBeenSet; }
80 template <typename RerankingConfigurationT = ManagedSearchRerankingConfiguration>
82 m_rerankingConfigurationHasBeenSet = true;
83 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
84 }
85 template <typename RerankingConfigurationT = ManagedSearchRerankingConfiguration>
87 SetRerankingConfiguration(std::forward<RerankingConfigurationT>(value));
88 return *this;
89 }
91
93
98 inline RerankingModelType GetRerankingModelType() const { return m_rerankingModelType; }
99 inline bool RerankingModelTypeHasBeenSet() const { return m_rerankingModelTypeHasBeenSet; }
101 m_rerankingModelTypeHasBeenSet = true;
102 m_rerankingModelType = value;
103 }
106 return *this;
107 }
109 private:
110 RetrievalFilter m_filter;
111
112 int m_numberOfResults{0};
113
114 ManagedSearchRerankingConfiguration m_rerankingConfiguration;
115
117 bool m_filterHasBeenSet = false;
118 bool m_numberOfResultsHasBeenSet = false;
119 bool m_rerankingConfigurationHasBeenSet = false;
120 bool m_rerankingModelTypeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace BedrockAgentRuntime
125} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const ManagedSearchRerankingConfiguration & GetRerankingConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration(Aws::Utils::Json::JsonView jsonValue)
ManagedSearchConfiguration & WithRerankingConfiguration(RerankingConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API ManagedSearchConfiguration()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedSearchConfiguration & WithRerankingModelType(RerankingModelType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue