AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetDocumentTextDetectionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/Textract_EXPORTS.h>
10#include <aws/textract/model/Block.h>
11#include <aws/textract/model/DocumentMetadata.h>
12#include <aws/textract/model/JobStatus.h>
13#include <aws/textract/model/Warning.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Textract {
27namespace Model {
29 public:
30 AWS_TEXTRACT_API GetDocumentTextDetectionResult() = default;
33
35
40 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
41 template <typename DocumentMetadataT = DocumentMetadata>
42 void SetDocumentMetadata(DocumentMetadataT&& value) {
43 m_documentMetadataHasBeenSet = true;
44 m_documentMetadata = std::forward<DocumentMetadataT>(value);
45 }
46 template <typename DocumentMetadataT = DocumentMetadata>
48 SetDocumentMetadata(std::forward<DocumentMetadataT>(value));
49 return *this;
50 }
52
54
57 inline JobStatus GetJobStatus() const { return m_jobStatus; }
58 inline void SetJobStatus(JobStatus value) {
59 m_jobStatusHasBeenSet = true;
60 m_jobStatus = value;
61 }
63 SetJobStatus(value);
64 return *this;
65 }
67
69
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 template <typename NextTokenT = Aws::String>
76 void SetNextToken(NextTokenT&& value) {
77 m_nextTokenHasBeenSet = true;
78 m_nextToken = std::forward<NextTokenT>(value);
79 }
80 template <typename NextTokenT = Aws::String>
82 SetNextToken(std::forward<NextTokenT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
92 template <typename BlocksT = Aws::Vector<Block>>
93 void SetBlocks(BlocksT&& value) {
94 m_blocksHasBeenSet = true;
95 m_blocks = std::forward<BlocksT>(value);
96 }
97 template <typename BlocksT = Aws::Vector<Block>>
99 SetBlocks(std::forward<BlocksT>(value));
100 return *this;
101 }
102 template <typename BlocksT = Block>
104 m_blocksHasBeenSet = true;
105 m_blocks.emplace_back(std::forward<BlocksT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<Warning>& GetWarnings() const { return m_warnings; }
116 template <typename WarningsT = Aws::Vector<Warning>>
117 void SetWarnings(WarningsT&& value) {
118 m_warningsHasBeenSet = true;
119 m_warnings = std::forward<WarningsT>(value);
120 }
121 template <typename WarningsT = Aws::Vector<Warning>>
123 SetWarnings(std::forward<WarningsT>(value));
124 return *this;
125 }
126 template <typename WarningsT = Warning>
128 m_warningsHasBeenSet = true;
129 m_warnings.emplace_back(std::forward<WarningsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
140 template <typename StatusMessageT = Aws::String>
141 void SetStatusMessage(StatusMessageT&& value) {
142 m_statusMessageHasBeenSet = true;
143 m_statusMessage = std::forward<StatusMessageT>(value);
144 }
145 template <typename StatusMessageT = Aws::String>
147 SetStatusMessage(std::forward<StatusMessageT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetDetectDocumentTextModelVersion() const { return m_detectDocumentTextModelVersion; }
157 template <typename DetectDocumentTextModelVersionT = Aws::String>
158 void SetDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) {
159 m_detectDocumentTextModelVersionHasBeenSet = true;
160 m_detectDocumentTextModelVersion = std::forward<DetectDocumentTextModelVersionT>(value);
161 }
162 template <typename DetectDocumentTextModelVersionT = Aws::String>
163 GetDocumentTextDetectionResult& WithDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) {
164 SetDetectDocumentTextModelVersion(std::forward<DetectDocumentTextModelVersionT>(value));
165 return *this;
166 }
168
170
171 inline const Aws::String& GetRequestId() const { return m_requestId; }
172 template <typename RequestIdT = Aws::String>
173 void SetRequestId(RequestIdT&& value) {
174 m_requestIdHasBeenSet = true;
175 m_requestId = std::forward<RequestIdT>(value);
176 }
177 template <typename RequestIdT = Aws::String>
179 SetRequestId(std::forward<RequestIdT>(value));
180 return *this;
181 }
183 private:
184 DocumentMetadata m_documentMetadata;
185
186 JobStatus m_jobStatus{JobStatus::NOT_SET};
187
188 Aws::String m_nextToken;
189
190 Aws::Vector<Block> m_blocks;
191
192 Aws::Vector<Warning> m_warnings;
193
194 Aws::String m_statusMessage;
195
196 Aws::String m_detectDocumentTextModelVersion;
197
198 Aws::String m_requestId;
199 bool m_documentMetadataHasBeenSet = false;
200 bool m_jobStatusHasBeenSet = false;
201 bool m_nextTokenHasBeenSet = false;
202 bool m_blocksHasBeenSet = false;
203 bool m_warningsHasBeenSet = false;
204 bool m_statusMessageHasBeenSet = false;
205 bool m_detectDocumentTextModelVersionHasBeenSet = false;
206 bool m_requestIdHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace Textract
211} // 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