AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HlsManifest.h
1
6#pragma once
7#include <aws/mediapackage/MediaPackage_EXPORTS.h>
8#include <aws/mediapackage/model/AdMarkers.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediapackage/model/PlaylistType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mediapackage/model/AdsOnDeliveryRestrictions.h>
13#include <aws/mediapackage/model/__AdTriggersElement.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaPackage
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MEDIAPACKAGE_API HlsManifest();
40 AWS_MEDIAPACKAGE_API HlsManifest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIAPACKAGE_API HlsManifest& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
66 inline const AdMarkers& GetAdMarkers() const{ return m_adMarkers; }
67 inline bool AdMarkersHasBeenSet() const { return m_adMarkersHasBeenSet; }
68 inline void SetAdMarkers(const AdMarkers& value) { m_adMarkersHasBeenSet = true; m_adMarkers = value; }
69 inline void SetAdMarkers(AdMarkers&& value) { m_adMarkersHasBeenSet = true; m_adMarkers = std::move(value); }
70 inline HlsManifest& WithAdMarkers(const AdMarkers& value) { SetAdMarkers(value); return *this;}
71 inline HlsManifest& WithAdMarkers(AdMarkers&& value) { SetAdMarkers(std::move(value)); return *this;}
73
75
79 inline const Aws::String& GetId() const{ return m_id; }
80 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
81 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
82 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
83 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
84 inline HlsManifest& WithId(const Aws::String& value) { SetId(value); return *this;}
85 inline HlsManifest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
86 inline HlsManifest& WithId(const char* value) { SetId(value); return *this;}
88
90
93 inline bool GetIncludeIframeOnlyStream() const{ return m_includeIframeOnlyStream; }
94 inline bool IncludeIframeOnlyStreamHasBeenSet() const { return m_includeIframeOnlyStreamHasBeenSet; }
95 inline void SetIncludeIframeOnlyStream(bool value) { m_includeIframeOnlyStreamHasBeenSet = true; m_includeIframeOnlyStream = value; }
96 inline HlsManifest& WithIncludeIframeOnlyStream(bool value) { SetIncludeIframeOnlyStream(value); return *this;}
98
100
104 inline const Aws::String& GetManifestName() const{ return m_manifestName; }
105 inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
106 inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
107 inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
108 inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
109 inline HlsManifest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
110 inline HlsManifest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
111 inline HlsManifest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
113
115
123 inline const PlaylistType& GetPlaylistType() const{ return m_playlistType; }
124 inline bool PlaylistTypeHasBeenSet() const { return m_playlistTypeHasBeenSet; }
125 inline void SetPlaylistType(const PlaylistType& value) { m_playlistTypeHasBeenSet = true; m_playlistType = value; }
126 inline void SetPlaylistType(PlaylistType&& value) { m_playlistTypeHasBeenSet = true; m_playlistType = std::move(value); }
127 inline HlsManifest& WithPlaylistType(const PlaylistType& value) { SetPlaylistType(value); return *this;}
128 inline HlsManifest& WithPlaylistType(PlaylistType&& value) { SetPlaylistType(std::move(value)); return *this;}
130
132
135 inline int GetPlaylistWindowSeconds() const{ return m_playlistWindowSeconds; }
136 inline bool PlaylistWindowSecondsHasBeenSet() const { return m_playlistWindowSecondsHasBeenSet; }
137 inline void SetPlaylistWindowSeconds(int value) { m_playlistWindowSecondsHasBeenSet = true; m_playlistWindowSeconds = value; }
138 inline HlsManifest& WithPlaylistWindowSeconds(int value) { SetPlaylistWindowSeconds(value); return *this;}
140
142
161 inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; }
162 inline bool ProgramDateTimeIntervalSecondsHasBeenSet() const { return m_programDateTimeIntervalSecondsHasBeenSet; }
163 inline void SetProgramDateTimeIntervalSeconds(int value) { m_programDateTimeIntervalSecondsHasBeenSet = true; m_programDateTimeIntervalSeconds = value; }
166
168
171 inline const Aws::String& GetUrl() const{ return m_url; }
172 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
173 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
174 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
175 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
176 inline HlsManifest& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
177 inline HlsManifest& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
178 inline HlsManifest& WithUrl(const char* value) { SetUrl(value); return *this;}
180
182
183 inline const Aws::Vector<__AdTriggersElement>& GetAdTriggers() const{ return m_adTriggers; }
184 inline bool AdTriggersHasBeenSet() const { return m_adTriggersHasBeenSet; }
185 inline void SetAdTriggers(const Aws::Vector<__AdTriggersElement>& value) { m_adTriggersHasBeenSet = true; m_adTriggers = value; }
186 inline void SetAdTriggers(Aws::Vector<__AdTriggersElement>&& value) { m_adTriggersHasBeenSet = true; m_adTriggers = std::move(value); }
187 inline HlsManifest& WithAdTriggers(const Aws::Vector<__AdTriggersElement>& value) { SetAdTriggers(value); return *this;}
188 inline HlsManifest& WithAdTriggers(Aws::Vector<__AdTriggersElement>&& value) { SetAdTriggers(std::move(value)); return *this;}
189 inline HlsManifest& AddAdTriggers(const __AdTriggersElement& value) { m_adTriggersHasBeenSet = true; m_adTriggers.push_back(value); return *this; }
190 inline HlsManifest& AddAdTriggers(__AdTriggersElement&& value) { m_adTriggersHasBeenSet = true; m_adTriggers.push_back(std::move(value)); return *this; }
192
194
195 inline const AdsOnDeliveryRestrictions& GetAdsOnDeliveryRestrictions() const{ return m_adsOnDeliveryRestrictions; }
196 inline bool AdsOnDeliveryRestrictionsHasBeenSet() const { return m_adsOnDeliveryRestrictionsHasBeenSet; }
197 inline void SetAdsOnDeliveryRestrictions(const AdsOnDeliveryRestrictions& value) { m_adsOnDeliveryRestrictionsHasBeenSet = true; m_adsOnDeliveryRestrictions = value; }
198 inline void SetAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions&& value) { m_adsOnDeliveryRestrictionsHasBeenSet = true; m_adsOnDeliveryRestrictions = std::move(value); }
202 private:
203
204 AdMarkers m_adMarkers;
205 bool m_adMarkersHasBeenSet = false;
206
207 Aws::String m_id;
208 bool m_idHasBeenSet = false;
209
210 bool m_includeIframeOnlyStream;
211 bool m_includeIframeOnlyStreamHasBeenSet = false;
212
213 Aws::String m_manifestName;
214 bool m_manifestNameHasBeenSet = false;
215
216 PlaylistType m_playlistType;
217 bool m_playlistTypeHasBeenSet = false;
218
219 int m_playlistWindowSeconds;
220 bool m_playlistWindowSecondsHasBeenSet = false;
221
222 int m_programDateTimeIntervalSeconds;
223 bool m_programDateTimeIntervalSecondsHasBeenSet = false;
224
225 Aws::String m_url;
226 bool m_urlHasBeenSet = false;
227
229 bool m_adTriggersHasBeenSet = false;
230
231 AdsOnDeliveryRestrictions m_adsOnDeliveryRestrictions;
232 bool m_adsOnDeliveryRestrictionsHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace MediaPackage
237} // namespace Aws
HlsManifest & WithAdTriggers(Aws::Vector< __AdTriggersElement > &&value)
HlsManifest & WithAdMarkers(const AdMarkers &value)
Definition HlsManifest.h:70
void SetAdMarkers(const AdMarkers &value)
Definition HlsManifest.h:68
void SetUrl(const Aws::String &value)
const Aws::String & GetUrl() const
HlsManifest & WithUrl(const Aws::String &value)
HlsManifest & WithManifestName(const Aws::String &value)
void SetPlaylistType(const PlaylistType &value)
void SetAdMarkers(AdMarkers &&value)
Definition HlsManifest.h:69
HlsManifest & AddAdTriggers(const __AdTriggersElement &value)
void SetAdsOnDeliveryRestrictions(const AdsOnDeliveryRestrictions &value)
void SetAdTriggers(Aws::Vector< __AdTriggersElement > &&value)
HlsManifest & WithPlaylistWindowSeconds(int value)
HlsManifest & WithManifestName(const char *value)
bool ProgramDateTimeIntervalSecondsHasBeenSet() const
HlsManifest & WithAdsOnDeliveryRestrictions(const AdsOnDeliveryRestrictions &value)
HlsManifest & WithUrl(Aws::String &&value)
HlsManifest & WithPlaylistType(PlaylistType &&value)
HlsManifest & WithAdMarkers(AdMarkers &&value)
Definition HlsManifest.h:71
HlsManifest & WithId(const Aws::String &value)
Definition HlsManifest.h:84
void SetIncludeIframeOnlyStream(bool value)
Definition HlsManifest.h:95
void SetManifestName(Aws::String &&value)
AWS_MEDIAPACKAGE_API HlsManifest(Aws::Utils::Json::JsonView jsonValue)
HlsManifest & WithAdTriggers(const Aws::Vector< __AdTriggersElement > &value)
const AdMarkers & GetAdMarkers() const
Definition HlsManifest.h:66
HlsManifest & WithProgramDateTimeIntervalSeconds(int value)
HlsManifest & WithAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions &&value)
HlsManifest & WithUrl(const char *value)
void SetAdTriggers(const Aws::Vector< __AdTriggersElement > &value)
const Aws::String & GetManifestName() const
HlsManifest & WithIncludeIframeOnlyStream(bool value)
Definition HlsManifest.h:96
const AdsOnDeliveryRestrictions & GetAdsOnDeliveryRestrictions() const
void SetUrl(Aws::String &&value)
void SetManifestName(const Aws::String &value)
HlsManifest & AddAdTriggers(__AdTriggersElement &&value)
void SetId(const char *value)
Definition HlsManifest.h:83
const Aws::Vector< __AdTriggersElement > & GetAdTriggers() const
const Aws::String & GetId() const
Definition HlsManifest.h:79
void SetPlaylistType(PlaylistType &&value)
void SetAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions &&value)
const PlaylistType & GetPlaylistType() const
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
HlsManifest & WithPlaylistType(const PlaylistType &value)
void SetProgramDateTimeIntervalSeconds(int value)
HlsManifest & WithId(const char *value)
Definition HlsManifest.h:86
HlsManifest & WithManifestName(Aws::String &&value)
void SetId(const Aws::String &value)
Definition HlsManifest.h:81
HlsManifest & WithId(Aws::String &&value)
Definition HlsManifest.h:85
AWS_MEDIAPACKAGE_API HlsManifest()
AWS_MEDIAPACKAGE_API HlsManifest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetManifestName(const char *value)
void SetId(Aws::String &&value)
Definition HlsManifest.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue