AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
HumanEvaluationConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/HumanWorkflowConfig.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/model/HumanEvaluationCustomMetric.h>
11#include <aws/bedrock/model/EvaluationDatasetMetricConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Bedrock
25{
26namespace Model
27{
28
50 {
51 public:
52 AWS_BEDROCK_API HumanEvaluationConfig() = default;
55 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
56
57
59
62 inline const HumanWorkflowConfig& GetHumanWorkflowConfig() const { return m_humanWorkflowConfig; }
63 inline bool HumanWorkflowConfigHasBeenSet() const { return m_humanWorkflowConfigHasBeenSet; }
64 template<typename HumanWorkflowConfigT = HumanWorkflowConfig>
65 void SetHumanWorkflowConfig(HumanWorkflowConfigT&& value) { m_humanWorkflowConfigHasBeenSet = true; m_humanWorkflowConfig = std::forward<HumanWorkflowConfigT>(value); }
66 template<typename HumanWorkflowConfigT = HumanWorkflowConfig>
67 HumanEvaluationConfig& WithHumanWorkflowConfig(HumanWorkflowConfigT&& value) { SetHumanWorkflowConfig(std::forward<HumanWorkflowConfigT>(value)); return *this;}
69
71
75 inline const Aws::Vector<HumanEvaluationCustomMetric>& GetCustomMetrics() const { return m_customMetrics; }
76 inline bool CustomMetricsHasBeenSet() const { return m_customMetricsHasBeenSet; }
77 template<typename CustomMetricsT = Aws::Vector<HumanEvaluationCustomMetric>>
78 void SetCustomMetrics(CustomMetricsT&& value) { m_customMetricsHasBeenSet = true; m_customMetrics = std::forward<CustomMetricsT>(value); }
79 template<typename CustomMetricsT = Aws::Vector<HumanEvaluationCustomMetric>>
80 HumanEvaluationConfig& WithCustomMetrics(CustomMetricsT&& value) { SetCustomMetrics(std::forward<CustomMetricsT>(value)); return *this;}
81 template<typename CustomMetricsT = HumanEvaluationCustomMetric>
82 HumanEvaluationConfig& AddCustomMetrics(CustomMetricsT&& value) { m_customMetricsHasBeenSet = true; m_customMetrics.emplace_back(std::forward<CustomMetricsT>(value)); return *this; }
84
86
90 inline const Aws::Vector<EvaluationDatasetMetricConfig>& GetDatasetMetricConfigs() const { return m_datasetMetricConfigs; }
91 inline bool DatasetMetricConfigsHasBeenSet() const { return m_datasetMetricConfigsHasBeenSet; }
92 template<typename DatasetMetricConfigsT = Aws::Vector<EvaluationDatasetMetricConfig>>
93 void SetDatasetMetricConfigs(DatasetMetricConfigsT&& value) { m_datasetMetricConfigsHasBeenSet = true; m_datasetMetricConfigs = std::forward<DatasetMetricConfigsT>(value); }
94 template<typename DatasetMetricConfigsT = Aws::Vector<EvaluationDatasetMetricConfig>>
95 HumanEvaluationConfig& WithDatasetMetricConfigs(DatasetMetricConfigsT&& value) { SetDatasetMetricConfigs(std::forward<DatasetMetricConfigsT>(value)); return *this;}
96 template<typename DatasetMetricConfigsT = EvaluationDatasetMetricConfig>
97 HumanEvaluationConfig& AddDatasetMetricConfigs(DatasetMetricConfigsT&& value) { m_datasetMetricConfigsHasBeenSet = true; m_datasetMetricConfigs.emplace_back(std::forward<DatasetMetricConfigsT>(value)); return *this; }
99 private:
100
101 HumanWorkflowConfig m_humanWorkflowConfig;
102 bool m_humanWorkflowConfigHasBeenSet = false;
103
105 bool m_customMetricsHasBeenSet = false;
106
107 Aws::Vector<EvaluationDatasetMetricConfig> m_datasetMetricConfigs;
108 bool m_datasetMetricConfigsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Bedrock
113} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
HumanEvaluationConfig & WithCustomMetrics(CustomMetricsT &&value)
AWS_BEDROCK_API HumanEvaluationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API HumanEvaluationConfig()=default
void SetDatasetMetricConfigs(DatasetMetricConfigsT &&value)
void SetHumanWorkflowConfig(HumanWorkflowConfigT &&value)
HumanEvaluationConfig & WithDatasetMetricConfigs(DatasetMetricConfigsT &&value)
HumanEvaluationConfig & WithHumanWorkflowConfig(HumanWorkflowConfigT &&value)
const HumanWorkflowConfig & GetHumanWorkflowConfig() const
AWS_BEDROCK_API HumanEvaluationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HumanEvaluationConfig & AddDatasetMetricConfigs(DatasetMetricConfigsT &&value)
HumanEvaluationConfig & AddCustomMetrics(CustomMetricsT &&value)
const Aws::Vector< HumanEvaluationCustomMetric > & GetCustomMetrics() const
const Aws::Vector< EvaluationDatasetMetricConfig > & GetDatasetMetricConfigs() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue