AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
BedrockRerankingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/BedrockRerankingModelConfiguration.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
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingConfiguration() = default;
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const BedrockRerankingModelConfiguration& GetModelConfiguration() const { return m_modelConfiguration; }
40 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
41 template <typename ModelConfigurationT = BedrockRerankingModelConfiguration>
43 m_modelConfigurationHasBeenSet = true;
44 m_modelConfiguration = std::forward<ModelConfigurationT>(value);
45 }
46 template <typename ModelConfigurationT = BedrockRerankingModelConfiguration>
48 SetModelConfiguration(std::forward<ModelConfigurationT>(value));
49 return *this;
50 }
52
54
57 inline int GetNumberOfResults() const { return m_numberOfResults; }
58 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
59 inline void SetNumberOfResults(int value) {
60 m_numberOfResultsHasBeenSet = true;
61 m_numberOfResults = value;
62 }
64 SetNumberOfResults(value);
65 return *this;
66 }
68 private:
69 BedrockRerankingModelConfiguration m_modelConfiguration;
70
71 int m_numberOfResults{0};
72 bool m_modelConfigurationHasBeenSet = false;
73 bool m_numberOfResultsHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace BedrockAgentRuntime
78} // namespace Aws
BedrockRerankingConfiguration & WithModelConfiguration(ModelConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingConfiguration()=default
const BedrockRerankingModelConfiguration & GetModelConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue