AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DetectDocumentTextResult.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
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Textract {
26namespace Model {
28 public:
29 AWS_TEXTRACT_API DetectDocumentTextResult() = default;
32
34
38 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
39 template <typename DocumentMetadataT = DocumentMetadata>
40 void SetDocumentMetadata(DocumentMetadataT&& value) {
41 m_documentMetadataHasBeenSet = true;
42 m_documentMetadata = std::forward<DocumentMetadataT>(value);
43 }
44 template <typename DocumentMetadataT = DocumentMetadata>
45 DetectDocumentTextResult& WithDocumentMetadata(DocumentMetadataT&& value) {
46 SetDocumentMetadata(std::forward<DocumentMetadataT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
57 template <typename BlocksT = Aws::Vector<Block>>
58 void SetBlocks(BlocksT&& value) {
59 m_blocksHasBeenSet = true;
60 m_blocks = std::forward<BlocksT>(value);
61 }
62 template <typename BlocksT = Aws::Vector<Block>>
64 SetBlocks(std::forward<BlocksT>(value));
65 return *this;
66 }
67 template <typename BlocksT = Block>
69 m_blocksHasBeenSet = true;
70 m_blocks.emplace_back(std::forward<BlocksT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDetectDocumentTextModelVersion() const { return m_detectDocumentTextModelVersion; }
80 template <typename DetectDocumentTextModelVersionT = Aws::String>
81 void SetDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) {
82 m_detectDocumentTextModelVersionHasBeenSet = true;
83 m_detectDocumentTextModelVersion = std::forward<DetectDocumentTextModelVersionT>(value);
84 }
85 template <typename DetectDocumentTextModelVersionT = Aws::String>
86 DetectDocumentTextResult& WithDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT&& value) {
87 SetDetectDocumentTextModelVersion(std::forward<DetectDocumentTextModelVersionT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 DocumentMetadata m_documentMetadata;
110
111 Aws::Vector<Block> m_blocks;
112
113 Aws::String m_detectDocumentTextModelVersion;
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_documentMetadataHasBeenSet = false;
118 bool m_blocksHasBeenSet = false;
119 bool m_detectDocumentTextModelVersionHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Textract
125} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_TEXTRACT_API DetectDocumentTextResult()=default
DetectDocumentTextResult & WithBlocks(BlocksT &&value)
AWS_TEXTRACT_API DetectDocumentTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectDocumentTextResult & WithDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT &&value)
AWS_TEXTRACT_API DetectDocumentTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectDocumentTextResult & AddBlocks(BlocksT &&value)
void SetDetectDocumentTextModelVersion(DetectDocumentTextModelVersionT &&value)
DetectDocumentTextResult & WithDocumentMetadata(DocumentMetadataT &&value)
DetectDocumentTextResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue