AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
HumanEvaluationConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/EvaluationDatasetMetricConfig.h>
9#include <aws/bedrock/model/HumanEvaluationCustomMetric.h>
10#include <aws/bedrock/model/HumanWorkflowConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock {
23namespace Model {
24
46 public:
47 AWS_BEDROCK_API HumanEvaluationConfig() = default;
50 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
51
53
56 inline const HumanWorkflowConfig& GetHumanWorkflowConfig() const { return m_humanWorkflowConfig; }
57 inline bool HumanWorkflowConfigHasBeenSet() const { return m_humanWorkflowConfigHasBeenSet; }
58 template <typename HumanWorkflowConfigT = HumanWorkflowConfig>
59 void SetHumanWorkflowConfig(HumanWorkflowConfigT&& value) {
60 m_humanWorkflowConfigHasBeenSet = true;
61 m_humanWorkflowConfig = std::forward<HumanWorkflowConfigT>(value);
62 }
63 template <typename HumanWorkflowConfigT = HumanWorkflowConfig>
64 HumanEvaluationConfig& WithHumanWorkflowConfig(HumanWorkflowConfigT&& value) {
65 SetHumanWorkflowConfig(std::forward<HumanWorkflowConfigT>(value));
66 return *this;
67 }
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) {
79 m_customMetricsHasBeenSet = true;
80 m_customMetrics = std::forward<CustomMetricsT>(value);
81 }
82 template <typename CustomMetricsT = Aws::Vector<HumanEvaluationCustomMetric>>
83 HumanEvaluationConfig& WithCustomMetrics(CustomMetricsT&& value) {
84 SetCustomMetrics(std::forward<CustomMetricsT>(value));
85 return *this;
86 }
87 template <typename CustomMetricsT = HumanEvaluationCustomMetric>
88 HumanEvaluationConfig& AddCustomMetrics(CustomMetricsT&& value) {
89 m_customMetricsHasBeenSet = true;
90 m_customMetrics.emplace_back(std::forward<CustomMetricsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<EvaluationDatasetMetricConfig>& GetDatasetMetricConfigs() const { return m_datasetMetricConfigs; }
101 inline bool DatasetMetricConfigsHasBeenSet() const { return m_datasetMetricConfigsHasBeenSet; }
102 template <typename DatasetMetricConfigsT = Aws::Vector<EvaluationDatasetMetricConfig>>
103 void SetDatasetMetricConfigs(DatasetMetricConfigsT&& value) {
104 m_datasetMetricConfigsHasBeenSet = true;
105 m_datasetMetricConfigs = std::forward<DatasetMetricConfigsT>(value);
106 }
107 template <typename DatasetMetricConfigsT = Aws::Vector<EvaluationDatasetMetricConfig>>
108 HumanEvaluationConfig& WithDatasetMetricConfigs(DatasetMetricConfigsT&& value) {
109 SetDatasetMetricConfigs(std::forward<DatasetMetricConfigsT>(value));
110 return *this;
111 }
112 template <typename DatasetMetricConfigsT = EvaluationDatasetMetricConfig>
113 HumanEvaluationConfig& AddDatasetMetricConfigs(DatasetMetricConfigsT&& value) {
114 m_datasetMetricConfigsHasBeenSet = true;
115 m_datasetMetricConfigs.emplace_back(std::forward<DatasetMetricConfigsT>(value));
116 return *this;
117 }
119 private:
120 HumanWorkflowConfig m_humanWorkflowConfig;
121 bool m_humanWorkflowConfigHasBeenSet = false;
122
124 bool m_customMetricsHasBeenSet = false;
125
126 Aws::Vector<EvaluationDatasetMetricConfig> m_datasetMetricConfigs;
127 bool m_datasetMetricConfigsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Bedrock
132} // 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