AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
RetrievalOverrides.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RetrievalFilter.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentRuntime {
20namespace Model {
21
28 public:
29 AWS_BEDROCKAGENTRUNTIME_API RetrievalOverrides() = default;
32 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const RetrievalFilter& GetFilter() const { return m_filter; }
39 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
40 template <typename FilterT = RetrievalFilter>
41 void SetFilter(FilterT&& value) {
42 m_filterHasBeenSet = true;
43 m_filter = std::forward<FilterT>(value);
44 }
45 template <typename FilterT = RetrievalFilter>
47 SetFilter(std::forward<FilterT>(value));
48 return *this;
49 }
51
53
56 inline int GetMaxNumberOfResults() const { return m_maxNumberOfResults; }
57 inline bool MaxNumberOfResultsHasBeenSet() const { return m_maxNumberOfResultsHasBeenSet; }
58 inline void SetMaxNumberOfResults(int value) {
59 m_maxNumberOfResultsHasBeenSet = true;
60 m_maxNumberOfResults = value;
61 }
64 return *this;
65 }
67 private:
68 RetrievalFilter m_filter;
69
70 int m_maxNumberOfResults{0};
71 bool m_filterHasBeenSet = false;
72 bool m_maxNumberOfResultsHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace BedrockAgentRuntime
77} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RetrievalOverrides(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RetrievalOverrides()=default
RetrievalOverrides & WithFilter(FilterT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue