AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AutomatedEvaluationCustomMetricConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AutomatedEvaluationCustomMetricSource.h>
9#include <aws/bedrock/model/CustomMetricEvaluatorModelConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock {
22namespace Model {
23
37 public:
38 AWS_BEDROCK_API AutomatedEvaluationCustomMetricConfig() = default;
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const Aws::Vector<AutomatedEvaluationCustomMetricSource>& GetCustomMetrics() const { return m_customMetrics; }
49 inline bool CustomMetricsHasBeenSet() const { return m_customMetricsHasBeenSet; }
50 template <typename CustomMetricsT = Aws::Vector<AutomatedEvaluationCustomMetricSource>>
51 void SetCustomMetrics(CustomMetricsT&& value) {
52 m_customMetricsHasBeenSet = true;
53 m_customMetrics = std::forward<CustomMetricsT>(value);
54 }
55 template <typename CustomMetricsT = Aws::Vector<AutomatedEvaluationCustomMetricSource>>
57 SetCustomMetrics(std::forward<CustomMetricsT>(value));
58 return *this;
59 }
60 template <typename CustomMetricsT = AutomatedEvaluationCustomMetricSource>
62 m_customMetricsHasBeenSet = true;
63 m_customMetrics.emplace_back(std::forward<CustomMetricsT>(value));
64 return *this;
65 }
67
69
73 inline const CustomMetricEvaluatorModelConfig& GetEvaluatorModelConfig() const { return m_evaluatorModelConfig; }
74 inline bool EvaluatorModelConfigHasBeenSet() const { return m_evaluatorModelConfigHasBeenSet; }
75 template <typename EvaluatorModelConfigT = CustomMetricEvaluatorModelConfig>
76 void SetEvaluatorModelConfig(EvaluatorModelConfigT&& value) {
77 m_evaluatorModelConfigHasBeenSet = true;
78 m_evaluatorModelConfig = std::forward<EvaluatorModelConfigT>(value);
79 }
80 template <typename EvaluatorModelConfigT = CustomMetricEvaluatorModelConfig>
82 SetEvaluatorModelConfig(std::forward<EvaluatorModelConfigT>(value));
83 return *this;
84 }
86 private:
88 bool m_customMetricsHasBeenSet = false;
89
90 CustomMetricEvaluatorModelConfig m_evaluatorModelConfig;
91 bool m_evaluatorModelConfigHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Bedrock
96} // namespace Aws
AutomatedEvaluationCustomMetricConfig & WithCustomMetrics(CustomMetricsT &&value)
AWS_BEDROCK_API AutomatedEvaluationCustomMetricConfig(Aws::Utils::Json::JsonView jsonValue)
AutomatedEvaluationCustomMetricConfig & AddCustomMetrics(CustomMetricsT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API AutomatedEvaluationCustomMetricConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomatedEvaluationCustomMetricConfig & WithEvaluatorModelConfig(EvaluatorModelConfigT &&value)
const Aws::Vector< AutomatedEvaluationCustomMetricSource > & GetCustomMetrics() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue