AWS SDK for C++  1.8.126
AWS SDK for C++
ClassifierMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Comprehend
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline int GetNumberOfLabels() const{ return m_numberOfLabels; }
45 
49  inline bool NumberOfLabelsHasBeenSet() const { return m_numberOfLabelsHasBeenSet; }
50 
54  inline void SetNumberOfLabels(int value) { m_numberOfLabelsHasBeenSet = true; m_numberOfLabels = value; }
55 
59  inline ClassifierMetadata& WithNumberOfLabels(int value) { SetNumberOfLabels(value); return *this;}
60 
61 
66  inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; }
67 
72  inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
73 
78  inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; }
79 
84  inline ClassifierMetadata& WithNumberOfTrainedDocuments(int value) { SetNumberOfTrainedDocuments(value); return *this;}
85 
86 
92  inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; }
93 
99  inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
100 
106  inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; }
107 
113  inline ClassifierMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;}
114 
115 
120  inline const ClassifierEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
121 
126  inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
127 
132  inline void SetEvaluationMetrics(const ClassifierEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
133 
138  inline void SetEvaluationMetrics(ClassifierEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
139 
144  inline ClassifierMetadata& WithEvaluationMetrics(const ClassifierEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;}
145 
150  inline ClassifierMetadata& WithEvaluationMetrics(ClassifierEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;}
151 
152  private:
153 
154  int m_numberOfLabels;
155  bool m_numberOfLabelsHasBeenSet;
156 
157  int m_numberOfTrainedDocuments;
158  bool m_numberOfTrainedDocumentsHasBeenSet;
159 
160  int m_numberOfTestDocuments;
161  bool m_numberOfTestDocumentsHasBeenSet;
162 
163  ClassifierEvaluationMetrics m_evaluationMetrics;
164  bool m_evaluationMetricsHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Comprehend
169 } // namespace Aws
Aws::Comprehend::Model::ClassifierMetadata::WithNumberOfLabels
ClassifierMetadata & WithNumberOfLabels(int value)
Definition: ClassifierMetadata.h:59
ClassifierEvaluationMetrics.h
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::ClassifierMetadata::GetNumberOfLabels
int GetNumberOfLabels() const
Definition: ClassifierMetadata.h:44
Aws::Comprehend::Model::ClassifierMetadata::WithNumberOfTestDocuments
ClassifierMetadata & WithNumberOfTestDocuments(int value)
Definition: ClassifierMetadata.h:113
Aws::Comprehend::Model::ClassifierMetadata::GetNumberOfTrainedDocuments
int GetNumberOfTrainedDocuments() const
Definition: ClassifierMetadata.h:66
Aws::Comprehend::Model::ClassifierMetadata::SetEvaluationMetrics
void SetEvaluationMetrics(ClassifierEvaluationMetrics &&value)
Definition: ClassifierMetadata.h:138
Aws::Comprehend::Model::ClassifierMetadata::GetNumberOfTestDocuments
int GetNumberOfTestDocuments() const
Definition: ClassifierMetadata.h:92
Aws::Comprehend::Model::ClassifierMetadata::SetNumberOfLabels
void SetNumberOfLabels(int value)
Definition: ClassifierMetadata.h:54
Aws::Comprehend::Model::ClassifierMetadata::WithEvaluationMetrics
ClassifierMetadata & WithEvaluationMetrics(ClassifierEvaluationMetrics &&value)
Definition: ClassifierMetadata.h:150
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Comprehend::Model::ClassifierMetadata::NumberOfTrainedDocumentsHasBeenSet
bool NumberOfTrainedDocumentsHasBeenSet() const
Definition: ClassifierMetadata.h:72
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::ClassifierMetadata::GetEvaluationMetrics
const ClassifierEvaluationMetrics & GetEvaluationMetrics() const
Definition: ClassifierMetadata.h:120
Aws::Comprehend::Model::ClassifierEvaluationMetrics
Definition: ClassifierEvaluationMetrics.h:31
Aws::Comprehend::Model::ClassifierMetadata::NumberOfLabelsHasBeenSet
bool NumberOfLabelsHasBeenSet() const
Definition: ClassifierMetadata.h:49
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::ClassifierMetadata::SetNumberOfTrainedDocuments
void SetNumberOfTrainedDocuments(int value)
Definition: ClassifierMetadata.h:78
Aws::Comprehend::Model::ClassifierMetadata::WithEvaluationMetrics
ClassifierMetadata & WithEvaluationMetrics(const ClassifierEvaluationMetrics &value)
Definition: ClassifierMetadata.h:144
Aws::Comprehend::Model::ClassifierMetadata::SetEvaluationMetrics
void SetEvaluationMetrics(const ClassifierEvaluationMetrics &value)
Definition: ClassifierMetadata.h:132
Aws::Comprehend::Model::ClassifierMetadata
Definition: ClassifierMetadata.h:33
Aws::Comprehend::Model::ClassifierMetadata::operator=
ClassifierMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::ClassifierMetadata::WithNumberOfTrainedDocuments
ClassifierMetadata & WithNumberOfTrainedDocuments(int value)
Definition: ClassifierMetadata.h:84
Aws::Comprehend::Model::ClassifierMetadata::EvaluationMetricsHasBeenSet
bool EvaluationMetricsHasBeenSet() const
Definition: ClassifierMetadata.h:126
Aws::Comprehend::Model::ClassifierMetadata::NumberOfTestDocumentsHasBeenSet
bool NumberOfTestDocumentsHasBeenSet() const
Definition: ClassifierMetadata.h:99
Aws::Comprehend::Model::ClassifierMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::ClassifierMetadata::ClassifierMetadata
ClassifierMetadata()
Aws::Comprehend::Model::ClassifierMetadata::ClassifierMetadata
ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::ClassifierMetadata::SetNumberOfTestDocuments
void SetNumberOfTestDocuments(int value)
Definition: ClassifierMetadata.h:106