AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetDocumentTextDetectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/textract/Textract_EXPORTS.h>
11#include <aws/textract/model/Block.h>
12#include <aws/textract/model/DocumentMetadata.h>
13#include <aws/textract/model/JobStatus.h>
14#include <aws/textract/model/Warning.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Textract {
28namespace Model {
30 public:
31 AWS_TEXTRACT_API GetDocumentTextDetectionResult() = default;
34
36
41 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
42 template <typename DocumentMetadataT = DocumentMetadata>
43 void SetDocumentMetadata(DocumentMetadataT&& value) {
44 m_documentMetadataHasBeenSet = true;
45 m_documentMetadata = std::forward<DocumentMetadataT>(value);
46 }
47 template <typename DocumentMetadataT = DocumentMetadata>
49 SetDocumentMetadata(std::forward<DocumentMetadataT>(value));
50 return *this;
51 }
53
55
58 inline JobStatus GetJobStatus() const { return m_jobStatus; }
59 inline void SetJobStatus(JobStatus value) {
60 m_jobStatusHasBeenSet = true;
61 m_jobStatus = value;
62 }
64 SetJobStatus(value);
65 return *this;
66 }
68
70
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
93 template <typename BlocksT = Aws::Vector<Block>>
94 void SetBlocks(BlocksT&& value) {
95 m_blocksHasBeenSet = true;
96 m_blocks = std::forward<BlocksT>(value);
97 }
98 template <typename BlocksT = Aws::Vector<Block>>
100 SetBlocks(std::forward<BlocksT>(value));
101 return *this;
102 }
103 template <typename BlocksT = Block>
105 m_blocksHasBeenSet = true;
106 m_blocks.emplace_back(std::forward<BlocksT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<Warning>& GetWarnings() const { return m_warnings; }
117 template <typename WarningsT = Aws::Vector<Warning>>
118 void SetWarnings(WarningsT&& value) {
119 m_warningsHasBeenSet = true;
120 m_warnings = std::forward<WarningsT>(value);
121 }
122 template <typename WarningsT = Aws::Vector<Warning>>
124 SetWarnings(std::forward<WarningsT>(value));
125 return *this;
126 }
127 template <typename WarningsT = Warning>
129 m_warningsHasBeenSet = true;
130 m_warnings.emplace_back(std::forward<WarningsT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
141 template <typename StatusMessageT = Aws::String>
142 void SetStatusMessage(StatusMessageT&& value) {
143 m_statusMessageHasBeenSet = true;
144 m_statusMessage = std::forward<StatusMessageT>(value);
145 }
146 template <typename StatusMessageT = Aws::String>
148 SetStatusMessage(std::forward<StatusMessageT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetDetectDocumentTextModelVersion() const { return m_detectDocumentTextModelVersion; }
158 template <typename DetectDocumentTextModelVersionT = Aws::String>
159 void SetDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) {
160 m_detectDocumentTextModelVersionHasBeenSet = true;
161 m_detectDocumentTextModelVersion = std::forward<DetectDocumentTextModelVersionT>(value);
162 }
163 template <typename DetectDocumentTextModelVersionT = Aws::String>
164 GetDocumentTextDetectionResult& WithDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) {
165 SetDetectDocumentTextModelVersion(std::forward<DetectDocumentTextModelVersionT>(value));
166 return *this;
167 }
169
171
172 inline const Aws::String& GetRequestId() const { return m_requestId; }
173 template <typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) {
175 m_requestIdHasBeenSet = true;
176 m_requestId = std::forward<RequestIdT>(value);
177 }
178 template <typename RequestIdT = Aws::String>
180 SetRequestId(std::forward<RequestIdT>(value));
181 return *this;
182 }
184 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
185
186 private:
187 DocumentMetadata m_documentMetadata;
188
189 JobStatus m_jobStatus{JobStatus::NOT_SET};
190
191 Aws::String m_nextToken;
192
193 Aws::Vector<Block> m_blocks;
194
195 Aws::Vector<Warning> m_warnings;
196
197 Aws::String m_statusMessage;
198
199 Aws::String m_detectDocumentTextModelVersion;
200
201 Aws::String m_requestId;
202 Aws::Http::HttpResponseCode m_HttpResponseCode;
203 bool m_documentMetadataHasBeenSet = false;
204 bool m_jobStatusHasBeenSet = false;
205 bool m_nextTokenHasBeenSet = false;
206 bool m_blocksHasBeenSet = false;
207 bool m_warningsHasBeenSet = false;
208 bool m_statusMessageHasBeenSet = false;
209 bool m_detectDocumentTextModelVersionHasBeenSet = false;
210 bool m_requestIdHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace Textract
215} // namespace Aws
GetDocumentTextDetectionResult & AddBlocks(BlocksT &&value)
GetDocumentTextDetectionResult & WithNextToken(NextTokenT &&value)
AWS_TEXTRACT_API GetDocumentTextDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentTextDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetDocumentTextDetectionResult & WithRequestId(RequestIdT &&value)
GetDocumentTextDetectionResult & WithBlocks(BlocksT &&value)
GetDocumentTextDetectionResult & WithJobStatus(JobStatus value)
GetDocumentTextDetectionResult & WithDocumentMetadata(DocumentMetadataT &&value)
void SetDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT &&value)
GetDocumentTextDetectionResult & WithWarnings(WarningsT &&value)
GetDocumentTextDetectionResult & AddWarnings(WarningsT &&value)
GetDocumentTextDetectionResult & WithDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT &&value)
AWS_TEXTRACT_API GetDocumentTextDetectionResult()=default
AWS_TEXTRACT_API GetDocumentTextDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue