AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SegmentDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/SegmentType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/TechnicalCueSegment.h>
11#include <aws/rekognition/model/ShotSegment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Rekognition
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_REKOGNITION_API SegmentDetection() = default;
41 AWS_REKOGNITION_API SegmentDetection(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REKOGNITION_API SegmentDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline SegmentType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(SegmentType value) { m_typeHasBeenSet = true; m_type = value; }
54 inline SegmentDetection& WithType(SegmentType value) { SetType(value); return *this;}
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) { m_startTimestampMillisHasBeenSet = true; m_startTimestampMillis = value; }
67 inline SegmentDetection& WithStartTimestampMillis(long long value) { SetStartTimestampMillis(value); return *this;}
69
71
75 inline long long GetEndTimestampMillis() const { return m_endTimestampMillis; }
76 inline bool EndTimestampMillisHasBeenSet() const { return m_endTimestampMillisHasBeenSet; }
77 inline void SetEndTimestampMillis(long long value) { m_endTimestampMillisHasBeenSet = true; m_endTimestampMillis = value; }
78 inline SegmentDetection& WithEndTimestampMillis(long long value) { SetEndTimestampMillis(value); return *this;}
80
82
85 inline long long GetDurationMillis() const { return m_durationMillis; }
86 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
87 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
88 inline SegmentDetection& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
90
92
97 inline const Aws::String& GetStartTimecodeSMPTE() const { return m_startTimecodeSMPTE; }
98 inline bool StartTimecodeSMPTEHasBeenSet() const { return m_startTimecodeSMPTEHasBeenSet; }
99 template<typename StartTimecodeSMPTET = Aws::String>
100 void SetStartTimecodeSMPTE(StartTimecodeSMPTET&& value) { m_startTimecodeSMPTEHasBeenSet = true; m_startTimecodeSMPTE = std::forward<StartTimecodeSMPTET>(value); }
101 template<typename StartTimecodeSMPTET = Aws::String>
102 SegmentDetection& WithStartTimecodeSMPTE(StartTimecodeSMPTET&& value) { SetStartTimecodeSMPTE(std::forward<StartTimecodeSMPTET>(value)); return *this;}
104
106
111 inline const Aws::String& GetEndTimecodeSMPTE() const { return m_endTimecodeSMPTE; }
112 inline bool EndTimecodeSMPTEHasBeenSet() const { return m_endTimecodeSMPTEHasBeenSet; }
113 template<typename EndTimecodeSMPTET = Aws::String>
114 void SetEndTimecodeSMPTE(EndTimecodeSMPTET&& value) { m_endTimecodeSMPTEHasBeenSet = true; m_endTimecodeSMPTE = std::forward<EndTimecodeSMPTET>(value); }
115 template<typename EndTimecodeSMPTET = Aws::String>
116 SegmentDetection& WithEndTimecodeSMPTE(EndTimecodeSMPTET&& value) { SetEndTimecodeSMPTE(std::forward<EndTimecodeSMPTET>(value)); return *this;}
118
120
123 inline const Aws::String& GetDurationSMPTE() const { return m_durationSMPTE; }
124 inline bool DurationSMPTEHasBeenSet() const { return m_durationSMPTEHasBeenSet; }
125 template<typename DurationSMPTET = Aws::String>
126 void SetDurationSMPTE(DurationSMPTET&& value) { m_durationSMPTEHasBeenSet = true; m_durationSMPTE = std::forward<DurationSMPTET>(value); }
127 template<typename DurationSMPTET = Aws::String>
128 SegmentDetection& WithDurationSMPTE(DurationSMPTET&& value) { SetDurationSMPTE(std::forward<DurationSMPTET>(value)); return *this;}
130
132
136 inline const TechnicalCueSegment& GetTechnicalCueSegment() const { return m_technicalCueSegment; }
137 inline bool TechnicalCueSegmentHasBeenSet() const { return m_technicalCueSegmentHasBeenSet; }
138 template<typename TechnicalCueSegmentT = TechnicalCueSegment>
139 void SetTechnicalCueSegment(TechnicalCueSegmentT&& value) { m_technicalCueSegmentHasBeenSet = true; m_technicalCueSegment = std::forward<TechnicalCueSegmentT>(value); }
140 template<typename TechnicalCueSegmentT = TechnicalCueSegment>
141 SegmentDetection& WithTechnicalCueSegment(TechnicalCueSegmentT&& value) { SetTechnicalCueSegment(std::forward<TechnicalCueSegmentT>(value)); return *this;}
143
145
149 inline const ShotSegment& GetShotSegment() const { return m_shotSegment; }
150 inline bool ShotSegmentHasBeenSet() const { return m_shotSegmentHasBeenSet; }
151 template<typename ShotSegmentT = ShotSegment>
152 void SetShotSegment(ShotSegmentT&& value) { m_shotSegmentHasBeenSet = true; m_shotSegment = std::forward<ShotSegmentT>(value); }
153 template<typename ShotSegmentT = ShotSegment>
154 SegmentDetection& WithShotSegment(ShotSegmentT&& value) { SetShotSegment(std::forward<ShotSegmentT>(value)); return *this;}
156
158
162 inline long long GetStartFrameNumber() const { return m_startFrameNumber; }
163 inline bool StartFrameNumberHasBeenSet() const { return m_startFrameNumberHasBeenSet; }
164 inline void SetStartFrameNumber(long long value) { m_startFrameNumberHasBeenSet = true; m_startFrameNumber = value; }
165 inline SegmentDetection& WithStartFrameNumber(long long value) { SetStartFrameNumber(value); return *this;}
167
169
173 inline long long GetEndFrameNumber() const { return m_endFrameNumber; }
174 inline bool EndFrameNumberHasBeenSet() const { return m_endFrameNumberHasBeenSet; }
175 inline void SetEndFrameNumber(long long value) { m_endFrameNumberHasBeenSet = true; m_endFrameNumber = value; }
176 inline SegmentDetection& WithEndFrameNumber(long long value) { SetEndFrameNumber(value); return *this;}
178
180
183 inline long long GetDurationFrames() const { return m_durationFrames; }
184 inline bool DurationFramesHasBeenSet() const { return m_durationFramesHasBeenSet; }
185 inline void SetDurationFrames(long long value) { m_durationFramesHasBeenSet = true; m_durationFrames = value; }
186 inline SegmentDetection& WithDurationFrames(long long value) { SetDurationFrames(value); return *this;}
188 private:
189
191 bool m_typeHasBeenSet = false;
192
193 long long m_startTimestampMillis{0};
194 bool m_startTimestampMillisHasBeenSet = false;
195
196 long long m_endTimestampMillis{0};
197 bool m_endTimestampMillisHasBeenSet = false;
198
199 long long m_durationMillis{0};
200 bool m_durationMillisHasBeenSet = false;
201
202 Aws::String m_startTimecodeSMPTE;
203 bool m_startTimecodeSMPTEHasBeenSet = false;
204
205 Aws::String m_endTimecodeSMPTE;
206 bool m_endTimecodeSMPTEHasBeenSet = false;
207
208 Aws::String m_durationSMPTE;
209 bool m_durationSMPTEHasBeenSet = false;
210
211 TechnicalCueSegment m_technicalCueSegment;
212 bool m_technicalCueSegmentHasBeenSet = false;
213
214 ShotSegment m_shotSegment;
215 bool m_shotSegmentHasBeenSet = false;
216
217 long long m_startFrameNumber{0};
218 bool m_startFrameNumberHasBeenSet = false;
219
220 long long m_endFrameNumber{0};
221 bool m_endFrameNumberHasBeenSet = false;
222
223 long long m_durationFrames{0};
224 bool m_durationFramesHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace Rekognition
229} // 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