AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
AutomatedEvaluationConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AutomatedEvaluationCustomMetricConfig.h>
9#include <aws/bedrock/model/EvaluationDatasetMetricConfig.h>
10#include <aws/bedrock/model/EvaluatorModelConfig.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
33 public:
34 AWS_BEDROCK_API AutomatedEvaluationConfig() = default;
37 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<EvaluationDatasetMetricConfig>& GetDatasetMetricConfigs() const { return m_datasetMetricConfigs; }
45 inline bool DatasetMetricConfigsHasBeenSet() const { return m_datasetMetricConfigsHasBeenSet; }
46 template <typename DatasetMetricConfigsT = Aws::Vector<EvaluationDatasetMetricConfig>>
47 void SetDatasetMetricConfigs(DatasetMetricConfigsT&& value) {
48 m_datasetMetricConfigsHasBeenSet = true;
49 m_datasetMetricConfigs = std::forward<DatasetMetricConfigsT>(value);
50 }
51 template <typename DatasetMetricConfigsT = Aws::Vector<EvaluationDatasetMetricConfig>>
52 AutomatedEvaluationConfig& WithDatasetMetricConfigs(DatasetMetricConfigsT&& value) {
53 SetDatasetMetricConfigs(std::forward<DatasetMetricConfigsT>(value));
54 return *this;
55 }
56 template <typename DatasetMetricConfigsT = EvaluationDatasetMetricConfig>
57 AutomatedEvaluationConfig& AddDatasetMetricConfigs(DatasetMetricConfigsT&& value) {
58 m_datasetMetricConfigsHasBeenSet = true;
59 m_datasetMetricConfigs.emplace_back(std::forward<DatasetMetricConfigsT>(value));
60 return *this;
61 }
63
65
71 inline const EvaluatorModelConfig& GetEvaluatorModelConfig() const { return m_evaluatorModelConfig; }
72 inline bool EvaluatorModelConfigHasBeenSet() const { return m_evaluatorModelConfigHasBeenSet; }
73 template <typename EvaluatorModelConfigT = EvaluatorModelConfig>
74 void SetEvaluatorModelConfig(EvaluatorModelConfigT&& value) {
75 m_evaluatorModelConfigHasBeenSet = true;
76 m_evaluatorModelConfig = std::forward<EvaluatorModelConfigT>(value);
77 }
78 template <typename EvaluatorModelConfigT = EvaluatorModelConfig>
79 AutomatedEvaluationConfig& WithEvaluatorModelConfig(EvaluatorModelConfigT&& value) {
80 SetEvaluatorModelConfig(std::forward<EvaluatorModelConfigT>(value));
81 return *this;
82 }
84
86
90 inline const AutomatedEvaluationCustomMetricConfig& GetCustomMetricConfig() const { return m_customMetricConfig; }
91 inline bool CustomMetricConfigHasBeenSet() const { return m_customMetricConfigHasBeenSet; }
92 template <typename CustomMetricConfigT = AutomatedEvaluationCustomMetricConfig>
93 void SetCustomMetricConfig(CustomMetricConfigT&& value) {
94 m_customMetricConfigHasBeenSet = true;
95 m_customMetricConfig = std::forward<CustomMetricConfigT>(value);
96 }
97 template <typename CustomMetricConfigT = AutomatedEvaluationCustomMetricConfig>
98 AutomatedEvaluationConfig& WithCustomMetricConfig(CustomMetricConfigT&& value) {
99 SetCustomMetricConfig(std::forward<CustomMetricConfigT>(value));
100 return *this;
101 }
103 private:
104 Aws::Vector<EvaluationDatasetMetricConfig> m_datasetMetricConfigs;
105 bool m_datasetMetricConfigsHasBeenSet = false;
106
107 EvaluatorModelConfig m_evaluatorModelConfig;
108 bool m_evaluatorModelConfigHasBeenSet = false;
109
110 AutomatedEvaluationCustomMetricConfig m_customMetricConfig;
111 bool m_customMetricConfigHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Bedrock
116} // namespace Aws
AutomatedEvaluationConfig & WithDatasetMetricConfigs(DatasetMetricConfigsT &&value)
AutomatedEvaluationConfig & WithCustomMetricConfig(CustomMetricConfigT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API AutomatedEvaluationConfig()=default
void SetEvaluatorModelConfig(EvaluatorModelConfigT &&value)
void SetDatasetMetricConfigs(DatasetMetricConfigsT &&value)
void SetCustomMetricConfig(CustomMetricConfigT &&value)
const AutomatedEvaluationCustomMetricConfig & GetCustomMetricConfig() const
const Aws::Vector< EvaluationDatasetMetricConfig > & GetDatasetMetricConfigs() const
AutomatedEvaluationConfig & AddDatasetMetricConfigs(DatasetMetricConfigsT &&value)
AWS_BEDROCK_API AutomatedEvaluationConfig(Aws::Utils::Json::JsonView jsonValue)
AutomatedEvaluationConfig & WithEvaluatorModelConfig(EvaluatorModelConfigT &&value)
const EvaluatorModelConfig & GetEvaluatorModelConfig() const
AWS_BEDROCK_API AutomatedEvaluationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue