AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
MetadataConfigurationForReranking.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/RerankingMetadataSelectionMode.h>
9#include <aws/bedrock/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 Bedrock {
21namespace Model {
22
32 public:
33 AWS_BEDROCK_API MetadataConfigurationForReranking() = default;
36 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline RerankingMetadataSelectionMode GetSelectionMode() const { return m_selectionMode; }
45 inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; }
47 m_selectionModeHasBeenSet = true;
48 m_selectionMode = value;
49 }
51 SetSelectionMode(value);
52 return *this;
53 }
55
57
62 inline const RerankingMetadataSelectiveModeConfiguration& GetSelectiveModeConfiguration() const { return m_selectiveModeConfiguration; }
63 inline bool SelectiveModeConfigurationHasBeenSet() const { return m_selectiveModeConfigurationHasBeenSet; }
64 template <typename SelectiveModeConfigurationT = RerankingMetadataSelectiveModeConfiguration>
66 m_selectiveModeConfigurationHasBeenSet = true;
67 m_selectiveModeConfiguration = std::forward<SelectiveModeConfigurationT>(value);
68 }
69 template <typename SelectiveModeConfigurationT = RerankingMetadataSelectiveModeConfiguration>
71 SetSelectiveModeConfiguration(std::forward<SelectiveModeConfigurationT>(value));
72 return *this;
73 }
75 private:
77
78 RerankingMetadataSelectiveModeConfiguration m_selectiveModeConfiguration;
79 bool m_selectionModeHasBeenSet = false;
80 bool m_selectiveModeConfigurationHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Bedrock
85} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const RerankingMetadataSelectiveModeConfiguration & GetSelectiveModeConfiguration() const
MetadataConfigurationForReranking & WithSelectionMode(RerankingMetadataSelectionMode value)
AWS_BEDROCK_API MetadataConfigurationForReranking(Aws::Utils::Json::JsonView jsonValue)
MetadataConfigurationForReranking & WithSelectiveModeConfiguration(SelectiveModeConfigurationT &&value)
void SetSelectiveModeConfiguration(SelectiveModeConfigurationT &&value)
AWS_BEDROCK_API MetadataConfigurationForReranking & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue