AWS SDK for C++  1.8.126
AWS SDK for C++
EntityRecognizerMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Comprehend
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; }
48 
53  inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
54 
59  inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; }
60 
65  inline EntityRecognizerMetadata& WithNumberOfTrainedDocuments(int value) { SetNumberOfTrainedDocuments(value); return *this;}
66 
67 
72  inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; }
73 
78  inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
79 
84  inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; }
85 
90  inline EntityRecognizerMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;}
91 
92 
96  inline const EntityRecognizerEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
97 
101  inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
102 
106  inline void SetEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
107 
111  inline void SetEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
112 
116  inline EntityRecognizerMetadata& WithEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;}
117 
121  inline EntityRecognizerMetadata& WithEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;}
122 
123 
127  inline const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& GetEntityTypes() const{ return m_entityTypes; }
128 
132  inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; }
133 
137  inline void SetEntityTypes(const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; }
138 
142  inline void SetEntityTypes(Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); }
143 
147  inline EntityRecognizerMetadata& WithEntityTypes(const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& value) { SetEntityTypes(value); return *this;}
148 
152  inline EntityRecognizerMetadata& WithEntityTypes(Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>&& value) { SetEntityTypes(std::move(value)); return *this;}
153 
157  inline EntityRecognizerMetadata& AddEntityTypes(const EntityRecognizerMetadataEntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; }
158 
162  inline EntityRecognizerMetadata& AddEntityTypes(EntityRecognizerMetadataEntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; }
163 
164  private:
165 
166  int m_numberOfTrainedDocuments;
167  bool m_numberOfTrainedDocumentsHasBeenSet;
168 
169  int m_numberOfTestDocuments;
170  bool m_numberOfTestDocumentsHasBeenSet;
171 
172  EntityRecognizerEvaluationMetrics m_evaluationMetrics;
173  bool m_evaluationMetricsHasBeenSet;
174 
176  bool m_entityTypesHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace Comprehend
181 } // namespace Aws
Aws::Comprehend::Model::EntityRecognizerMetadata::WithEntityTypes
EntityRecognizerMetadata & WithEntityTypes(const Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &value)
Definition: EntityRecognizerMetadata.h:147
Aws::Comprehend::Model::EntityRecognizerMetadata::GetEntityTypes
const Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > & GetEntityTypes() const
Definition: EntityRecognizerMetadata.h:127
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::EntityRecognizerMetadata::SetEntityTypes
void SetEntityTypes(const Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &value)
Definition: EntityRecognizerMetadata.h:137
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
EntityRecognizerMetadataEntityTypesListItem.h
AWSVector.h
Aws::Comprehend::Model::EntityRecognizerMetadata::EntityTypesHasBeenSet
bool EntityTypesHasBeenSet() const
Definition: EntityRecognizerMetadata.h:132
Aws::Comprehend::Model::EntityRecognizerMetadata::SetEntityTypes
void SetEntityTypes(Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &&value)
Definition: EntityRecognizerMetadata.h:142
Aws::Comprehend::Model::EntityRecognizerMetadata::WithEvaluationMetrics
EntityRecognizerMetadata & WithEvaluationMetrics(const EntityRecognizerEvaluationMetrics &value)
Definition: EntityRecognizerMetadata.h:116
Aws::Comprehend::Model::EntityRecognizerMetadata::GetNumberOfTrainedDocuments
int GetNumberOfTrainedDocuments() const
Definition: EntityRecognizerMetadata.h:47
Aws::Comprehend::Model::EntityRecognizerMetadata::EntityRecognizerMetadata
EntityRecognizerMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::EntityRecognizerEvaluationMetrics
Definition: EntityRecognizerEvaluationMetrics.h:31
Aws::Comprehend::Model::EntityRecognizerMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::EntityRecognizerMetadata::SetNumberOfTrainedDocuments
void SetNumberOfTrainedDocuments(int value)
Definition: EntityRecognizerMetadata.h:59
Aws::Comprehend::Model::EntityRecognizerMetadata::NumberOfTestDocumentsHasBeenSet
bool NumberOfTestDocumentsHasBeenSet() const
Definition: EntityRecognizerMetadata.h:78
Aws::Comprehend::Model::EntityRecognizerMetadata::operator=
EntityRecognizerMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::EntityRecognizerMetadata::EntityRecognizerMetadata
EntityRecognizerMetadata()
Aws::Comprehend::Model::EntityRecognizerMetadata::WithEntityTypes
EntityRecognizerMetadata & WithEntityTypes(Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &&value)
Definition: EntityRecognizerMetadata.h:152
Aws::Comprehend::Model::EntityRecognizerMetadata::WithNumberOfTrainedDocuments
EntityRecognizerMetadata & WithNumberOfTrainedDocuments(int value)
Definition: EntityRecognizerMetadata.h:65
EntityRecognizerEvaluationMetrics.h
Aws::Comprehend::Model::EntityRecognizerMetadataEntityTypesListItem
Definition: EntityRecognizerMetadataEntityTypesListItem.h:34
Aws::Comprehend::Model::EntityRecognizerMetadata::GetNumberOfTestDocuments
int GetNumberOfTestDocuments() const
Definition: EntityRecognizerMetadata.h:72
Aws::Comprehend::Model::EntityRecognizerMetadata::WithNumberOfTestDocuments
EntityRecognizerMetadata & WithNumberOfTestDocuments(int value)
Definition: EntityRecognizerMetadata.h:90
Aws::Comprehend::Model::EntityRecognizerMetadata::AddEntityTypes
EntityRecognizerMetadata & AddEntityTypes(EntityRecognizerMetadataEntityTypesListItem &&value)
Definition: EntityRecognizerMetadata.h:162
Aws::Comprehend::Model::EntityRecognizerMetadata::AddEntityTypes
EntityRecognizerMetadata & AddEntityTypes(const EntityRecognizerMetadataEntityTypesListItem &value)
Definition: EntityRecognizerMetadata.h:157
Comprehend_EXPORTS.h
Aws::Comprehend::Model::EntityRecognizerMetadata::NumberOfTrainedDocumentsHasBeenSet
bool NumberOfTrainedDocumentsHasBeenSet() const
Definition: EntityRecognizerMetadata.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::EntityRecognizerMetadata::GetEvaluationMetrics
const EntityRecognizerEvaluationMetrics & GetEvaluationMetrics() const
Definition: EntityRecognizerMetadata.h:96
Aws::Comprehend::Model::EntityRecognizerMetadata::EvaluationMetricsHasBeenSet
bool EvaluationMetricsHasBeenSet() const
Definition: EntityRecognizerMetadata.h:101
Aws::Comprehend::Model::EntityRecognizerMetadata::SetEvaluationMetrics
void SetEvaluationMetrics(const EntityRecognizerEvaluationMetrics &value)
Definition: EntityRecognizerMetadata.h:106
Aws::Comprehend::Model::EntityRecognizerMetadata::SetEvaluationMetrics
void SetEvaluationMetrics(EntityRecognizerEvaluationMetrics &&value)
Definition: EntityRecognizerMetadata.h:111
Aws::Comprehend::Model::EntityRecognizerMetadata::SetNumberOfTestDocuments
void SetNumberOfTestDocuments(int value)
Definition: EntityRecognizerMetadata.h:84
Aws::Comprehend::Model::EntityRecognizerMetadata::WithEvaluationMetrics
EntityRecognizerMetadata & WithEvaluationMetrics(EntityRecognizerEvaluationMetrics &&value)
Definition: EntityRecognizerMetadata.h:121
Aws::Comprehend::Model::EntityRecognizerMetadata
Definition: EntityRecognizerMetadata.h:35