AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ClassifyDocumentResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/DocumentClass.h>
9#include <aws/comprehend/model/DocumentLabel.h>
10#include <aws/comprehend/model/DocumentMetadata.h>
11#include <aws/comprehend/model/DocumentTypeListItem.h>
12#include <aws/comprehend/model/ErrorsListItem.h>
13#include <aws/comprehend/model/WarningsListItem.h>
14#include <aws/core/http/HttpResponse.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Comprehend {
30namespace Model {
32 public:
33 AWS_COMPREHEND_API ClassifyDocumentResult() = default;
36
38
47 inline const Aws::Vector<DocumentClass>& GetClasses() const { return m_classes; }
48 template <typename ClassesT = Aws::Vector<DocumentClass>>
49 void SetClasses(ClassesT&& value) {
50 m_classesHasBeenSet = true;
51 m_classes = std::forward<ClassesT>(value);
52 }
53 template <typename ClassesT = Aws::Vector<DocumentClass>>
55 SetClasses(std::forward<ClassesT>(value));
56 return *this;
57 }
58 template <typename ClassesT = DocumentClass>
60 m_classesHasBeenSet = true;
61 m_classes.emplace_back(std::forward<ClassesT>(value));
62 return *this;
63 }
65
67
74 inline const Aws::Vector<DocumentLabel>& GetLabels() const { return m_labels; }
75 template <typename LabelsT = Aws::Vector<DocumentLabel>>
76 void SetLabels(LabelsT&& value) {
77 m_labelsHasBeenSet = true;
78 m_labels = std::forward<LabelsT>(value);
79 }
80 template <typename LabelsT = Aws::Vector<DocumentLabel>>
82 SetLabels(std::forward<LabelsT>(value));
83 return *this;
84 }
85 template <typename LabelsT = DocumentLabel>
87 m_labelsHasBeenSet = true;
88 m_labels.emplace_back(std::forward<LabelsT>(value));
89 return *this;
90 }
92
94
98 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
99 template <typename DocumentMetadataT = DocumentMetadata>
100 void SetDocumentMetadata(DocumentMetadataT&& value) {
101 m_documentMetadataHasBeenSet = true;
102 m_documentMetadata = std::forward<DocumentMetadataT>(value);
103 }
104 template <typename DocumentMetadataT = DocumentMetadata>
105 ClassifyDocumentResult& WithDocumentMetadata(DocumentMetadataT&& value) {
106 SetDocumentMetadata(std::forward<DocumentMetadataT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Vector<DocumentTypeListItem>& GetDocumentType() const { return m_documentType; }
118 template <typename DocumentTypeT = Aws::Vector<DocumentTypeListItem>>
119 void SetDocumentType(DocumentTypeT&& value) {
120 m_documentTypeHasBeenSet = true;
121 m_documentType = std::forward<DocumentTypeT>(value);
122 }
123 template <typename DocumentTypeT = Aws::Vector<DocumentTypeListItem>>
124 ClassifyDocumentResult& WithDocumentType(DocumentTypeT&& value) {
125 SetDocumentType(std::forward<DocumentTypeT>(value));
126 return *this;
127 }
128 template <typename DocumentTypeT = DocumentTypeListItem>
129 ClassifyDocumentResult& AddDocumentType(DocumentTypeT&& value) {
130 m_documentTypeHasBeenSet = true;
131 m_documentType.emplace_back(std::forward<DocumentTypeT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Vector<ErrorsListItem>& GetErrors() const { return m_errors; }
142 template <typename ErrorsT = Aws::Vector<ErrorsListItem>>
143 void SetErrors(ErrorsT&& value) {
144 m_errorsHasBeenSet = true;
145 m_errors = std::forward<ErrorsT>(value);
146 }
147 template <typename ErrorsT = Aws::Vector<ErrorsListItem>>
149 SetErrors(std::forward<ErrorsT>(value));
150 return *this;
151 }
152 template <typename ErrorsT = ErrorsListItem>
154 m_errorsHasBeenSet = true;
155 m_errors.emplace_back(std::forward<ErrorsT>(value));
156 return *this;
157 }
159
161
168 inline const Aws::Vector<WarningsListItem>& GetWarnings() const { return m_warnings; }
169 template <typename WarningsT = Aws::Vector<WarningsListItem>>
170 void SetWarnings(WarningsT&& value) {
171 m_warningsHasBeenSet = true;
172 m_warnings = std::forward<WarningsT>(value);
173 }
174 template <typename WarningsT = Aws::Vector<WarningsListItem>>
176 SetWarnings(std::forward<WarningsT>(value));
177 return *this;
178 }
179 template <typename WarningsT = WarningsListItem>
181 m_warningsHasBeenSet = true;
182 m_warnings.emplace_back(std::forward<WarningsT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
202
203 private:
205
207
208 DocumentMetadata m_documentMetadata;
209
211
213
215
216 Aws::String m_requestId;
217 Aws::Http::HttpResponseCode m_HttpResponseCode;
218 bool m_classesHasBeenSet = false;
219 bool m_labelsHasBeenSet = false;
220 bool m_documentMetadataHasBeenSet = false;
221 bool m_documentTypeHasBeenSet = false;
222 bool m_errorsHasBeenSet = false;
223 bool m_warningsHasBeenSet = false;
224 bool m_requestIdHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace Comprehend
229} // namespace Aws
ClassifyDocumentResult & WithWarnings(WarningsT &&value)
ClassifyDocumentResult & WithClasses(ClassesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ClassifyDocumentResult & AddDocumentType(DocumentTypeT &&value)
const DocumentMetadata & GetDocumentMetadata() const
ClassifyDocumentResult & AddWarnings(WarningsT &&value)
ClassifyDocumentResult & AddClasses(ClassesT &&value)
ClassifyDocumentResult & WithRequestId(RequestIdT &&value)
AWS_COMPREHEND_API ClassifyDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ClassifyDocumentResult & WithDocumentMetadata(DocumentMetadataT &&value)
ClassifyDocumentResult & WithErrors(ErrorsT &&value)
AWS_COMPREHEND_API ClassifyDocumentResult()=default
const Aws::Vector< DocumentLabel > & GetLabels() const
ClassifyDocumentResult & AddLabels(LabelsT &&value)
const Aws::Vector< DocumentTypeListItem > & GetDocumentType() const
ClassifyDocumentResult & WithDocumentType(DocumentTypeT &&value)
const Aws::Vector< WarningsListItem > & GetWarnings() const
AWS_COMPREHEND_API ClassifyDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DocumentClass > & GetClasses() const
ClassifyDocumentResult & WithLabels(LabelsT &&value)
ClassifyDocumentResult & AddErrors(ErrorsT &&value)
const Aws::Vector< ErrorsListItem > & GetErrors() 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