AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntityRecognizerMetadata.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/EntityRecognizerEvaluationMetrics.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/comprehend/model/EntityRecognizerMetadataEntityTypesListItem.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COMPREHEND_API EntityRecognizerMetadata();
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; }
49 inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
50 inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; }
53
55
59 inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; }
60 inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
61 inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; }
64
66
69 inline const EntityRecognizerEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
70 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
71 inline void SetEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
72 inline void SetEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
76
78
81 inline const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& GetEntityTypes() const{ return m_entityTypes; }
82 inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; }
83 inline void SetEntityTypes(const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; }
84 inline void SetEntityTypes(Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); }
87 inline EntityRecognizerMetadata& AddEntityTypes(const EntityRecognizerMetadataEntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; }
88 inline EntityRecognizerMetadata& AddEntityTypes(EntityRecognizerMetadataEntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; }
90 private:
91
92 int m_numberOfTrainedDocuments;
93 bool m_numberOfTrainedDocumentsHasBeenSet = false;
94
95 int m_numberOfTestDocuments;
96 bool m_numberOfTestDocumentsHasBeenSet = false;
97
98 EntityRecognizerEvaluationMetrics m_evaluationMetrics;
99 bool m_evaluationMetricsHasBeenSet = false;
100
102 bool m_entityTypesHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Comprehend
107} // namespace Aws
AWS_COMPREHEND_API EntityRecognizerMetadata(Aws::Utils::Json::JsonView jsonValue)
EntityRecognizerMetadata & WithNumberOfTrainedDocuments(int value)
void SetEntityTypes(Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &&value)
void SetEvaluationMetrics(const EntityRecognizerEvaluationMetrics &value)
const Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > & GetEntityTypes() const
void SetEvaluationMetrics(EntityRecognizerEvaluationMetrics &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
EntityRecognizerMetadata & WithNumberOfTestDocuments(int value)
EntityRecognizerMetadata & WithEntityTypes(const Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &value)
EntityRecognizerMetadata & AddEntityTypes(const EntityRecognizerMetadataEntityTypesListItem &value)
EntityRecognizerMetadata & WithEvaluationMetrics(EntityRecognizerEvaluationMetrics &&value)
EntityRecognizerMetadata & WithEvaluationMetrics(const EntityRecognizerEvaluationMetrics &value)
EntityRecognizerMetadata & AddEntityTypes(EntityRecognizerMetadataEntityTypesListItem &&value)
const EntityRecognizerEvaluationMetrics & GetEvaluationMetrics() const
AWS_COMPREHEND_API EntityRecognizerMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
EntityRecognizerMetadata & WithEntityTypes(Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &&value)
void SetEntityTypes(const Aws::Vector< EntityRecognizerMetadataEntityTypesListItem > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue