AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DocumentClassifierInputDataConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/AugmentedManifestsListItem.h>
9#include <aws/comprehend/model/DocumentClassifierDataFormat.h>
10#include <aws/comprehend/model/DocumentClassifierDocumentTypeFormat.h>
11#include <aws/comprehend/model/DocumentClassifierDocuments.h>
12#include <aws/comprehend/model/DocumentReaderConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.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
38 public:
39 AWS_COMPREHEND_API DocumentClassifierInputDataConfig() = default;
42 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
58 inline DocumentClassifierDataFormat GetDataFormat() const { return m_dataFormat; }
59 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
61 m_dataFormatHasBeenSet = true;
62 m_dataFormat = value;
63 }
65 SetDataFormat(value);
66 return *this;
67 }
69
71
81 inline const Aws::String& GetS3Uri() const { return m_s3Uri; }
82 inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
83 template <typename S3UriT = Aws::String>
84 void SetS3Uri(S3UriT&& value) {
85 m_s3UriHasBeenSet = true;
86 m_s3Uri = std::forward<S3UriT>(value);
87 }
88 template <typename S3UriT = Aws::String>
90 SetS3Uri(std::forward<S3UriT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetTestS3Uri() const { return m_testS3Uri; }
102 inline bool TestS3UriHasBeenSet() const { return m_testS3UriHasBeenSet; }
103 template <typename TestS3UriT = Aws::String>
104 void SetTestS3Uri(TestS3UriT&& value) {
105 m_testS3UriHasBeenSet = true;
106 m_testS3Uri = std::forward<TestS3UriT>(value);
107 }
108 template <typename TestS3UriT = Aws::String>
110 SetTestS3Uri(std::forward<TestS3UriT>(value));
111 return *this;
112 }
114
116
125 inline const Aws::String& GetLabelDelimiter() const { return m_labelDelimiter; }
126 inline bool LabelDelimiterHasBeenSet() const { return m_labelDelimiterHasBeenSet; }
127 template <typename LabelDelimiterT = Aws::String>
128 void SetLabelDelimiter(LabelDelimiterT&& value) {
129 m_labelDelimiterHasBeenSet = true;
130 m_labelDelimiter = std::forward<LabelDelimiterT>(value);
131 }
132 template <typename LabelDelimiterT = Aws::String>
134 SetLabelDelimiter(std::forward<LabelDelimiterT>(value));
135 return *this;
136 }
138
140
146 inline const Aws::Vector<AugmentedManifestsListItem>& GetAugmentedManifests() const { return m_augmentedManifests; }
147 inline bool AugmentedManifestsHasBeenSet() const { return m_augmentedManifestsHasBeenSet; }
148 template <typename AugmentedManifestsT = Aws::Vector<AugmentedManifestsListItem>>
149 void SetAugmentedManifests(AugmentedManifestsT&& value) {
150 m_augmentedManifestsHasBeenSet = true;
151 m_augmentedManifests = std::forward<AugmentedManifestsT>(value);
152 }
153 template <typename AugmentedManifestsT = Aws::Vector<AugmentedManifestsListItem>>
155 SetAugmentedManifests(std::forward<AugmentedManifestsT>(value));
156 return *this;
157 }
158 template <typename AugmentedManifestsT = AugmentedManifestsListItem>
160 m_augmentedManifestsHasBeenSet = true;
161 m_augmentedManifests.emplace_back(std::forward<AugmentedManifestsT>(value));
162 return *this;
163 }
165
167
172 inline DocumentClassifierDocumentTypeFormat GetDocumentType() const { return m_documentType; }
173 inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
175 m_documentTypeHasBeenSet = true;
176 m_documentType = value;
177 }
179 SetDocumentType(value);
180 return *this;
181 }
183
185
189 inline const DocumentClassifierDocuments& GetDocuments() const { return m_documents; }
190 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
191 template <typename DocumentsT = DocumentClassifierDocuments>
192 void SetDocuments(DocumentsT&& value) {
193 m_documentsHasBeenSet = true;
194 m_documents = std::forward<DocumentsT>(value);
195 }
196 template <typename DocumentsT = DocumentClassifierDocuments>
198 SetDocuments(std::forward<DocumentsT>(value));
199 return *this;
200 }
202
204
205 inline const DocumentReaderConfig& GetDocumentReaderConfig() const { return m_documentReaderConfig; }
206 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
207 template <typename DocumentReaderConfigT = DocumentReaderConfig>
208 void SetDocumentReaderConfig(DocumentReaderConfigT&& value) {
209 m_documentReaderConfigHasBeenSet = true;
210 m_documentReaderConfig = std::forward<DocumentReaderConfigT>(value);
211 }
212 template <typename DocumentReaderConfigT = DocumentReaderConfig>
214 SetDocumentReaderConfig(std::forward<DocumentReaderConfigT>(value));
215 return *this;
216 }
218 private:
220
221 Aws::String m_s3Uri;
222
223 Aws::String m_testS3Uri;
224
225 Aws::String m_labelDelimiter;
226
227 Aws::Vector<AugmentedManifestsListItem> m_augmentedManifests;
228
230
231 DocumentClassifierDocuments m_documents;
232
233 DocumentReaderConfig m_documentReaderConfig;
234 bool m_dataFormatHasBeenSet = false;
235 bool m_s3UriHasBeenSet = false;
236 bool m_testS3UriHasBeenSet = false;
237 bool m_labelDelimiterHasBeenSet = false;
238 bool m_augmentedManifestsHasBeenSet = false;
239 bool m_documentTypeHasBeenSet = false;
240 bool m_documentsHasBeenSet = false;
241 bool m_documentReaderConfigHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace Comprehend
246} // namespace Aws
AWS_COMPREHEND_API DocumentClassifierInputDataConfig()=default
DocumentClassifierInputDataConfig & WithDataFormat(DocumentClassifierDataFormat value)
DocumentClassifierInputDataConfig & WithDocuments(DocumentsT &&value)
DocumentClassifierInputDataConfig & WithDocumentReaderConfig(DocumentReaderConfigT &&value)
AWS_COMPREHEND_API DocumentClassifierInputDataConfig(Aws::Utils::Json::JsonView jsonValue)
DocumentClassifierInputDataConfig & WithTestS3Uri(TestS3UriT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentClassifierInputDataConfig & WithS3Uri(S3UriT &&value)
AWS_COMPREHEND_API DocumentClassifierInputDataConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentClassifierInputDataConfig & WithLabelDelimiter(LabelDelimiterT &&value)
DocumentClassifierInputDataConfig & AddAugmentedManifests(AugmentedManifestsT &&value)
DocumentClassifierInputDataConfig & WithAugmentedManifests(AugmentedManifestsT &&value)
DocumentClassifierInputDataConfig & WithDocumentType(DocumentClassifierDocumentTypeFormat value)
const Aws::Vector< AugmentedManifestsListItem > & GetAugmentedManifests() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue