AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetTextDetectionResult.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/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/TextDetectionResult.h>
11#include <aws/rekognition/model/Video.h>
12#include <aws/rekognition/model/VideoJobStatus.h>
13#include <aws/rekognition/model/VideoMetadata.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 Rekognition {
27namespace Model {
29 public:
30 AWS_REKOGNITION_API GetTextDetectionResult() = default;
33
35
38 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
39 inline void SetJobStatus(VideoJobStatus value) {
40 m_jobStatusHasBeenSet = true;
41 m_jobStatus = value;
42 }
44 SetJobStatus(value);
45 return *this;
46 }
48
50
54 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
55 template <typename StatusMessageT = Aws::String>
56 void SetStatusMessage(StatusMessageT&& value) {
57 m_statusMessageHasBeenSet = true;
58 m_statusMessage = std::forward<StatusMessageT>(value);
59 }
60 template <typename StatusMessageT = Aws::String>
61 GetTextDetectionResult& WithStatusMessage(StatusMessageT&& value) {
62 SetStatusMessage(std::forward<StatusMessageT>(value));
63 return *this;
64 }
66
68
69 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
70 template <typename VideoMetadataT = VideoMetadata>
71 void SetVideoMetadata(VideoMetadataT&& value) {
72 m_videoMetadataHasBeenSet = true;
73 m_videoMetadata = std::forward<VideoMetadataT>(value);
74 }
75 template <typename VideoMetadataT = VideoMetadata>
76 GetTextDetectionResult& WithVideoMetadata(VideoMetadataT&& value) {
77 SetVideoMetadata(std::forward<VideoMetadataT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Vector<TextDetectionResult>& GetTextDetections() const { return m_textDetections; }
89 template <typename TextDetectionsT = Aws::Vector<TextDetectionResult>>
90 void SetTextDetections(TextDetectionsT&& value) {
91 m_textDetectionsHasBeenSet = true;
92 m_textDetections = std::forward<TextDetectionsT>(value);
93 }
94 template <typename TextDetectionsT = Aws::Vector<TextDetectionResult>>
95 GetTextDetectionResult& WithTextDetections(TextDetectionsT&& value) {
96 SetTextDetections(std::forward<TextDetectionsT>(value));
97 return *this;
98 }
99 template <typename TextDetectionsT = TextDetectionResult>
100 GetTextDetectionResult& AddTextDetections(TextDetectionsT&& value) {
101 m_textDetectionsHasBeenSet = true;
102 m_textDetections.emplace_back(std::forward<TextDetectionsT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 template <typename NextTokenT = Aws::String>
114 void SetNextToken(NextTokenT&& value) {
115 m_nextTokenHasBeenSet = true;
116 m_nextToken = std::forward<NextTokenT>(value);
117 }
118 template <typename NextTokenT = Aws::String>
120 SetNextToken(std::forward<NextTokenT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetTextModelVersion() const { return m_textModelVersion; }
130 template <typename TextModelVersionT = Aws::String>
131 void SetTextModelVersion(TextModelVersionT&& value) {
132 m_textModelVersionHasBeenSet = true;
133 m_textModelVersion = std::forward<TextModelVersionT>(value);
134 }
135 template <typename TextModelVersionT = Aws::String>
136 GetTextDetectionResult& WithTextModelVersion(TextModelVersionT&& value) {
137 SetTextModelVersion(std::forward<TextModelVersionT>(value));
138 return *this;
139 }
141
143
148 inline const Aws::String& GetJobId() const { return m_jobId; }
149 template <typename JobIdT = Aws::String>
150 void SetJobId(JobIdT&& value) {
151 m_jobIdHasBeenSet = true;
152 m_jobId = std::forward<JobIdT>(value);
153 }
154 template <typename JobIdT = Aws::String>
156 SetJobId(std::forward<JobIdT>(value));
157 return *this;
158 }
160
162
163 inline const Video& GetVideo() const { return m_video; }
164 template <typename VideoT = Video>
165 void SetVideo(VideoT&& value) {
166 m_videoHasBeenSet = true;
167 m_video = std::forward<VideoT>(value);
168 }
169 template <typename VideoT = Video>
171 SetVideo(std::forward<VideoT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::String& GetJobTag() const { return m_jobTag; }
183 template <typename JobTagT = Aws::String>
184 void SetJobTag(JobTagT&& value) {
185 m_jobTagHasBeenSet = true;
186 m_jobTag = std::forward<JobTagT>(value);
187 }
188 template <typename JobTagT = Aws::String>
190 SetJobTag(std::forward<JobTagT>(value));
191 return *this;
192 }
194
196
197 inline const Aws::String& GetRequestId() const { return m_requestId; }
198 template <typename RequestIdT = Aws::String>
199 void SetRequestId(RequestIdT&& value) {
200 m_requestIdHasBeenSet = true;
201 m_requestId = std::forward<RequestIdT>(value);
202 }
203 template <typename RequestIdT = Aws::String>
205 SetRequestId(std::forward<RequestIdT>(value));
206 return *this;
207 }
209 private:
211
212 Aws::String m_statusMessage;
213
214 VideoMetadata m_videoMetadata;
215
216 Aws::Vector<TextDetectionResult> m_textDetections;
217
218 Aws::String m_nextToken;
219
220 Aws::String m_textModelVersion;
221
222 Aws::String m_jobId;
223
224 Video m_video;
225
226 Aws::String m_jobTag;
227
228 Aws::String m_requestId;
229 bool m_jobStatusHasBeenSet = false;
230 bool m_statusMessageHasBeenSet = false;
231 bool m_videoMetadataHasBeenSet = false;
232 bool m_textDetectionsHasBeenSet = false;
233 bool m_nextTokenHasBeenSet = false;
234 bool m_textModelVersionHasBeenSet = false;
235 bool m_jobIdHasBeenSet = false;
236 bool m_videoHasBeenSet = false;
237 bool m_jobTagHasBeenSet = false;
238 bool m_requestIdHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace Rekognition
243} // namespace Aws
GetTextDetectionResult & WithJobTag(JobTagT &&value)
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