AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EntityRecognizerInputDataConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/EntityRecognizerDataFormat.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/comprehend/model/EntityRecognizerDocuments.h>
11#include <aws/comprehend/model/EntityRecognizerAnnotations.h>
12#include <aws/comprehend/model/EntityRecognizerEntityList.h>
13#include <aws/comprehend/model/EntityTypesListItem.h>
14#include <aws/comprehend/model/AugmentedManifestsListItem.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Comprehend
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_COMPREHEND_API EntityRecognizerInputDataConfig() = default;
44 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
65 inline EntityRecognizerDataFormat GetDataFormat() const { return m_dataFormat; }
66 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
67 inline void SetDataFormat(EntityRecognizerDataFormat value) { m_dataFormatHasBeenSet = true; m_dataFormat = value; }
70
72
81 inline const Aws::Vector<EntityTypesListItem>& GetEntityTypes() const { return m_entityTypes; }
82 inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; }
83 template<typename EntityTypesT = Aws::Vector<EntityTypesListItem>>
84 void SetEntityTypes(EntityTypesT&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::forward<EntityTypesT>(value); }
85 template<typename EntityTypesT = Aws::Vector<EntityTypesListItem>>
86 EntityRecognizerInputDataConfig& WithEntityTypes(EntityTypesT&& value) { SetEntityTypes(std::forward<EntityTypesT>(value)); return *this;}
87 template<typename EntityTypesT = EntityTypesListItem>
88 EntityRecognizerInputDataConfig& AddEntityTypes(EntityTypesT&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.emplace_back(std::forward<EntityTypesT>(value)); return *this; }
90
92
97 inline const EntityRecognizerDocuments& GetDocuments() const { return m_documents; }
98 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
99 template<typename DocumentsT = EntityRecognizerDocuments>
100 void SetDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents = std::forward<DocumentsT>(value); }
101 template<typename DocumentsT = EntityRecognizerDocuments>
102 EntityRecognizerInputDataConfig& WithDocuments(DocumentsT&& value) { SetDocuments(std::forward<DocumentsT>(value)); return *this;}
104
106
109 inline const EntityRecognizerAnnotations& GetAnnotations() const { return m_annotations; }
110 inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
111 template<typename AnnotationsT = EntityRecognizerAnnotations>
112 void SetAnnotations(AnnotationsT&& value) { m_annotationsHasBeenSet = true; m_annotations = std::forward<AnnotationsT>(value); }
113 template<typename AnnotationsT = EntityRecognizerAnnotations>
114 EntityRecognizerInputDataConfig& WithAnnotations(AnnotationsT&& value) { SetAnnotations(std::forward<AnnotationsT>(value)); return *this;}
116
118
122 inline const EntityRecognizerEntityList& GetEntityList() const { return m_entityList; }
123 inline bool EntityListHasBeenSet() const { return m_entityListHasBeenSet; }
124 template<typename EntityListT = EntityRecognizerEntityList>
125 void SetEntityList(EntityListT&& value) { m_entityListHasBeenSet = true; m_entityList = std::forward<EntityListT>(value); }
126 template<typename EntityListT = EntityRecognizerEntityList>
127 EntityRecognizerInputDataConfig& WithEntityList(EntityListT&& value) { SetEntityList(std::forward<EntityListT>(value)); return *this;}
129
131
137 inline const Aws::Vector<AugmentedManifestsListItem>& GetAugmentedManifests() const { return m_augmentedManifests; }
138 inline bool AugmentedManifestsHasBeenSet() const { return m_augmentedManifestsHasBeenSet; }
139 template<typename AugmentedManifestsT = Aws::Vector<AugmentedManifestsListItem>>
140 void SetAugmentedManifests(AugmentedManifestsT&& value) { m_augmentedManifestsHasBeenSet = true; m_augmentedManifests = std::forward<AugmentedManifestsT>(value); }
141 template<typename AugmentedManifestsT = Aws::Vector<AugmentedManifestsListItem>>
142 EntityRecognizerInputDataConfig& WithAugmentedManifests(AugmentedManifestsT&& value) { SetAugmentedManifests(std::forward<AugmentedManifestsT>(value)); return *this;}
143 template<typename AugmentedManifestsT = AugmentedManifestsListItem>
144 EntityRecognizerInputDataConfig& AddAugmentedManifests(AugmentedManifestsT&& value) { m_augmentedManifestsHasBeenSet = true; m_augmentedManifests.emplace_back(std::forward<AugmentedManifestsT>(value)); return *this; }
146 private:
147
149 bool m_dataFormatHasBeenSet = false;
150
152 bool m_entityTypesHasBeenSet = false;
153
154 EntityRecognizerDocuments m_documents;
155 bool m_documentsHasBeenSet = false;
156
157 EntityRecognizerAnnotations m_annotations;
158 bool m_annotationsHasBeenSet = false;
159
160 EntityRecognizerEntityList m_entityList;
161 bool m_entityListHasBeenSet = false;
162
163 Aws::Vector<AugmentedManifestsListItem> m_augmentedManifests;
164 bool m_augmentedManifestsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Comprehend
169} // namespace Aws
EntityRecognizerInputDataConfig & WithAugmentedManifests(AugmentedManifestsT &&value)
EntityRecognizerInputDataConfig & AddAugmentedManifests(AugmentedManifestsT &&value)
EntityRecognizerInputDataConfig & WithDataFormat(EntityRecognizerDataFormat value)
EntityRecognizerInputDataConfig & AddEntityTypes(EntityTypesT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
EntityRecognizerInputDataConfig & WithEntityTypes(EntityTypesT &&value)
EntityRecognizerInputDataConfig & WithAnnotations(AnnotationsT &&value)
EntityRecognizerInputDataConfig & WithDocuments(DocumentsT &&value)
AWS_COMPREHEND_API EntityRecognizerInputDataConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AugmentedManifestsListItem > & GetAugmentedManifests() const
EntityRecognizerInputDataConfig & WithEntityList(EntityListT &&value)
AWS_COMPREHEND_API EntityRecognizerInputDataConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API EntityRecognizerInputDataConfig()=default
const Aws::Vector< EntityTypesListItem > & GetEntityTypes() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue