AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
AutomatedEvaluationCustomMetricConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock/model/CustomMetricEvaluatorModelConfig.h>
10#include <aws/bedrock/model/AutomatedEvaluationCustomMetricSource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_BEDROCK_API AutomatedEvaluationCustomMetricConfig() = default;
46 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::Vector<AutomatedEvaluationCustomMetricSource>& GetCustomMetrics() const { return m_customMetrics; }
55 inline bool CustomMetricsHasBeenSet() const { return m_customMetricsHasBeenSet; }
56 template<typename CustomMetricsT = Aws::Vector<AutomatedEvaluationCustomMetricSource>>
57 void SetCustomMetrics(CustomMetricsT&& value) { m_customMetricsHasBeenSet = true; m_customMetrics = std::forward<CustomMetricsT>(value); }
58 template<typename CustomMetricsT = Aws::Vector<AutomatedEvaluationCustomMetricSource>>
59 AutomatedEvaluationCustomMetricConfig& WithCustomMetrics(CustomMetricsT&& value) { SetCustomMetrics(std::forward<CustomMetricsT>(value)); return *this;}
60 template<typename CustomMetricsT = AutomatedEvaluationCustomMetricSource>
61 AutomatedEvaluationCustomMetricConfig& AddCustomMetrics(CustomMetricsT&& value) { m_customMetricsHasBeenSet = true; m_customMetrics.emplace_back(std::forward<CustomMetricsT>(value)); return *this; }
63
65
69 inline const CustomMetricEvaluatorModelConfig& GetEvaluatorModelConfig() const { return m_evaluatorModelConfig; }
70 inline bool EvaluatorModelConfigHasBeenSet() const { return m_evaluatorModelConfigHasBeenSet; }
71 template<typename EvaluatorModelConfigT = CustomMetricEvaluatorModelConfig>
72 void SetEvaluatorModelConfig(EvaluatorModelConfigT&& value) { m_evaluatorModelConfigHasBeenSet = true; m_evaluatorModelConfig = std::forward<EvaluatorModelConfigT>(value); }
73 template<typename EvaluatorModelConfigT = CustomMetricEvaluatorModelConfig>
74 AutomatedEvaluationCustomMetricConfig& WithEvaluatorModelConfig(EvaluatorModelConfigT&& value) { SetEvaluatorModelConfig(std::forward<EvaluatorModelConfigT>(value)); return *this;}
76 private:
77
79 bool m_customMetricsHasBeenSet = false;
80
81 CustomMetricEvaluatorModelConfig m_evaluatorModelConfig;
82 bool m_evaluatorModelConfigHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Bedrock
87} // 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