AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
HlsPackage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mediapackage/MediaPackage_EXPORTS.h>
9#include <aws/mediapackage/model/AdMarkers.h>
10#include <aws/mediapackage/model/AdsOnDeliveryRestrictions.h>
11#include <aws/mediapackage/model/HlsEncryption.h>
12#include <aws/mediapackage/model/PlaylistType.h>
13#include <aws/mediapackage/model/StreamSelection.h>
14#include <aws/mediapackage/model/__AdTriggersElement.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaPackage {
26namespace Model {
27
34 public:
35 AWS_MEDIAPACKAGE_API HlsPackage() = default;
36 AWS_MEDIAPACKAGE_API HlsPackage(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIAPACKAGE_API HlsPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
61 inline AdMarkers GetAdMarkers() const { return m_adMarkers; }
62 inline bool AdMarkersHasBeenSet() const { return m_adMarkersHasBeenSet; }
63 inline void SetAdMarkers(AdMarkers value) {
64 m_adMarkersHasBeenSet = true;
65 m_adMarkers = value;
66 }
68 SetAdMarkers(value);
69 return *this;
70 }
72
74
75 inline const Aws::Vector<__AdTriggersElement>& GetAdTriggers() const { return m_adTriggers; }
76 inline bool AdTriggersHasBeenSet() const { return m_adTriggersHasBeenSet; }
77 template <typename AdTriggersT = Aws::Vector<__AdTriggersElement>>
78 void SetAdTriggers(AdTriggersT&& value) {
79 m_adTriggersHasBeenSet = true;
80 m_adTriggers = std::forward<AdTriggersT>(value);
81 }
82 template <typename AdTriggersT = Aws::Vector<__AdTriggersElement>>
83 HlsPackage& WithAdTriggers(AdTriggersT&& value) {
84 SetAdTriggers(std::forward<AdTriggersT>(value));
85 return *this;
86 }
88 m_adTriggersHasBeenSet = true;
89 m_adTriggers.push_back(value);
90 return *this;
91 }
93
95
96 inline AdsOnDeliveryRestrictions GetAdsOnDeliveryRestrictions() const { return m_adsOnDeliveryRestrictions; }
97 inline bool AdsOnDeliveryRestrictionsHasBeenSet() const { return m_adsOnDeliveryRestrictionsHasBeenSet; }
99 m_adsOnDeliveryRestrictionsHasBeenSet = true;
100 m_adsOnDeliveryRestrictions = value;
101 }
104 return *this;
105 }
107
109
110 inline const HlsEncryption& GetEncryption() const { return m_encryption; }
111 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
112 template <typename EncryptionT = HlsEncryption>
113 void SetEncryption(EncryptionT&& value) {
114 m_encryptionHasBeenSet = true;
115 m_encryption = std::forward<EncryptionT>(value);
116 }
117 template <typename EncryptionT = HlsEncryption>
118 HlsPackage& WithEncryption(EncryptionT&& value) {
119 SetEncryption(std::forward<EncryptionT>(value));
120 return *this;
121 }
123
125
129 inline bool GetIncludeDvbSubtitles() const { return m_includeDvbSubtitles; }
130 inline bool IncludeDvbSubtitlesHasBeenSet() const { return m_includeDvbSubtitlesHasBeenSet; }
131 inline void SetIncludeDvbSubtitles(bool value) {
132 m_includeDvbSubtitlesHasBeenSet = true;
133 m_includeDvbSubtitles = value;
134 }
137 return *this;
138 }
140
142
145 inline bool GetIncludeIframeOnlyStream() const { return m_includeIframeOnlyStream; }
146 inline bool IncludeIframeOnlyStreamHasBeenSet() const { return m_includeIframeOnlyStreamHasBeenSet; }
147 inline void SetIncludeIframeOnlyStream(bool value) {
148 m_includeIframeOnlyStreamHasBeenSet = true;
149 m_includeIframeOnlyStream = value;
150 }
153 return *this;
154 }
156
158
166 inline PlaylistType GetPlaylistType() const { return m_playlistType; }
167 inline bool PlaylistTypeHasBeenSet() const { return m_playlistTypeHasBeenSet; }
168 inline void SetPlaylistType(PlaylistType value) {
169 m_playlistTypeHasBeenSet = true;
170 m_playlistType = value;
171 }
173 SetPlaylistType(value);
174 return *this;
175 }
177
179
182 inline int GetPlaylistWindowSeconds() const { return m_playlistWindowSeconds; }
183 inline bool PlaylistWindowSecondsHasBeenSet() const { return m_playlistWindowSecondsHasBeenSet; }
184 inline void SetPlaylistWindowSeconds(int value) {
185 m_playlistWindowSecondsHasBeenSet = true;
186 m_playlistWindowSeconds = value;
187 }
190 return *this;
191 }
193
195
214 inline int GetProgramDateTimeIntervalSeconds() const { return m_programDateTimeIntervalSeconds; }
215 inline bool ProgramDateTimeIntervalSecondsHasBeenSet() const { return m_programDateTimeIntervalSecondsHasBeenSet; }
216 inline void SetProgramDateTimeIntervalSeconds(int value) {
217 m_programDateTimeIntervalSecondsHasBeenSet = true;
218 m_programDateTimeIntervalSeconds = value;
219 }
222 return *this;
223 }
225
227
233 inline int GetSegmentDurationSeconds() const { return m_segmentDurationSeconds; }
234 inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
235 inline void SetSegmentDurationSeconds(int value) {
236 m_segmentDurationSecondsHasBeenSet = true;
237 m_segmentDurationSeconds = value;
238 }
241 return *this;
242 }
244
246
247 inline const StreamSelection& GetStreamSelection() const { return m_streamSelection; }
248 inline bool StreamSelectionHasBeenSet() const { return m_streamSelectionHasBeenSet; }
249 template <typename StreamSelectionT = StreamSelection>
250 void SetStreamSelection(StreamSelectionT&& value) {
251 m_streamSelectionHasBeenSet = true;
252 m_streamSelection = std::forward<StreamSelectionT>(value);
253 }
254 template <typename StreamSelectionT = StreamSelection>
255 HlsPackage& WithStreamSelection(StreamSelectionT&& value) {
256 SetStreamSelection(std::forward<StreamSelectionT>(value));
257 return *this;
258 }
260
262
265 inline bool GetUseAudioRenditionGroup() const { return m_useAudioRenditionGroup; }
266 inline bool UseAudioRenditionGroupHasBeenSet() const { return m_useAudioRenditionGroupHasBeenSet; }
267 inline void SetUseAudioRenditionGroup(bool value) {
268 m_useAudioRenditionGroupHasBeenSet = true;
269 m_useAudioRenditionGroup = value;
270 }
273 return *this;
274 }
276 private:
277 AdMarkers m_adMarkers{AdMarkers::NOT_SET};
278
280
282
283 HlsEncryption m_encryption;
284
285 bool m_includeDvbSubtitles{false};
286
287 bool m_includeIframeOnlyStream{false};
288
289 PlaylistType m_playlistType{PlaylistType::NOT_SET};
290
291 int m_playlistWindowSeconds{0};
292
293 int m_programDateTimeIntervalSeconds{0};
294
295 int m_segmentDurationSeconds{0};
296
297 StreamSelection m_streamSelection;
298
299 bool m_useAudioRenditionGroup{false};
300 bool m_adMarkersHasBeenSet = false;
301 bool m_adTriggersHasBeenSet = false;
302 bool m_adsOnDeliveryRestrictionsHasBeenSet = false;
303 bool m_encryptionHasBeenSet = false;
304 bool m_includeDvbSubtitlesHasBeenSet = false;
305 bool m_includeIframeOnlyStreamHasBeenSet = false;
306 bool m_playlistTypeHasBeenSet = false;
307 bool m_playlistWindowSecondsHasBeenSet = false;
308 bool m_programDateTimeIntervalSecondsHasBeenSet = false;
309 bool m_segmentDurationSecondsHasBeenSet = false;
310 bool m_streamSelectionHasBeenSet = false;
311 bool m_useAudioRenditionGroupHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace MediaPackage
316} // namespace Aws
HlsPackage & WithSegmentDurationSeconds(int value)
Definition HlsPackage.h:239
void SetProgramDateTimeIntervalSeconds(int value)
Definition HlsPackage.h:216
void SetPlaylistType(PlaylistType value)
Definition HlsPackage.h:168
HlsPackage & WithAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions value)
Definition HlsPackage.h:102
const StreamSelection & GetStreamSelection() const
Definition HlsPackage.h:247
const Aws::Vector< __AdTriggersElement > & GetAdTriggers() const
Definition HlsPackage.h:75
void SetAdMarkers(AdMarkers value)
Definition HlsPackage.h:63
PlaylistType GetPlaylistType() const
Definition HlsPackage.h:166
HlsPackage & WithIncludeDvbSubtitles(bool value)
Definition HlsPackage.h:135
HlsPackage & AddAdTriggers(__AdTriggersElement value)
Definition HlsPackage.h:87
bool ProgramDateTimeIntervalSecondsHasBeenSet() const
Definition HlsPackage.h:215
bool AdsOnDeliveryRestrictionsHasBeenSet() const
Definition HlsPackage.h:97
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
AdsOnDeliveryRestrictions GetAdsOnDeliveryRestrictions() const
Definition HlsPackage.h:96
void SetStreamSelection(StreamSelectionT &&value)
Definition HlsPackage.h:250
AWS_MEDIAPACKAGE_API HlsPackage(Aws::Utils::Json::JsonView jsonValue)
HlsPackage & WithPlaylistWindowSeconds(int value)
Definition HlsPackage.h:188
HlsPackage & WithUseAudioRenditionGroup(bool value)
Definition HlsPackage.h:271
void SetEncryption(EncryptionT &&value)
Definition HlsPackage.h:113
void SetUseAudioRenditionGroup(bool value)
Definition HlsPackage.h:267
const HlsEncryption & GetEncryption() const
Definition HlsPackage.h:110
HlsPackage & WithAdTriggers(AdTriggersT &&value)
Definition HlsPackage.h:83
HlsPackage & WithProgramDateTimeIntervalSeconds(int value)
Definition HlsPackage.h:220
HlsPackage & WithPlaylistType(PlaylistType value)
Definition HlsPackage.h:172
HlsPackage & WithEncryption(EncryptionT &&value)
Definition HlsPackage.h:118
AWS_MEDIAPACKAGE_API HlsPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAdTriggers(AdTriggersT &&value)
Definition HlsPackage.h:78
void SetAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions value)
Definition HlsPackage.h:98
AWS_MEDIAPACKAGE_API HlsPackage()=default
HlsPackage & WithStreamSelection(StreamSelectionT &&value)
Definition HlsPackage.h:255
HlsPackage & WithAdMarkers(AdMarkers value)
Definition HlsPackage.h:67
HlsPackage & WithIncludeIframeOnlyStream(bool value)
Definition HlsPackage.h:151
void SetIncludeIframeOnlyStream(bool value)
Definition HlsPackage.h:147
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue