AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KnowledgeBaseVectorSearchConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RetrievalFilter.h>
9#include <aws/bedrock-agent-runtime/model/SearchType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseVectorSearchConfiguration();
48 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
58 inline const RetrievalFilter& GetFilter() const{ return m_filter; }
59 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
60 inline void SetFilter(const RetrievalFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
61 inline void SetFilter(RetrievalFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
62 inline KnowledgeBaseVectorSearchConfiguration& WithFilter(const RetrievalFilter& value) { SetFilter(value); return *this;}
63 inline KnowledgeBaseVectorSearchConfiguration& WithFilter(RetrievalFilter&& value) { SetFilter(std::move(value)); return *this;}
65
67
70 inline int GetNumberOfResults() const{ return m_numberOfResults; }
71 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
72 inline void SetNumberOfResults(int value) { m_numberOfResultsHasBeenSet = true; m_numberOfResults = value; }
75
77
88 inline const SearchType& GetOverrideSearchType() const{ return m_overrideSearchType; }
89 inline bool OverrideSearchTypeHasBeenSet() const { return m_overrideSearchTypeHasBeenSet; }
90 inline void SetOverrideSearchType(const SearchType& value) { m_overrideSearchTypeHasBeenSet = true; m_overrideSearchType = value; }
91 inline void SetOverrideSearchType(SearchType&& value) { m_overrideSearchTypeHasBeenSet = true; m_overrideSearchType = std::move(value); }
95 private:
96
97 RetrievalFilter m_filter;
98 bool m_filterHasBeenSet = false;
99
100 int m_numberOfResults;
101 bool m_numberOfResultsHasBeenSet = false;
102
103 SearchType m_overrideSearchType;
104 bool m_overrideSearchTypeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace BedrockAgentRuntime
109} // namespace Aws
KnowledgeBaseVectorSearchConfiguration & WithOverrideSearchType(SearchType &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseVectorSearchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseVectorSearchConfiguration & WithFilter(const RetrievalFilter &value)
KnowledgeBaseVectorSearchConfiguration & WithFilter(RetrievalFilter &&value)
KnowledgeBaseVectorSearchConfiguration & WithOverrideSearchType(const SearchType &value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseVectorSearchConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue