AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MetadataConfigurationForReranking.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RerankingMetadataSelectionMode.h>
9#include <aws/bedrock-agent-runtime/model/RerankingMetadataSelectiveModeConfiguration.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
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API MetadataConfigurationForReranking() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline RerankingMetadataSelectionMode GetSelectionMode() const { return m_selectionMode; }
43 inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; }
45 m_selectionModeHasBeenSet = true;
46 m_selectionMode = value;
47 }
49 SetSelectionMode(value);
50 return *this;
51 }
53
55
59 inline const RerankingMetadataSelectiveModeConfiguration& GetSelectiveModeConfiguration() const { return m_selectiveModeConfiguration; }
60 inline bool SelectiveModeConfigurationHasBeenSet() const { return m_selectiveModeConfigurationHasBeenSet; }
61 template <typename SelectiveModeConfigurationT = RerankingMetadataSelectiveModeConfiguration>
63 m_selectiveModeConfigurationHasBeenSet = true;
64 m_selectiveModeConfiguration = std::forward<SelectiveModeConfigurationT>(value);
65 }
66 template <typename SelectiveModeConfigurationT = RerankingMetadataSelectiveModeConfiguration>
68 SetSelectiveModeConfiguration(std::forward<SelectiveModeConfigurationT>(value));
69 return *this;
70 }
72 private:
74
75 RerankingMetadataSelectiveModeConfiguration m_selectiveModeConfiguration;
76 bool m_selectionModeHasBeenSet = false;
77 bool m_selectiveModeConfigurationHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace BedrockAgentRuntime
82} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
MetadataConfigurationForReranking & WithSelectiveModeConfiguration(SelectiveModeConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API MetadataConfigurationForReranking(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API MetadataConfigurationForReranking & operator=(Aws::Utils::Json::JsonView jsonValue)
const RerankingMetadataSelectiveModeConfiguration & GetSelectiveModeConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API MetadataConfigurationForReranking()=default
MetadataConfigurationForReranking & WithSelectionMode(RerankingMetadataSelectionMode value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue