AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EntityRecognizerInputDataConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/AugmentedManifestsListItem.h>
9#include <aws/comprehend/model/EntityRecognizerAnnotations.h>
10#include <aws/comprehend/model/EntityRecognizerDataFormat.h>
11#include <aws/comprehend/model/EntityRecognizerDocuments.h>
12#include <aws/comprehend/model/EntityRecognizerEntityList.h>
13#include <aws/comprehend/model/EntityTypesListItem.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Comprehend {
26namespace Model {
27
35 public:
36 AWS_COMPREHEND_API EntityRecognizerInputDataConfig() = default;
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
59 inline EntityRecognizerDataFormat GetDataFormat() const { return m_dataFormat; }
60 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
62 m_dataFormatHasBeenSet = true;
63 m_dataFormat = value;
64 }
66 SetDataFormat(value);
67 return *this;
68 }
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) {
85 m_entityTypesHasBeenSet = true;
86 m_entityTypes = std::forward<EntityTypesT>(value);
87 }
88 template <typename EntityTypesT = Aws::Vector<EntityTypesListItem>>
90 SetEntityTypes(std::forward<EntityTypesT>(value));
91 return *this;
92 }
93 template <typename EntityTypesT = EntityTypesListItem>
95 m_entityTypesHasBeenSet = true;
96 m_entityTypes.emplace_back(std::forward<EntityTypesT>(value));
97 return *this;
98 }
100
102
107 inline const EntityRecognizerDocuments& GetDocuments() const { return m_documents; }
108 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
109 template <typename DocumentsT = EntityRecognizerDocuments>
110 void SetDocuments(DocumentsT&& value) {
111 m_documentsHasBeenSet = true;
112 m_documents = std::forward<DocumentsT>(value);
113 }
114 template <typename DocumentsT = EntityRecognizerDocuments>
116 SetDocuments(std::forward<DocumentsT>(value));
117 return *this;
118 }
120
122
125 inline const EntityRecognizerAnnotations& GetAnnotations() const { return m_annotations; }
126 inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
127 template <typename AnnotationsT = EntityRecognizerAnnotations>
128 void SetAnnotations(AnnotationsT&& value) {
129 m_annotationsHasBeenSet = true;
130 m_annotations = std::forward<AnnotationsT>(value);
131 }
132 template <typename AnnotationsT = EntityRecognizerAnnotations>
134 SetAnnotations(std::forward<AnnotationsT>(value));
135 return *this;
136 }
138
140
144 inline const EntityRecognizerEntityList& GetEntityList() const { return m_entityList; }
145 inline bool EntityListHasBeenSet() const { return m_entityListHasBeenSet; }
146 template <typename EntityListT = EntityRecognizerEntityList>
147 void SetEntityList(EntityListT&& value) {
148 m_entityListHasBeenSet = true;
149 m_entityList = std::forward<EntityListT>(value);
150 }
151 template <typename EntityListT = EntityRecognizerEntityList>
153 SetEntityList(std::forward<EntityListT>(value));
154 return *this;
155 }
157
159
165 inline const Aws::Vector<AugmentedManifestsListItem>& GetAugmentedManifests() const { return m_augmentedManifests; }
166 inline bool AugmentedManifestsHasBeenSet() const { return m_augmentedManifestsHasBeenSet; }
167 template <typename AugmentedManifestsT = Aws::Vector<AugmentedManifestsListItem>>
168 void SetAugmentedManifests(AugmentedManifestsT&& value) {
169 m_augmentedManifestsHasBeenSet = true;
170 m_augmentedManifests = std::forward<AugmentedManifestsT>(value);
171 }
172 template <typename AugmentedManifestsT = Aws::Vector<AugmentedManifestsListItem>>
174 SetAugmentedManifests(std::forward<AugmentedManifestsT>(value));
175 return *this;
176 }
177 template <typename AugmentedManifestsT = AugmentedManifestsListItem>
179 m_augmentedManifestsHasBeenSet = true;
180 m_augmentedManifests.emplace_back(std::forward<AugmentedManifestsT>(value));
181 return *this;
182 }
184 private:
186
188
189 EntityRecognizerDocuments m_documents;
190
191 EntityRecognizerAnnotations m_annotations;
192
193 EntityRecognizerEntityList m_entityList;
194
195 Aws::Vector<AugmentedManifestsListItem> m_augmentedManifests;
196 bool m_dataFormatHasBeenSet = false;
197 bool m_entityTypesHasBeenSet = false;
198 bool m_documentsHasBeenSet = false;
199 bool m_annotationsHasBeenSet = false;
200 bool m_entityListHasBeenSet = false;
201 bool m_augmentedManifestsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Comprehend
206} // 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