AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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
40 inline const RetrievalFilter& GetFilter() const { return m_filter; }
41 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
42 template <typename FilterT = RetrievalFilter>
43 void SetFilter(FilterT&& value) {
44 m_filterHasBeenSet = true;
45 m_filter = std::forward<FilterT>(value);
46 }
47 template <typename FilterT = RetrievalFilter>
49 SetFilter(std::forward<FilterT>(value));
50 return *this;
51 }
53
55
58 inline int GetNumberOfResults() const { return m_numberOfResults; }
59 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
60 inline void SetNumberOfResults(int value) {
61 m_numberOfResultsHasBeenSet = true;
62 m_numberOfResults = value;
63 }
65 SetNumberOfResults(value);
66 return *this;
67 }
69
71
75 inline const ManagedSearchRerankingConfiguration& GetRerankingConfiguration() const { return m_rerankingConfiguration; }
76 inline bool RerankingConfigurationHasBeenSet() const { return m_rerankingConfigurationHasBeenSet; }
77 template <typename RerankingConfigurationT = ManagedSearchRerankingConfiguration>
79 m_rerankingConfigurationHasBeenSet = true;
80 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
81 }
82 template <typename RerankingConfigurationT = ManagedSearchRerankingConfiguration>
84 SetRerankingConfiguration(std::forward<RerankingConfigurationT>(value));
85 return *this;
86 }
88
90
95 inline RerankingModelType GetRerankingModelType() const { return m_rerankingModelType; }
96 inline bool RerankingModelTypeHasBeenSet() const { return m_rerankingModelTypeHasBeenSet; }
98 m_rerankingModelTypeHasBeenSet = true;
99 m_rerankingModelType = value;
100 }
103 return *this;
104 }
106 private:
107 RetrievalFilter m_filter;
108
109 int m_numberOfResults{0};
110
111 ManagedSearchRerankingConfiguration m_rerankingConfiguration;
112
114 bool m_filterHasBeenSet = false;
115 bool m_numberOfResultsHasBeenSet = false;
116 bool m_rerankingConfigurationHasBeenSet = false;
117 bool m_rerankingModelTypeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace BedrockAgentRuntime
122} // 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