AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDocumentTextDetectionResult.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/model/DocumentMetadata.h>
9#include <aws/textract/model/JobStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/textract/model/Block.h>
13#include <aws/textract/model/Warning.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Textract
29{
30namespace Model
31{
33 {
34 public:
35 AWS_TEXTRACT_API GetDocumentTextDetectionResult() = default;
38
39
41
46 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
47 template<typename DocumentMetadataT = DocumentMetadata>
48 void SetDocumentMetadata(DocumentMetadataT&& value) { m_documentMetadataHasBeenSet = true; m_documentMetadata = std::forward<DocumentMetadataT>(value); }
49 template<typename DocumentMetadataT = DocumentMetadata>
50 GetDocumentTextDetectionResult& WithDocumentMetadata(DocumentMetadataT&& value) { SetDocumentMetadata(std::forward<DocumentMetadataT>(value)); return *this;}
52
54
57 inline JobStatus GetJobStatus() const { return m_jobStatus; }
58 inline void SetJobStatus(JobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
61
63
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 GetDocumentTextDetectionResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
80 template<typename BlocksT = Aws::Vector<Block>>
81 void SetBlocks(BlocksT&& value) { m_blocksHasBeenSet = true; m_blocks = std::forward<BlocksT>(value); }
82 template<typename BlocksT = Aws::Vector<Block>>
83 GetDocumentTextDetectionResult& WithBlocks(BlocksT&& value) { SetBlocks(std::forward<BlocksT>(value)); return *this;}
84 template<typename BlocksT = Block>
85 GetDocumentTextDetectionResult& AddBlocks(BlocksT&& value) { m_blocksHasBeenSet = true; m_blocks.emplace_back(std::forward<BlocksT>(value)); return *this; }
87
89
93 inline const Aws::Vector<Warning>& GetWarnings() const { return m_warnings; }
94 template<typename WarningsT = Aws::Vector<Warning>>
95 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
96 template<typename WarningsT = Aws::Vector<Warning>>
97 GetDocumentTextDetectionResult& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
98 template<typename WarningsT = Warning>
99 GetDocumentTextDetectionResult& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
101
103
107 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
108 template<typename StatusMessageT = Aws::String>
109 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
110 template<typename StatusMessageT = Aws::String>
111 GetDocumentTextDetectionResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
113
115
118 inline const Aws::String& GetDetectDocumentTextModelVersion() const { return m_detectDocumentTextModelVersion; }
119 template<typename DetectDocumentTextModelVersionT = Aws::String>
120 void SetDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) { m_detectDocumentTextModelVersionHasBeenSet = true; m_detectDocumentTextModelVersion = std::forward<DetectDocumentTextModelVersionT>(value); }
121 template<typename DetectDocumentTextModelVersionT = Aws::String>
122 GetDocumentTextDetectionResult& WithDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) { SetDetectDocumentTextModelVersion(std::forward<DetectDocumentTextModelVersionT>(value)); return *this;}
124
126
127 inline const Aws::String& GetRequestId() const { return m_requestId; }
128 template<typename RequestIdT = Aws::String>
129 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
130 template<typename RequestIdT = Aws::String>
131 GetDocumentTextDetectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
133 private:
134
135 DocumentMetadata m_documentMetadata;
136 bool m_documentMetadataHasBeenSet = false;
137
138 JobStatus m_jobStatus{JobStatus::NOT_SET};
139 bool m_jobStatusHasBeenSet = false;
140
141 Aws::String m_nextToken;
142 bool m_nextTokenHasBeenSet = false;
143
144 Aws::Vector<Block> m_blocks;
145 bool m_blocksHasBeenSet = false;
146
147 Aws::Vector<Warning> m_warnings;
148 bool m_warningsHasBeenSet = false;
149
150 Aws::String m_statusMessage;
151 bool m_statusMessageHasBeenSet = false;
152
153 Aws::String m_detectDocumentTextModelVersion;
154 bool m_detectDocumentTextModelVersionHasBeenSet = false;
155
156 Aws::String m_requestId;
157 bool m_requestIdHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Textract
162} // 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