AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SegmentDetection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/SegmentType.h>
10#include <aws/rekognition/model/ShotSegment.h>
11#include <aws/rekognition/model/TechnicalCueSegment.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition {
23namespace Model {
24
34 public:
35 AWS_REKOGNITION_API SegmentDetection() = default;
36 AWS_REKOGNITION_API SegmentDetection(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REKOGNITION_API SegmentDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline SegmentType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(SegmentType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
64 inline long long GetStartTimestampMillis() const { return m_startTimestampMillis; }
65 inline bool StartTimestampMillisHasBeenSet() const { return m_startTimestampMillisHasBeenSet; }
66 inline void SetStartTimestampMillis(long long value) {
67 m_startTimestampMillisHasBeenSet = true;
68 m_startTimestampMillis = value;
69 }
70 inline SegmentDetection& WithStartTimestampMillis(long long value) {
72 return *this;
73 }
75
77
81 inline long long GetEndTimestampMillis() const { return m_endTimestampMillis; }
82 inline bool EndTimestampMillisHasBeenSet() const { return m_endTimestampMillisHasBeenSet; }
83 inline void SetEndTimestampMillis(long long value) {
84 m_endTimestampMillisHasBeenSet = true;
85 m_endTimestampMillis = value;
86 }
87 inline SegmentDetection& WithEndTimestampMillis(long long value) {
89 return *this;
90 }
92
94
97 inline long long GetDurationMillis() const { return m_durationMillis; }
98 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
99 inline void SetDurationMillis(long long value) {
100 m_durationMillisHasBeenSet = true;
101 m_durationMillis = value;
102 }
103 inline SegmentDetection& WithDurationMillis(long long value) {
104 SetDurationMillis(value);
105 return *this;
106 }
108
110
115 inline const Aws::String& GetStartTimecodeSMPTE() const { return m_startTimecodeSMPTE; }
116 inline bool StartTimecodeSMPTEHasBeenSet() const { return m_startTimecodeSMPTEHasBeenSet; }
117 template <typename StartTimecodeSMPTET = Aws::String>
118 void SetStartTimecodeSMPTE(StartTimecodeSMPTET&& value) {
119 m_startTimecodeSMPTEHasBeenSet = true;
120 m_startTimecodeSMPTE = std::forward<StartTimecodeSMPTET>(value);
121 }
122 template <typename StartTimecodeSMPTET = Aws::String>
123 SegmentDetection& WithStartTimecodeSMPTE(StartTimecodeSMPTET&& value) {
124 SetStartTimecodeSMPTE(std::forward<StartTimecodeSMPTET>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetEndTimecodeSMPTE() const { return m_endTimecodeSMPTE; }
136 inline bool EndTimecodeSMPTEHasBeenSet() const { return m_endTimecodeSMPTEHasBeenSet; }
137 template <typename EndTimecodeSMPTET = Aws::String>
138 void SetEndTimecodeSMPTE(EndTimecodeSMPTET&& value) {
139 m_endTimecodeSMPTEHasBeenSet = true;
140 m_endTimecodeSMPTE = std::forward<EndTimecodeSMPTET>(value);
141 }
142 template <typename EndTimecodeSMPTET = Aws::String>
143 SegmentDetection& WithEndTimecodeSMPTE(EndTimecodeSMPTET&& value) {
144 SetEndTimecodeSMPTE(std::forward<EndTimecodeSMPTET>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetDurationSMPTE() const { return m_durationSMPTE; }
154 inline bool DurationSMPTEHasBeenSet() const { return m_durationSMPTEHasBeenSet; }
155 template <typename DurationSMPTET = Aws::String>
156 void SetDurationSMPTE(DurationSMPTET&& value) {
157 m_durationSMPTEHasBeenSet = true;
158 m_durationSMPTE = std::forward<DurationSMPTET>(value);
159 }
160 template <typename DurationSMPTET = Aws::String>
161 SegmentDetection& WithDurationSMPTE(DurationSMPTET&& value) {
162 SetDurationSMPTE(std::forward<DurationSMPTET>(value));
163 return *this;
164 }
166
168
172 inline const TechnicalCueSegment& GetTechnicalCueSegment() const { return m_technicalCueSegment; }
173 inline bool TechnicalCueSegmentHasBeenSet() const { return m_technicalCueSegmentHasBeenSet; }
174 template <typename TechnicalCueSegmentT = TechnicalCueSegment>
175 void SetTechnicalCueSegment(TechnicalCueSegmentT&& value) {
176 m_technicalCueSegmentHasBeenSet = true;
177 m_technicalCueSegment = std::forward<TechnicalCueSegmentT>(value);
178 }
179 template <typename TechnicalCueSegmentT = TechnicalCueSegment>
180 SegmentDetection& WithTechnicalCueSegment(TechnicalCueSegmentT&& value) {
181 SetTechnicalCueSegment(std::forward<TechnicalCueSegmentT>(value));
182 return *this;
183 }
185
187
191 inline const ShotSegment& GetShotSegment() const { return m_shotSegment; }
192 inline bool ShotSegmentHasBeenSet() const { return m_shotSegmentHasBeenSet; }
193 template <typename ShotSegmentT = ShotSegment>
194 void SetShotSegment(ShotSegmentT&& value) {
195 m_shotSegmentHasBeenSet = true;
196 m_shotSegment = std::forward<ShotSegmentT>(value);
197 }
198 template <typename ShotSegmentT = ShotSegment>
199 SegmentDetection& WithShotSegment(ShotSegmentT&& value) {
200 SetShotSegment(std::forward<ShotSegmentT>(value));
201 return *this;
202 }
204
206
210 inline long long GetStartFrameNumber() const { return m_startFrameNumber; }
211 inline bool StartFrameNumberHasBeenSet() const { return m_startFrameNumberHasBeenSet; }
212 inline void SetStartFrameNumber(long long value) {
213 m_startFrameNumberHasBeenSet = true;
214 m_startFrameNumber = value;
215 }
216 inline SegmentDetection& WithStartFrameNumber(long long value) {
217 SetStartFrameNumber(value);
218 return *this;
219 }
221
223
227 inline long long GetEndFrameNumber() const { return m_endFrameNumber; }
228 inline bool EndFrameNumberHasBeenSet() const { return m_endFrameNumberHasBeenSet; }
229 inline void SetEndFrameNumber(long long value) {
230 m_endFrameNumberHasBeenSet = true;
231 m_endFrameNumber = value;
232 }
233 inline SegmentDetection& WithEndFrameNumber(long long value) {
234 SetEndFrameNumber(value);
235 return *this;
236 }
238
240
243 inline long long GetDurationFrames() const { return m_durationFrames; }
244 inline bool DurationFramesHasBeenSet() const { return m_durationFramesHasBeenSet; }
245 inline void SetDurationFrames(long long value) {
246 m_durationFramesHasBeenSet = true;
247 m_durationFrames = value;
248 }
249 inline SegmentDetection& WithDurationFrames(long long value) {
250 SetDurationFrames(value);
251 return *this;
252 }
254 private:
256
257 long long m_startTimestampMillis{0};
258
259 long long m_endTimestampMillis{0};
260
261 long long m_durationMillis{0};
262
263 Aws::String m_startTimecodeSMPTE;
264
265 Aws::String m_endTimecodeSMPTE;
266
267 Aws::String m_durationSMPTE;
268
269 TechnicalCueSegment m_technicalCueSegment;
270
271 ShotSegment m_shotSegment;
272
273 long long m_startFrameNumber{0};
274
275 long long m_endFrameNumber{0};
276
277 long long m_durationFrames{0};
278 bool m_typeHasBeenSet = false;
279 bool m_startTimestampMillisHasBeenSet = false;
280 bool m_endTimestampMillisHasBeenSet = false;
281 bool m_durationMillisHasBeenSet = false;
282 bool m_startTimecodeSMPTEHasBeenSet = false;
283 bool m_endTimecodeSMPTEHasBeenSet = false;
284 bool m_durationSMPTEHasBeenSet = false;
285 bool m_technicalCueSegmentHasBeenSet = false;
286 bool m_shotSegmentHasBeenSet = false;
287 bool m_startFrameNumberHasBeenSet = false;
288 bool m_endFrameNumberHasBeenSet = false;
289 bool m_durationFramesHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace Rekognition
294} // namespace Aws
SegmentDetection & WithType(SegmentType value)
SegmentDetection & WithStartTimestampMillis(long long value)
SegmentDetection & WithStartFrameNumber(long long value)
const Aws::String & GetEndTimecodeSMPTE() const
AWS_REKOGNITION_API SegmentDetection(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API SegmentDetection()=default
SegmentDetection & WithEndTimecodeSMPTE(EndTimecodeSMPTET &&value)
void SetTechnicalCueSegment(TechnicalCueSegmentT &&value)
SegmentDetection & WithStartTimecodeSMPTE(StartTimecodeSMPTET &&value)
SegmentDetection & WithTechnicalCueSegment(TechnicalCueSegmentT &&value)
SegmentDetection & WithEndTimestampMillis(long long value)
void SetDurationSMPTE(DurationSMPTET &&value)
SegmentDetection & WithDurationSMPTE(DurationSMPTET &&value)
const TechnicalCueSegment & GetTechnicalCueSegment() const
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartTimecodeSMPTE(StartTimecodeSMPTET &&value)
SegmentDetection & WithDurationFrames(long long value)
void SetEndTimecodeSMPTE(EndTimecodeSMPTET &&value)
const Aws::String & GetDurationSMPTE() const
const Aws::String & GetStartTimecodeSMPTE() const
AWS_REKOGNITION_API SegmentDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentDetection & WithDurationMillis(long long value)
const ShotSegment & GetShotSegment() const
SegmentDetection & WithEndFrameNumber(long long value)
SegmentDetection & WithShotSegment(ShotSegmentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue