AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COMPREHEND_API ClassifierMetadata();
36 AWS_COMPREHEND_API ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetNumberOfLabels() const{ return m_numberOfLabels; }
46 inline bool NumberOfLabelsHasBeenSet() const { return m_numberOfLabelsHasBeenSet; }
47 inline void SetNumberOfLabels(int value) { m_numberOfLabelsHasBeenSet = true; m_numberOfLabels = value; }
48 inline ClassifierMetadata& WithNumberOfLabels(int value) { SetNumberOfLabels(value); return *this;}
50
52
56 inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; }
57 inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
58 inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; }
61
63
68 inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; }
69 inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
70 inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; }
71 inline ClassifierMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;}
73
75
79 inline const ClassifierEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
80 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
81 inline void SetEvaluationMetrics(const ClassifierEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
82 inline void SetEvaluationMetrics(ClassifierEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
86 private:
87
88 int m_numberOfLabels;
89 bool m_numberOfLabelsHasBeenSet = false;
90
91 int m_numberOfTrainedDocuments;
92 bool m_numberOfTrainedDocumentsHasBeenSet = false;
93
94 int m_numberOfTestDocuments;
95 bool m_numberOfTestDocumentsHasBeenSet = false;
96
97 ClassifierEvaluationMetrics m_evaluationMetrics;
98 bool m_evaluationMetricsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Comprehend
103} // namespace Aws
AWS_COMPREHEND_API ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetEvaluationMetrics(const ClassifierEvaluationMetrics &value)
const ClassifierEvaluationMetrics & GetEvaluationMetrics() const
ClassifierMetadata & WithEvaluationMetrics(const ClassifierEvaluationMetrics &value)
ClassifierMetadata & WithNumberOfTestDocuments(int value)
ClassifierMetadata & WithNumberOfTrainedDocuments(int value)
ClassifierMetadata & WithEvaluationMetrics(ClassifierEvaluationMetrics &&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(ClassifierEvaluationMetrics &&value)
Aws::Utils::Json::JsonValue JsonValue