AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLabelDetectionResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/VideoJobStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/VideoMetadata.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rekognition/model/Video.h>
13#include <aws/rekognition/model/GetLabelDetectionRequestMetadata.h>
14#include <aws/rekognition/model/LabelDetection.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Rekognition
30{
31namespace Model
32{
34 {
35 public:
36 AWS_REKOGNITION_API GetLabelDetectionResult() = default;
39
40
42
45 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
46 inline void SetJobStatus(VideoJobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
47 inline GetLabelDetectionResult& WithJobStatus(VideoJobStatus value) { SetJobStatus(value); return *this;}
49
51
55 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
56 template<typename StatusMessageT = Aws::String>
57 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
58 template<typename StatusMessageT = Aws::String>
59 GetLabelDetectionResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
61
63
68 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
69 template<typename VideoMetadataT = VideoMetadata>
70 void SetVideoMetadata(VideoMetadataT&& value) { m_videoMetadataHasBeenSet = true; m_videoMetadata = std::forward<VideoMetadataT>(value); }
71 template<typename VideoMetadataT = VideoMetadata>
72 GetLabelDetectionResult& WithVideoMetadata(VideoMetadataT&& value) { SetVideoMetadata(std::forward<VideoMetadataT>(value)); return *this;}
74
76
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 template<typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
84 template<typename NextTokenT = Aws::String>
85 GetLabelDetectionResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
87
89
94 inline const Aws::Vector<LabelDetection>& GetLabels() const { return m_labels; }
95 template<typename LabelsT = Aws::Vector<LabelDetection>>
96 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
97 template<typename LabelsT = Aws::Vector<LabelDetection>>
98 GetLabelDetectionResult& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
99 template<typename LabelsT = LabelDetection>
100 GetLabelDetectionResult& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
102
104
108 inline const Aws::String& GetLabelModelVersion() const { return m_labelModelVersion; }
109 template<typename LabelModelVersionT = Aws::String>
110 void SetLabelModelVersion(LabelModelVersionT&& value) { m_labelModelVersionHasBeenSet = true; m_labelModelVersion = std::forward<LabelModelVersionT>(value); }
111 template<typename LabelModelVersionT = Aws::String>
112 GetLabelDetectionResult& WithLabelModelVersion(LabelModelVersionT&& value) { SetLabelModelVersion(std::forward<LabelModelVersionT>(value)); return *this;}
114
116
121 inline const Aws::String& GetJobId() const { return m_jobId; }
122 template<typename JobIdT = Aws::String>
123 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
124 template<typename JobIdT = Aws::String>
125 GetLabelDetectionResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
127
129
130 inline const Video& GetVideo() const { return m_video; }
131 template<typename VideoT = Video>
132 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
133 template<typename VideoT = Video>
134 GetLabelDetectionResult& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
136
138
143 inline const Aws::String& GetJobTag() const { return m_jobTag; }
144 template<typename JobTagT = Aws::String>
145 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
146 template<typename JobTagT = Aws::String>
147 GetLabelDetectionResult& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
149
151
155 inline const GetLabelDetectionRequestMetadata& GetGetRequestMetadata() const { return m_getRequestMetadata; }
156 template<typename GetRequestMetadataT = GetLabelDetectionRequestMetadata>
157 void SetGetRequestMetadata(GetRequestMetadataT&& value) { m_getRequestMetadataHasBeenSet = true; m_getRequestMetadata = std::forward<GetRequestMetadataT>(value); }
158 template<typename GetRequestMetadataT = GetLabelDetectionRequestMetadata>
159 GetLabelDetectionResult& WithGetRequestMetadata(GetRequestMetadataT&& value) { SetGetRequestMetadata(std::forward<GetRequestMetadataT>(value)); return *this;}
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 GetLabelDetectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170 private:
171
173 bool m_jobStatusHasBeenSet = false;
174
175 Aws::String m_statusMessage;
176 bool m_statusMessageHasBeenSet = false;
177
178 VideoMetadata m_videoMetadata;
179 bool m_videoMetadataHasBeenSet = false;
180
181 Aws::String m_nextToken;
182 bool m_nextTokenHasBeenSet = false;
183
185 bool m_labelsHasBeenSet = false;
186
187 Aws::String m_labelModelVersion;
188 bool m_labelModelVersionHasBeenSet = false;
189
190 Aws::String m_jobId;
191 bool m_jobIdHasBeenSet = false;
192
193 Video m_video;
194 bool m_videoHasBeenSet = false;
195
196 Aws::String m_jobTag;
197 bool m_jobTagHasBeenSet = false;
198
199 GetLabelDetectionRequestMetadata m_getRequestMetadata;
200 bool m_getRequestMetadataHasBeenSet = false;
201
202 Aws::String m_requestId;
203 bool m_requestIdHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Rekognition
208} // namespace Aws
GetLabelDetectionResult & WithNextToken(NextTokenT &&value)
GetLabelDetectionResult & WithRequestId(RequestIdT &&value)
GetLabelDetectionResult & AddLabels(LabelsT &&value)
AWS_REKOGNITION_API GetLabelDetectionResult()=default
GetLabelDetectionResult & WithVideo(VideoT &&value)
GetLabelDetectionResult & WithGetRequestMetadata(GetRequestMetadataT &&value)
GetLabelDetectionResult & WithJobTag(JobTagT &&value)
GetLabelDetectionResult & WithJobId(JobIdT &&value)
AWS_REKOGNITION_API GetLabelDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const GetLabelDetectionRequestMetadata & GetGetRequestMetadata() const
GetLabelDetectionResult & WithVideoMetadata(VideoMetadataT &&value)
GetLabelDetectionResult & WithJobStatus(VideoJobStatus value)
GetLabelDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetLabelDetectionResult & WithLabels(LabelsT &&value)
AWS_REKOGNITION_API GetLabelDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLabelDetectionResult & WithLabelModelVersion(LabelModelVersionT &&value)
const Aws::Vector< LabelDetection > & GetLabels() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue