AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingConfiguration() = default;
36 AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const BedrockRerankingModelConfiguration& GetModelConfiguration() const { return m_modelConfiguration; }
46 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
47 template<typename ModelConfigurationT = BedrockRerankingModelConfiguration>
48 void SetModelConfiguration(ModelConfigurationT&& value) { m_modelConfigurationHasBeenSet = true; m_modelConfiguration = std::forward<ModelConfigurationT>(value); }
49 template<typename ModelConfigurationT = BedrockRerankingModelConfiguration>
50 BedrockRerankingConfiguration& WithModelConfiguration(ModelConfigurationT&& value) { SetModelConfiguration(std::forward<ModelConfigurationT>(value)); return *this;}
52
54
57 inline int GetNumberOfResults() const { return m_numberOfResults; }
58 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
59 inline void SetNumberOfResults(int value) { m_numberOfResultsHasBeenSet = true; m_numberOfResults = value; }
60 inline BedrockRerankingConfiguration& WithNumberOfResults(int value) { SetNumberOfResults(value); return *this;}
62 private:
63
64 BedrockRerankingModelConfiguration m_modelConfiguration;
65 bool m_modelConfigurationHasBeenSet = false;
66
67 int m_numberOfResults{0};
68 bool m_numberOfResultsHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace BedrockAgentRuntime
73} // 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)
Aws::Utils::Json::JsonValue JsonValue