AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetTextDetectionResult.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/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/TextDetectionResult.h>
12#include <aws/rekognition/model/Video.h>
13#include <aws/rekognition/model/VideoJobStatus.h>
14#include <aws/rekognition/model/VideoMetadata.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 Rekognition {
28namespace Model {
30 public:
31 AWS_REKOGNITION_API GetTextDetectionResult() = default;
34
36
39 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
40 inline void SetJobStatus(VideoJobStatus value) {
41 m_jobStatusHasBeenSet = true;
42 m_jobStatus = value;
43 }
45 SetJobStatus(value);
46 return *this;
47 }
49
51
55 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
56 template <typename StatusMessageT = Aws::String>
57 void SetStatusMessage(StatusMessageT&& value) {
58 m_statusMessageHasBeenSet = true;
59 m_statusMessage = std::forward<StatusMessageT>(value);
60 }
61 template <typename StatusMessageT = Aws::String>
62 GetTextDetectionResult& WithStatusMessage(StatusMessageT&& value) {
63 SetStatusMessage(std::forward<StatusMessageT>(value));
64 return *this;
65 }
67
69
70 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
71 template <typename VideoMetadataT = VideoMetadata>
72 void SetVideoMetadata(VideoMetadataT&& value) {
73 m_videoMetadataHasBeenSet = true;
74 m_videoMetadata = std::forward<VideoMetadataT>(value);
75 }
76 template <typename VideoMetadataT = VideoMetadata>
77 GetTextDetectionResult& WithVideoMetadata(VideoMetadataT&& value) {
78 SetVideoMetadata(std::forward<VideoMetadataT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::Vector<TextDetectionResult>& GetTextDetections() const { return m_textDetections; }
90 template <typename TextDetectionsT = Aws::Vector<TextDetectionResult>>
91 void SetTextDetections(TextDetectionsT&& value) {
92 m_textDetectionsHasBeenSet = true;
93 m_textDetections = std::forward<TextDetectionsT>(value);
94 }
95 template <typename TextDetectionsT = Aws::Vector<TextDetectionResult>>
96 GetTextDetectionResult& WithTextDetections(TextDetectionsT&& value) {
97 SetTextDetections(std::forward<TextDetectionsT>(value));
98 return *this;
99 }
100 template <typename TextDetectionsT = TextDetectionResult>
101 GetTextDetectionResult& AddTextDetections(TextDetectionsT&& value) {
102 m_textDetectionsHasBeenSet = true;
103 m_textDetections.emplace_back(std::forward<TextDetectionsT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetNextToken() const { return m_nextToken; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetTextModelVersion() const { return m_textModelVersion; }
131 template <typename TextModelVersionT = Aws::String>
132 void SetTextModelVersion(TextModelVersionT&& value) {
133 m_textModelVersionHasBeenSet = true;
134 m_textModelVersion = std::forward<TextModelVersionT>(value);
135 }
136 template <typename TextModelVersionT = Aws::String>
137 GetTextDetectionResult& WithTextModelVersion(TextModelVersionT&& value) {
138 SetTextModelVersion(std::forward<TextModelVersionT>(value));
139 return *this;
140 }
142
144
149 inline const Aws::String& GetJobId() const { return m_jobId; }
150 template <typename JobIdT = Aws::String>
151 void SetJobId(JobIdT&& value) {
152 m_jobIdHasBeenSet = true;
153 m_jobId = std::forward<JobIdT>(value);
154 }
155 template <typename JobIdT = Aws::String>
157 SetJobId(std::forward<JobIdT>(value));
158 return *this;
159 }
161
163
164 inline const Video& GetVideo() const { return m_video; }
165 template <typename VideoT = Video>
166 void SetVideo(VideoT&& value) {
167 m_videoHasBeenSet = true;
168 m_video = std::forward<VideoT>(value);
169 }
170 template <typename VideoT = Video>
172 SetVideo(std::forward<VideoT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::String& GetJobTag() const { return m_jobTag; }
184 template <typename JobTagT = Aws::String>
185 void SetJobTag(JobTagT&& value) {
186 m_jobTagHasBeenSet = true;
187 m_jobTag = std::forward<JobTagT>(value);
188 }
189 template <typename JobTagT = Aws::String>
191 SetJobTag(std::forward<JobTagT>(value));
192 return *this;
193 }
195
197
198 inline const Aws::String& GetRequestId() const { return m_requestId; }
199 template <typename RequestIdT = Aws::String>
200 void SetRequestId(RequestIdT&& value) {
201 m_requestIdHasBeenSet = true;
202 m_requestId = std::forward<RequestIdT>(value);
203 }
204 template <typename RequestIdT = Aws::String>
206 SetRequestId(std::forward<RequestIdT>(value));
207 return *this;
208 }
210 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
211
212 private:
214
215 Aws::String m_statusMessage;
216
217 VideoMetadata m_videoMetadata;
218
219 Aws::Vector<TextDetectionResult> m_textDetections;
220
221 Aws::String m_nextToken;
222
223 Aws::String m_textModelVersion;
224
225 Aws::String m_jobId;
226
227 Video m_video;
228
229 Aws::String m_jobTag;
230
231 Aws::String m_requestId;
232 Aws::Http::HttpResponseCode m_HttpResponseCode;
233 bool m_jobStatusHasBeenSet = false;
234 bool m_statusMessageHasBeenSet = false;
235 bool m_videoMetadataHasBeenSet = false;
236 bool m_textDetectionsHasBeenSet = false;
237 bool m_nextTokenHasBeenSet = false;
238 bool m_textModelVersionHasBeenSet = false;
239 bool m_jobIdHasBeenSet = false;
240 bool m_videoHasBeenSet = false;
241 bool m_jobTagHasBeenSet = false;
242 bool m_requestIdHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace Rekognition
247} // namespace Aws
GetTextDetectionResult & WithJobTag(JobTagT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_REKOGNITION_API GetTextDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REKOGNITION_API GetTextDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTextDetectionResult & WithTextDetections(TextDetectionsT &&value)
const Aws::Vector< TextDetectionResult > & GetTextDetections() const
GetTextDetectionResult & WithJobId(JobIdT &&value)
AWS_REKOGNITION_API GetTextDetectionResult()=default
GetTextDetectionResult & WithVideo(VideoT &&value)
GetTextDetectionResult & WithJobStatus(VideoJobStatus value)
GetTextDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetTextDetectionResult & AddTextDetections(TextDetectionsT &&value)
GetTextDetectionResult & WithTextModelVersion(TextModelVersionT &&value)
GetTextDetectionResult & WithRequestId(RequestIdT &&value)
GetTextDetectionResult & WithNextToken(NextTokenT &&value)
GetTextDetectionResult & WithVideoMetadata(VideoMetadataT &&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