AWS SDK for C++

AWS SDK for C++ Version 1.11.758

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