AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
EvaluationDatasetMetricConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/EvaluationTaskType.h>
9#include <aws/bedrock/model/EvaluationDataset.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.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
36 {
37 public:
38 AWS_BEDROCK_API EvaluationDatasetMetricConfig() = default;
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline EvaluationTaskType GetTaskType() const { return m_taskType; }
51 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
52 inline void SetTaskType(EvaluationTaskType value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
55
57
60 inline const EvaluationDataset& GetDataset() const { return m_dataset; }
61 inline bool DatasetHasBeenSet() const { return m_datasetHasBeenSet; }
62 template<typename DatasetT = EvaluationDataset>
63 void SetDataset(DatasetT&& value) { m_datasetHasBeenSet = true; m_dataset = std::forward<DatasetT>(value); }
64 template<typename DatasetT = EvaluationDataset>
65 EvaluationDatasetMetricConfig& WithDataset(DatasetT&& value) { SetDataset(std::forward<DatasetT>(value)); return *this;}
67
69
94 inline const Aws::Vector<Aws::String>& GetMetricNames() const { return m_metricNames; }
95 inline bool MetricNamesHasBeenSet() const { return m_metricNamesHasBeenSet; }
96 template<typename MetricNamesT = Aws::Vector<Aws::String>>
97 void SetMetricNames(MetricNamesT&& value) { m_metricNamesHasBeenSet = true; m_metricNames = std::forward<MetricNamesT>(value); }
98 template<typename MetricNamesT = Aws::Vector<Aws::String>>
99 EvaluationDatasetMetricConfig& WithMetricNames(MetricNamesT&& value) { SetMetricNames(std::forward<MetricNamesT>(value)); return *this;}
100 template<typename MetricNamesT = Aws::String>
101 EvaluationDatasetMetricConfig& AddMetricNames(MetricNamesT&& value) { m_metricNamesHasBeenSet = true; m_metricNames.emplace_back(std::forward<MetricNamesT>(value)); return *this; }
103 private:
104
106 bool m_taskTypeHasBeenSet = false;
107
108 EvaluationDataset m_dataset;
109 bool m_datasetHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_metricNames;
112 bool m_metricNamesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Bedrock
117} // namespace Aws
const Aws::Vector< Aws::String > & GetMetricNames() const
EvaluationDatasetMetricConfig & WithMetricNames(MetricNamesT &&value)
AWS_BEDROCK_API EvaluationDatasetMetricConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API EvaluationDatasetMetricConfig()=default
EvaluationDatasetMetricConfig & WithTaskType(EvaluationTaskType value)
EvaluationDatasetMetricConfig & AddMetricNames(MetricNamesT &&value)
EvaluationDatasetMetricConfig & WithDataset(DatasetT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API EvaluationDatasetMetricConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue