AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClassifierMetadata.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/ClassifierEvaluationMetrics.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
29 public:
30 AWS_COMPREHEND_API ClassifierMetadata() = default;
31 AWS_COMPREHEND_API ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetNumberOfLabels() const { return m_numberOfLabels; }
40 inline bool NumberOfLabelsHasBeenSet() const { return m_numberOfLabelsHasBeenSet; }
41 inline void SetNumberOfLabels(int value) {
42 m_numberOfLabelsHasBeenSet = true;
43 m_numberOfLabels = value;
44 }
46 SetNumberOfLabels(value);
47 return *this;
48 }
50
52
56 inline int GetNumberOfTrainedDocuments() const { return m_numberOfTrainedDocuments; }
57 inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
58 inline void SetNumberOfTrainedDocuments(int value) {
59 m_numberOfTrainedDocumentsHasBeenSet = true;
60 m_numberOfTrainedDocuments = value;
61 }
64 return *this;
65 }
67
69
74 inline int GetNumberOfTestDocuments() const { return m_numberOfTestDocuments; }
75 inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
76 inline void SetNumberOfTestDocuments(int value) {
77 m_numberOfTestDocumentsHasBeenSet = true;
78 m_numberOfTestDocuments = value;
79 }
82 return *this;
83 }
85
87
91 inline const ClassifierEvaluationMetrics& GetEvaluationMetrics() const { return m_evaluationMetrics; }
92 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
93 template <typename EvaluationMetricsT = ClassifierEvaluationMetrics>
94 void SetEvaluationMetrics(EvaluationMetricsT&& value) {
95 m_evaluationMetricsHasBeenSet = true;
96 m_evaluationMetrics = std::forward<EvaluationMetricsT>(value);
97 }
98 template <typename EvaluationMetricsT = ClassifierEvaluationMetrics>
99 ClassifierMetadata& WithEvaluationMetrics(EvaluationMetricsT&& value) {
100 SetEvaluationMetrics(std::forward<EvaluationMetricsT>(value));
101 return *this;
102 }
104 private:
105 int m_numberOfLabels{0};
106
107 int m_numberOfTrainedDocuments{0};
108
109 int m_numberOfTestDocuments{0};
110
111 ClassifierEvaluationMetrics m_evaluationMetrics;
112 bool m_numberOfLabelsHasBeenSet = false;
113 bool m_numberOfTrainedDocumentsHasBeenSet = false;
114 bool m_numberOfTestDocumentsHasBeenSet = false;
115 bool m_evaluationMetricsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Comprehend
120} // namespace Aws
AWS_COMPREHEND_API ClassifierMetadata()=default
AWS_COMPREHEND_API ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue)
const ClassifierEvaluationMetrics & GetEvaluationMetrics() const
ClassifierMetadata & WithNumberOfTestDocuments(int value)
ClassifierMetadata & WithNumberOfTrainedDocuments(int value)
ClassifierMetadata & WithEvaluationMetrics(EvaluationMetricsT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API ClassifierMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ClassifierMetadata & WithNumberOfLabels(int value)
void SetEvaluationMetrics(EvaluationMetricsT &&value)
Aws::Utils::Json::JsonValue JsonValue