AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
38
39
41
46 inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; }
47 inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadata = value; }
48 inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadata = std::move(value); }
52
54
57 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
58 inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; }
59 inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); }
60 inline GetDocumentTextDetectionResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
61 inline GetDocumentTextDetectionResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
63
65
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
72 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
73 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
74 inline GetDocumentTextDetectionResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
75 inline GetDocumentTextDetectionResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
76 inline GetDocumentTextDetectionResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
78
80
83 inline const Aws::Vector<Block>& GetBlocks() const{ return m_blocks; }
84 inline void SetBlocks(const Aws::Vector<Block>& value) { m_blocks = value; }
85 inline void SetBlocks(Aws::Vector<Block>&& value) { m_blocks = std::move(value); }
86 inline GetDocumentTextDetectionResult& WithBlocks(const Aws::Vector<Block>& value) { SetBlocks(value); return *this;}
87 inline GetDocumentTextDetectionResult& WithBlocks(Aws::Vector<Block>&& value) { SetBlocks(std::move(value)); return *this;}
88 inline GetDocumentTextDetectionResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; }
89 inline GetDocumentTextDetectionResult& AddBlocks(Block&& value) { m_blocks.push_back(std::move(value)); return *this; }
91
93
97 inline const Aws::Vector<Warning>& GetWarnings() const{ return m_warnings; }
98 inline void SetWarnings(const Aws::Vector<Warning>& value) { m_warnings = value; }
99 inline void SetWarnings(Aws::Vector<Warning>&& value) { m_warnings = std::move(value); }
101 inline GetDocumentTextDetectionResult& WithWarnings(Aws::Vector<Warning>&& value) { SetWarnings(std::move(value)); return *this;}
102 inline GetDocumentTextDetectionResult& AddWarnings(const Warning& value) { m_warnings.push_back(value); return *this; }
103 inline GetDocumentTextDetectionResult& AddWarnings(Warning&& value) { m_warnings.push_back(std::move(value)); return *this; }
105
107
111 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
112 inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
113 inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); }
114 inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
116 inline GetDocumentTextDetectionResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
117 inline GetDocumentTextDetectionResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
119
121
124 inline const Aws::String& GetDetectDocumentTextModelVersion() const{ return m_detectDocumentTextModelVersion; }
125 inline void SetDetectDocumentTextModelVersion(const Aws::String& value) { m_detectDocumentTextModelVersion = value; }
126 inline void SetDetectDocumentTextModelVersion(Aws::String&& value) { m_detectDocumentTextModelVersion = std::move(value); }
127 inline void SetDetectDocumentTextModelVersion(const char* value) { m_detectDocumentTextModelVersion.assign(value); }
132
134
135 inline const Aws::String& GetRequestId() const{ return m_requestId; }
136 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
137 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
138 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
139 inline GetDocumentTextDetectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
140 inline GetDocumentTextDetectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
141 inline GetDocumentTextDetectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
143 private:
144
145 DocumentMetadata m_documentMetadata;
146
147 JobStatus m_jobStatus;
148
149 Aws::String m_nextToken;
150
151 Aws::Vector<Block> m_blocks;
152
153 Aws::Vector<Warning> m_warnings;
154
155 Aws::String m_statusMessage;
156
157 Aws::String m_detectDocumentTextModelVersion;
158
159 Aws::String m_requestId;
160 };
161
162} // namespace Model
163} // namespace Textract
164} // namespace Aws
GetDocumentTextDetectionResult & WithBlocks(Aws::Vector< Block > &&value)
GetDocumentTextDetectionResult & WithStatusMessage(const char *value)
GetDocumentTextDetectionResult & WithRequestId(const Aws::String &value)
GetDocumentTextDetectionResult & WithStatusMessage(Aws::String &&value)
GetDocumentTextDetectionResult & WithNextToken(const Aws::String &value)
GetDocumentTextDetectionResult & WithNextToken(Aws::String &&value)
AWS_TEXTRACT_API GetDocumentTextDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentTextDetectionResult & WithDetectDocumentTextModelVersion(const char *value)
GetDocumentTextDetectionResult & WithJobStatus(JobStatus &&value)
GetDocumentTextDetectionResult & AddWarnings(Warning &&value)
GetDocumentTextDetectionResult & WithNextToken(const char *value)
GetDocumentTextDetectionResult & WithStatusMessage(const Aws::String &value)
GetDocumentTextDetectionResult & AddWarnings(const Warning &value)
GetDocumentTextDetectionResult & WithRequestId(Aws::String &&value)
GetDocumentTextDetectionResult & WithBlocks(const Aws::Vector< Block > &value)
GetDocumentTextDetectionResult & AddBlocks(const Block &value)
GetDocumentTextDetectionResult & WithWarnings(const Aws::Vector< Warning > &value)
GetDocumentTextDetectionResult & AddBlocks(Block &&value)
GetDocumentTextDetectionResult & WithJobStatus(const JobStatus &value)
GetDocumentTextDetectionResult & WithDocumentMetadata(const DocumentMetadata &value)
GetDocumentTextDetectionResult & WithRequestId(const char *value)
GetDocumentTextDetectionResult & WithDetectDocumentTextModelVersion(Aws::String &&value)
GetDocumentTextDetectionResult & WithDetectDocumentTextModelVersion(const Aws::String &value)
GetDocumentTextDetectionResult & WithWarnings(Aws::Vector< Warning > &&value)
GetDocumentTextDetectionResult & WithDocumentMetadata(DocumentMetadata &&value)
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