AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RerankingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/BedrockRerankingConfiguration.h>
9#include <aws/bedrock-agent-runtime/model/RerankingConfigurationType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API RerankingConfiguration() = default;
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const BedrockRerankingConfiguration& GetBedrockRerankingConfiguration() const { return m_bedrockRerankingConfiguration; }
40 inline bool BedrockRerankingConfigurationHasBeenSet() const { return m_bedrockRerankingConfigurationHasBeenSet; }
41 template <typename BedrockRerankingConfigurationT = BedrockRerankingConfiguration>
43 m_bedrockRerankingConfigurationHasBeenSet = true;
44 m_bedrockRerankingConfiguration = std::forward<BedrockRerankingConfigurationT>(value);
45 }
46 template <typename BedrockRerankingConfigurationT = BedrockRerankingConfiguration>
48 SetBedrockRerankingConfiguration(std::forward<BedrockRerankingConfigurationT>(value));
49 return *this;
50 }
52
54
57 inline RerankingConfigurationType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68 private:
69 BedrockRerankingConfiguration m_bedrockRerankingConfiguration;
70
72 bool m_bedrockRerankingConfigurationHasBeenSet = false;
73 bool m_typeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace BedrockAgentRuntime
78} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API RerankingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBedrockRerankingConfiguration(BedrockRerankingConfigurationT &&value)
RerankingConfiguration & WithBedrockRerankingConfiguration(BedrockRerankingConfigurationT &&value)
const BedrockRerankingConfiguration & GetBedrockRerankingConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API RerankingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RerankingConfiguration()=default
RerankingConfiguration & WithType(RerankingConfigurationType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue