AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
EvaluationDatasetMetricConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/EvaluationDataset.h>
9#include <aws/bedrock/model/EvaluationTaskType.h>
10#include <aws/core/utils/memory/stl/AWSString.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
32 public:
33 AWS_BEDROCK_API EvaluationDatasetMetricConfig() = default;
36 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline EvaluationTaskType GetTaskType() const { return m_taskType; }
45 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
46 inline void SetTaskType(EvaluationTaskType value) {
47 m_taskTypeHasBeenSet = true;
48 m_taskType = value;
49 }
51 SetTaskType(value);
52 return *this;
53 }
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) {
64 m_datasetHasBeenSet = true;
65 m_dataset = std::forward<DatasetT>(value);
66 }
67 template <typename DatasetT = EvaluationDataset>
69 SetDataset(std::forward<DatasetT>(value));
70 return *this;
71 }
73
75
100 inline const Aws::Vector<Aws::String>& GetMetricNames() const { return m_metricNames; }
101 inline bool MetricNamesHasBeenSet() const { return m_metricNamesHasBeenSet; }
102 template <typename MetricNamesT = Aws::Vector<Aws::String>>
103 void SetMetricNames(MetricNamesT&& value) {
104 m_metricNamesHasBeenSet = true;
105 m_metricNames = std::forward<MetricNamesT>(value);
106 }
107 template <typename MetricNamesT = Aws::Vector<Aws::String>>
109 SetMetricNames(std::forward<MetricNamesT>(value));
110 return *this;
111 }
112 template <typename MetricNamesT = Aws::String>
114 m_metricNamesHasBeenSet = true;
115 m_metricNames.emplace_back(std::forward<MetricNamesT>(value));
116 return *this;
117 }
119 private:
121 bool m_taskTypeHasBeenSet = false;
122
123 EvaluationDataset m_dataset;
124 bool m_datasetHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_metricNames;
127 bool m_metricNamesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Bedrock
132} // 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