AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSegmentDetectionResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/rekognition/model/Video.h>
12#include <aws/rekognition/model/VideoMetadata.h>
13#include <aws/rekognition/model/AudioMetadata.h>
14#include <aws/rekognition/model/SegmentDetection.h>
15#include <aws/rekognition/model/SegmentTypeInfo.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Rekognition
31{
32namespace Model
33{
35 {
36 public:
37 AWS_REKOGNITION_API GetSegmentDetectionResult() = default;
40
41
43
46 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
47 inline void SetJobStatus(VideoJobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
50
52
56 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
57 template<typename StatusMessageT = Aws::String>
58 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
59 template<typename StatusMessageT = Aws::String>
60 GetSegmentDetectionResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
62
64
72 inline const Aws::Vector<VideoMetadata>& GetVideoMetadata() const { return m_videoMetadata; }
73 template<typename VideoMetadataT = Aws::Vector<VideoMetadata>>
74 void SetVideoMetadata(VideoMetadataT&& value) { m_videoMetadataHasBeenSet = true; m_videoMetadata = std::forward<VideoMetadataT>(value); }
75 template<typename VideoMetadataT = Aws::Vector<VideoMetadata>>
76 GetSegmentDetectionResult& WithVideoMetadata(VideoMetadataT&& value) { SetVideoMetadata(std::forward<VideoMetadataT>(value)); return *this;}
77 template<typename VideoMetadataT = VideoMetadata>
78 GetSegmentDetectionResult& AddVideoMetadata(VideoMetadataT&& value) { m_videoMetadataHasBeenSet = true; m_videoMetadata.emplace_back(std::forward<VideoMetadataT>(value)); return *this; }
80
82
90 inline const Aws::Vector<AudioMetadata>& GetAudioMetadata() const { return m_audioMetadata; }
91 template<typename AudioMetadataT = Aws::Vector<AudioMetadata>>
92 void SetAudioMetadata(AudioMetadataT&& value) { m_audioMetadataHasBeenSet = true; m_audioMetadata = std::forward<AudioMetadataT>(value); }
93 template<typename AudioMetadataT = Aws::Vector<AudioMetadata>>
94 GetSegmentDetectionResult& WithAudioMetadata(AudioMetadataT&& value) { SetAudioMetadata(std::forward<AudioMetadataT>(value)); return *this;}
95 template<typename AudioMetadataT = AudioMetadata>
96 GetSegmentDetectionResult& AddAudioMetadata(AudioMetadataT&& value) { m_audioMetadataHasBeenSet = true; m_audioMetadata.emplace_back(std::forward<AudioMetadataT>(value)); return *this; }
98
100
105 inline const Aws::String& GetNextToken() const { return m_nextToken; }
106 template<typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
108 template<typename NextTokenT = Aws::String>
109 GetSegmentDetectionResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
111
113
119 inline const Aws::Vector<SegmentDetection>& GetSegments() const { return m_segments; }
120 template<typename SegmentsT = Aws::Vector<SegmentDetection>>
121 void SetSegments(SegmentsT&& value) { m_segmentsHasBeenSet = true; m_segments = std::forward<SegmentsT>(value); }
122 template<typename SegmentsT = Aws::Vector<SegmentDetection>>
123 GetSegmentDetectionResult& WithSegments(SegmentsT&& value) { SetSegments(std::forward<SegmentsT>(value)); return *this;}
124 template<typename SegmentsT = SegmentDetection>
125 GetSegmentDetectionResult& AddSegments(SegmentsT&& value) { m_segmentsHasBeenSet = true; m_segments.emplace_back(std::forward<SegmentsT>(value)); return *this; }
127
129
133 inline const Aws::Vector<SegmentTypeInfo>& GetSelectedSegmentTypes() const { return m_selectedSegmentTypes; }
134 template<typename SelectedSegmentTypesT = Aws::Vector<SegmentTypeInfo>>
135 void SetSelectedSegmentTypes(SelectedSegmentTypesT&& value) { m_selectedSegmentTypesHasBeenSet = true; m_selectedSegmentTypes = std::forward<SelectedSegmentTypesT>(value); }
136 template<typename SelectedSegmentTypesT = Aws::Vector<SegmentTypeInfo>>
137 GetSegmentDetectionResult& WithSelectedSegmentTypes(SelectedSegmentTypesT&& value) { SetSelectedSegmentTypes(std::forward<SelectedSegmentTypesT>(value)); return *this;}
138 template<typename SelectedSegmentTypesT = SegmentTypeInfo>
139 GetSegmentDetectionResult& AddSelectedSegmentTypes(SelectedSegmentTypesT&& value) { m_selectedSegmentTypesHasBeenSet = true; m_selectedSegmentTypes.emplace_back(std::forward<SelectedSegmentTypesT>(value)); return *this; }
141
143
148 inline const Aws::String& GetJobId() const { return m_jobId; }
149 template<typename JobIdT = Aws::String>
150 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
151 template<typename JobIdT = Aws::String>
152 GetSegmentDetectionResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
154
156
157 inline const Video& GetVideo() const { return m_video; }
158 template<typename VideoT = Video>
159 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
160 template<typename VideoT = Video>
161 GetSegmentDetectionResult& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
163
165
170 inline const Aws::String& GetJobTag() const { return m_jobTag; }
171 template<typename JobTagT = Aws::String>
172 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
173 template<typename JobTagT = Aws::String>
174 GetSegmentDetectionResult& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
176
178
179 inline const Aws::String& GetRequestId() const { return m_requestId; }
180 template<typename RequestIdT = Aws::String>
181 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
182 template<typename RequestIdT = Aws::String>
183 GetSegmentDetectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
185 private:
186
188 bool m_jobStatusHasBeenSet = false;
189
190 Aws::String m_statusMessage;
191 bool m_statusMessageHasBeenSet = false;
192
193 Aws::Vector<VideoMetadata> m_videoMetadata;
194 bool m_videoMetadataHasBeenSet = false;
195
196 Aws::Vector<AudioMetadata> m_audioMetadata;
197 bool m_audioMetadataHasBeenSet = false;
198
199 Aws::String m_nextToken;
200 bool m_nextTokenHasBeenSet = false;
201
203 bool m_segmentsHasBeenSet = false;
204
205 Aws::Vector<SegmentTypeInfo> m_selectedSegmentTypes;
206 bool m_selectedSegmentTypesHasBeenSet = false;
207
208 Aws::String m_jobId;
209 bool m_jobIdHasBeenSet = false;
210
211 Video m_video;
212 bool m_videoHasBeenSet = false;
213
214 Aws::String m_jobTag;
215 bool m_jobTagHasBeenSet = false;
216
217 Aws::String m_requestId;
218 bool m_requestIdHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace Rekognition
223} // namespace Aws
GetSegmentDetectionResult & WithSegments(SegmentsT &&value)
GetSegmentDetectionResult & WithNextToken(NextTokenT &&value)
GetSegmentDetectionResult & WithVideo(VideoT &&value)
GetSegmentDetectionResult & WithRequestId(RequestIdT &&value)
AWS_REKOGNITION_API GetSegmentDetectionResult()=default
GetSegmentDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetSegmentDetectionResult & WithJobId(JobIdT &&value)
const Aws::Vector< AudioMetadata > & GetAudioMetadata() const
AWS_REKOGNITION_API GetSegmentDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< SegmentDetection > & GetSegments() const
GetSegmentDetectionResult & WithVideoMetadata(VideoMetadataT &&value)
AWS_REKOGNITION_API GetSegmentDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSegmentDetectionResult & WithAudioMetadata(AudioMetadataT &&value)
const Aws::Vector< SegmentTypeInfo > & GetSelectedSegmentTypes() const
GetSegmentDetectionResult & WithSelectedSegmentTypes(SelectedSegmentTypesT &&value)
GetSegmentDetectionResult & AddSegments(SegmentsT &&value)
const Aws::Vector< VideoMetadata > & GetVideoMetadata() const
GetSegmentDetectionResult & AddSelectedSegmentTypes(SelectedSegmentTypesT &&value)
GetSegmentDetectionResult & AddVideoMetadata(VideoMetadataT &&value)
GetSegmentDetectionResult & WithJobStatus(VideoJobStatus value)
GetSegmentDetectionResult & AddAudioMetadata(AudioMetadataT &&value)
GetSegmentDetectionResult & WithJobTag(JobTagT &&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