AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PlaybackConfiguration.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediatailor/model/AvailSuppression.h>
10#include <aws/mediatailor/model/Bumper.h>
11#include <aws/mediatailor/model/CdnConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/mediatailor/model/DashConfiguration.h>
14#include <aws/mediatailor/model/HlsConfiguration.h>
15#include <aws/mediatailor/model/InsertionMode.h>
16#include <aws/mediatailor/model/LivePreRollConfiguration.h>
17#include <aws/mediatailor/model/LogConfiguration.h>
18#include <aws/mediatailor/model/ManifestProcessingRules.h>
19#include <aws/mediatailor/model/AdConditioningConfiguration.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace MediaTailor
33{
34namespace Model
35{
36
47 {
48 public:
49 AWS_MEDIATAILOR_API PlaybackConfiguration() = default;
50 AWS_MEDIATAILOR_API PlaybackConfiguration(Aws::Utils::Json::JsonView jsonValue);
52 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
63 inline const Aws::String& GetAdDecisionServerUrl() const { return m_adDecisionServerUrl; }
64 inline bool AdDecisionServerUrlHasBeenSet() const { return m_adDecisionServerUrlHasBeenSet; }
65 template<typename AdDecisionServerUrlT = Aws::String>
66 void SetAdDecisionServerUrl(AdDecisionServerUrlT&& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = std::forward<AdDecisionServerUrlT>(value); }
67 template<typename AdDecisionServerUrlT = Aws::String>
68 PlaybackConfiguration& WithAdDecisionServerUrl(AdDecisionServerUrlT&& value) { SetAdDecisionServerUrl(std::forward<AdDecisionServerUrlT>(value)); return *this;}
70
72
78 inline const AvailSuppression& GetAvailSuppression() const { return m_availSuppression; }
79 inline bool AvailSuppressionHasBeenSet() const { return m_availSuppressionHasBeenSet; }
80 template<typename AvailSuppressionT = AvailSuppression>
81 void SetAvailSuppression(AvailSuppressionT&& value) { m_availSuppressionHasBeenSet = true; m_availSuppression = std::forward<AvailSuppressionT>(value); }
82 template<typename AvailSuppressionT = AvailSuppression>
83 PlaybackConfiguration& WithAvailSuppression(AvailSuppressionT&& value) { SetAvailSuppression(std::forward<AvailSuppressionT>(value)); return *this;}
85
87
93 inline const Bumper& GetBumper() const { return m_bumper; }
94 inline bool BumperHasBeenSet() const { return m_bumperHasBeenSet; }
95 template<typename BumperT = Bumper>
96 void SetBumper(BumperT&& value) { m_bumperHasBeenSet = true; m_bumper = std::forward<BumperT>(value); }
97 template<typename BumperT = Bumper>
98 PlaybackConfiguration& WithBumper(BumperT&& value) { SetBumper(std::forward<BumperT>(value)); return *this;}
100
102
106 inline const CdnConfiguration& GetCdnConfiguration() const { return m_cdnConfiguration; }
107 inline bool CdnConfigurationHasBeenSet() const { return m_cdnConfigurationHasBeenSet; }
108 template<typename CdnConfigurationT = CdnConfiguration>
109 void SetCdnConfiguration(CdnConfigurationT&& value) { m_cdnConfigurationHasBeenSet = true; m_cdnConfiguration = std::forward<CdnConfigurationT>(value); }
110 template<typename CdnConfigurationT = CdnConfiguration>
111 PlaybackConfiguration& WithCdnConfiguration(CdnConfigurationT&& value) { SetCdnConfiguration(std::forward<CdnConfigurationT>(value)); return *this;}
113
115
121 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetConfigurationAliases() const { return m_configurationAliases; }
122 inline bool ConfigurationAliasesHasBeenSet() const { return m_configurationAliasesHasBeenSet; }
123 template<typename ConfigurationAliasesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
124 void SetConfigurationAliases(ConfigurationAliasesT&& value) { m_configurationAliasesHasBeenSet = true; m_configurationAliases = std::forward<ConfigurationAliasesT>(value); }
125 template<typename ConfigurationAliasesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
126 PlaybackConfiguration& WithConfigurationAliases(ConfigurationAliasesT&& value) { SetConfigurationAliases(std::forward<ConfigurationAliasesT>(value)); return *this;}
127 template<typename ConfigurationAliasesKeyT = Aws::String, typename ConfigurationAliasesValueT = Aws::Map<Aws::String, Aws::String>>
128 PlaybackConfiguration& AddConfigurationAliases(ConfigurationAliasesKeyT&& key, ConfigurationAliasesValueT&& value) {
129 m_configurationAliasesHasBeenSet = true; m_configurationAliases.emplace(std::forward<ConfigurationAliasesKeyT>(key), std::forward<ConfigurationAliasesValueT>(value)); return *this;
130 }
132
134
137 inline const DashConfiguration& GetDashConfiguration() const { return m_dashConfiguration; }
138 inline bool DashConfigurationHasBeenSet() const { return m_dashConfigurationHasBeenSet; }
139 template<typename DashConfigurationT = DashConfiguration>
140 void SetDashConfiguration(DashConfigurationT&& value) { m_dashConfigurationHasBeenSet = true; m_dashConfiguration = std::forward<DashConfigurationT>(value); }
141 template<typename DashConfigurationT = DashConfiguration>
142 PlaybackConfiguration& WithDashConfiguration(DashConfigurationT&& value) { SetDashConfiguration(std::forward<DashConfigurationT>(value)); return *this;}
144
146
149 inline const HlsConfiguration& GetHlsConfiguration() const { return m_hlsConfiguration; }
150 inline bool HlsConfigurationHasBeenSet() const { return m_hlsConfigurationHasBeenSet; }
151 template<typename HlsConfigurationT = HlsConfiguration>
152 void SetHlsConfiguration(HlsConfigurationT&& value) { m_hlsConfigurationHasBeenSet = true; m_hlsConfiguration = std::forward<HlsConfigurationT>(value); }
153 template<typename HlsConfigurationT = HlsConfiguration>
154 PlaybackConfiguration& WithHlsConfiguration(HlsConfigurationT&& value) { SetHlsConfiguration(std::forward<HlsConfigurationT>(value)); return *this;}
156
158
166 inline InsertionMode GetInsertionMode() const { return m_insertionMode; }
167 inline bool InsertionModeHasBeenSet() const { return m_insertionModeHasBeenSet; }
168 inline void SetInsertionMode(InsertionMode value) { m_insertionModeHasBeenSet = true; m_insertionMode = value; }
171
173
176 inline const LivePreRollConfiguration& GetLivePreRollConfiguration() const { return m_livePreRollConfiguration; }
177 inline bool LivePreRollConfigurationHasBeenSet() const { return m_livePreRollConfigurationHasBeenSet; }
178 template<typename LivePreRollConfigurationT = LivePreRollConfiguration>
179 void SetLivePreRollConfiguration(LivePreRollConfigurationT&& value) { m_livePreRollConfigurationHasBeenSet = true; m_livePreRollConfiguration = std::forward<LivePreRollConfigurationT>(value); }
180 template<typename LivePreRollConfigurationT = LivePreRollConfiguration>
181 PlaybackConfiguration& WithLivePreRollConfiguration(LivePreRollConfigurationT&& value) { SetLivePreRollConfiguration(std::forward<LivePreRollConfigurationT>(value)); return *this;}
183
185
189 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
190 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
191 template<typename LogConfigurationT = LogConfiguration>
192 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
193 template<typename LogConfigurationT = LogConfiguration>
194 PlaybackConfiguration& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
196
198
202 inline const ManifestProcessingRules& GetManifestProcessingRules() const { return m_manifestProcessingRules; }
203 inline bool ManifestProcessingRulesHasBeenSet() const { return m_manifestProcessingRulesHasBeenSet; }
204 template<typename ManifestProcessingRulesT = ManifestProcessingRules>
205 void SetManifestProcessingRules(ManifestProcessingRulesT&& value) { m_manifestProcessingRulesHasBeenSet = true; m_manifestProcessingRules = std::forward<ManifestProcessingRulesT>(value); }
206 template<typename ManifestProcessingRulesT = ManifestProcessingRules>
207 PlaybackConfiguration& WithManifestProcessingRules(ManifestProcessingRulesT&& value) { SetManifestProcessingRules(std::forward<ManifestProcessingRulesT>(value)); return *this;}
209
211
214 inline const Aws::String& GetName() const { return m_name; }
215 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
216 template<typename NameT = Aws::String>
217 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
218 template<typename NameT = Aws::String>
219 PlaybackConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
221
223
234 inline int GetPersonalizationThresholdSeconds() const { return m_personalizationThresholdSeconds; }
235 inline bool PersonalizationThresholdSecondsHasBeenSet() const { return m_personalizationThresholdSecondsHasBeenSet; }
236 inline void SetPersonalizationThresholdSeconds(int value) { m_personalizationThresholdSecondsHasBeenSet = true; m_personalizationThresholdSeconds = value; }
239
241
244 inline const Aws::String& GetPlaybackConfigurationArn() const { return m_playbackConfigurationArn; }
245 inline bool PlaybackConfigurationArnHasBeenSet() const { return m_playbackConfigurationArnHasBeenSet; }
246 template<typename PlaybackConfigurationArnT = Aws::String>
247 void SetPlaybackConfigurationArn(PlaybackConfigurationArnT&& value) { m_playbackConfigurationArnHasBeenSet = true; m_playbackConfigurationArn = std::forward<PlaybackConfigurationArnT>(value); }
248 template<typename PlaybackConfigurationArnT = Aws::String>
249 PlaybackConfiguration& WithPlaybackConfigurationArn(PlaybackConfigurationArnT&& value) { SetPlaybackConfigurationArn(std::forward<PlaybackConfigurationArnT>(value)); return *this;}
251
253
257 inline const Aws::String& GetPlaybackEndpointPrefix() const { return m_playbackEndpointPrefix; }
258 inline bool PlaybackEndpointPrefixHasBeenSet() const { return m_playbackEndpointPrefixHasBeenSet; }
259 template<typename PlaybackEndpointPrefixT = Aws::String>
260 void SetPlaybackEndpointPrefix(PlaybackEndpointPrefixT&& value) { m_playbackEndpointPrefixHasBeenSet = true; m_playbackEndpointPrefix = std::forward<PlaybackEndpointPrefixT>(value); }
261 template<typename PlaybackEndpointPrefixT = Aws::String>
262 PlaybackConfiguration& WithPlaybackEndpointPrefix(PlaybackEndpointPrefixT&& value) { SetPlaybackEndpointPrefix(std::forward<PlaybackEndpointPrefixT>(value)); return *this;}
264
266
270 inline const Aws::String& GetSessionInitializationEndpointPrefix() const { return m_sessionInitializationEndpointPrefix; }
271 inline bool SessionInitializationEndpointPrefixHasBeenSet() const { return m_sessionInitializationEndpointPrefixHasBeenSet; }
272 template<typename SessionInitializationEndpointPrefixT = Aws::String>
273 void SetSessionInitializationEndpointPrefix(SessionInitializationEndpointPrefixT&& value) { m_sessionInitializationEndpointPrefixHasBeenSet = true; m_sessionInitializationEndpointPrefix = std::forward<SessionInitializationEndpointPrefixT>(value); }
274 template<typename SessionInitializationEndpointPrefixT = Aws::String>
275 PlaybackConfiguration& WithSessionInitializationEndpointPrefix(SessionInitializationEndpointPrefixT&& value) { SetSessionInitializationEndpointPrefix(std::forward<SessionInitializationEndpointPrefixT>(value)); return *this;}
277
279
287 inline const Aws::String& GetSlateAdUrl() const { return m_slateAdUrl; }
288 inline bool SlateAdUrlHasBeenSet() const { return m_slateAdUrlHasBeenSet; }
289 template<typename SlateAdUrlT = Aws::String>
290 void SetSlateAdUrl(SlateAdUrlT&& value) { m_slateAdUrlHasBeenSet = true; m_slateAdUrl = std::forward<SlateAdUrlT>(value); }
291 template<typename SlateAdUrlT = Aws::String>
292 PlaybackConfiguration& WithSlateAdUrl(SlateAdUrlT&& value) { SetSlateAdUrl(std::forward<SlateAdUrlT>(value)); return *this;}
294
296
303 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
304 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
305 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
306 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
307 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
308 PlaybackConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
309 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
310 PlaybackConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
311 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
312 }
314
316
322 inline const Aws::String& GetTranscodeProfileName() const { return m_transcodeProfileName; }
323 inline bool TranscodeProfileNameHasBeenSet() const { return m_transcodeProfileNameHasBeenSet; }
324 template<typename TranscodeProfileNameT = Aws::String>
325 void SetTranscodeProfileName(TranscodeProfileNameT&& value) { m_transcodeProfileNameHasBeenSet = true; m_transcodeProfileName = std::forward<TranscodeProfileNameT>(value); }
326 template<typename TranscodeProfileNameT = Aws::String>
327 PlaybackConfiguration& WithTranscodeProfileName(TranscodeProfileNameT&& value) { SetTranscodeProfileName(std::forward<TranscodeProfileNameT>(value)); return *this;}
329
331
335 inline const Aws::String& GetVideoContentSourceUrl() const { return m_videoContentSourceUrl; }
336 inline bool VideoContentSourceUrlHasBeenSet() const { return m_videoContentSourceUrlHasBeenSet; }
337 template<typename VideoContentSourceUrlT = Aws::String>
338 void SetVideoContentSourceUrl(VideoContentSourceUrlT&& value) { m_videoContentSourceUrlHasBeenSet = true; m_videoContentSourceUrl = std::forward<VideoContentSourceUrlT>(value); }
339 template<typename VideoContentSourceUrlT = Aws::String>
340 PlaybackConfiguration& WithVideoContentSourceUrl(VideoContentSourceUrlT&& value) { SetVideoContentSourceUrl(std::forward<VideoContentSourceUrlT>(value)); return *this;}
342
344
349 inline const AdConditioningConfiguration& GetAdConditioningConfiguration() const { return m_adConditioningConfiguration; }
350 inline bool AdConditioningConfigurationHasBeenSet() const { return m_adConditioningConfigurationHasBeenSet; }
351 template<typename AdConditioningConfigurationT = AdConditioningConfiguration>
352 void SetAdConditioningConfiguration(AdConditioningConfigurationT&& value) { m_adConditioningConfigurationHasBeenSet = true; m_adConditioningConfiguration = std::forward<AdConditioningConfigurationT>(value); }
353 template<typename AdConditioningConfigurationT = AdConditioningConfiguration>
354 PlaybackConfiguration& WithAdConditioningConfiguration(AdConditioningConfigurationT&& value) { SetAdConditioningConfiguration(std::forward<AdConditioningConfigurationT>(value)); return *this;}
356 private:
357
358 Aws::String m_adDecisionServerUrl;
359 bool m_adDecisionServerUrlHasBeenSet = false;
360
361 AvailSuppression m_availSuppression;
362 bool m_availSuppressionHasBeenSet = false;
363
364 Bumper m_bumper;
365 bool m_bumperHasBeenSet = false;
366
367 CdnConfiguration m_cdnConfiguration;
368 bool m_cdnConfigurationHasBeenSet = false;
369
371 bool m_configurationAliasesHasBeenSet = false;
372
373 DashConfiguration m_dashConfiguration;
374 bool m_dashConfigurationHasBeenSet = false;
375
376 HlsConfiguration m_hlsConfiguration;
377 bool m_hlsConfigurationHasBeenSet = false;
378
379 InsertionMode m_insertionMode{InsertionMode::NOT_SET};
380 bool m_insertionModeHasBeenSet = false;
381
382 LivePreRollConfiguration m_livePreRollConfiguration;
383 bool m_livePreRollConfigurationHasBeenSet = false;
384
385 LogConfiguration m_logConfiguration;
386 bool m_logConfigurationHasBeenSet = false;
387
388 ManifestProcessingRules m_manifestProcessingRules;
389 bool m_manifestProcessingRulesHasBeenSet = false;
390
391 Aws::String m_name;
392 bool m_nameHasBeenSet = false;
393
394 int m_personalizationThresholdSeconds{0};
395 bool m_personalizationThresholdSecondsHasBeenSet = false;
396
397 Aws::String m_playbackConfigurationArn;
398 bool m_playbackConfigurationArnHasBeenSet = false;
399
400 Aws::String m_playbackEndpointPrefix;
401 bool m_playbackEndpointPrefixHasBeenSet = false;
402
403 Aws::String m_sessionInitializationEndpointPrefix;
404 bool m_sessionInitializationEndpointPrefixHasBeenSet = false;
405
406 Aws::String m_slateAdUrl;
407 bool m_slateAdUrlHasBeenSet = false;
408
410 bool m_tagsHasBeenSet = false;
411
412 Aws::String m_transcodeProfileName;
413 bool m_transcodeProfileNameHasBeenSet = false;
414
415 Aws::String m_videoContentSourceUrl;
416 bool m_videoContentSourceUrlHasBeenSet = false;
417
418 AdConditioningConfiguration m_adConditioningConfiguration;
419 bool m_adConditioningConfigurationHasBeenSet = false;
420 };
421
422} // namespace Model
423} // namespace MediaTailor
424} // namespace Aws
void SetSessionInitializationEndpointPrefix(SessionInitializationEndpointPrefixT &&value)
void SetVideoContentSourceUrl(VideoContentSourceUrlT &&value)
PlaybackConfiguration & WithPersonalizationThresholdSeconds(int value)
void SetConfigurationAliases(ConfigurationAliasesT &&value)
PlaybackConfiguration & WithCdnConfiguration(CdnConfigurationT &&value)
PlaybackConfiguration & WithBumper(BumperT &&value)
const DashConfiguration & GetDashConfiguration() const
PlaybackConfiguration & WithDashConfiguration(DashConfigurationT &&value)
PlaybackConfiguration & WithInsertionMode(InsertionMode value)
PlaybackConfiguration & WithVideoContentSourceUrl(VideoContentSourceUrlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PlaybackConfiguration & WithLivePreRollConfiguration(LivePreRollConfigurationT &&value)
const HlsConfiguration & GetHlsConfiguration() const
AWS_MEDIATAILOR_API PlaybackConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PlaybackConfiguration & WithPlaybackConfigurationArn(PlaybackConfigurationArnT &&value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPlaybackEndpointPrefix(PlaybackEndpointPrefixT &&value)
PlaybackConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
PlaybackConfiguration & WithPlaybackEndpointPrefix(PlaybackEndpointPrefixT &&value)
const Aws::String & GetSessionInitializationEndpointPrefix() const
const LivePreRollConfiguration & GetLivePreRollConfiguration() const
const CdnConfiguration & GetCdnConfiguration() const
void SetDashConfiguration(DashConfigurationT &&value)
void SetTranscodeProfileName(TranscodeProfileNameT &&value)
void SetAvailSuppression(AvailSuppressionT &&value)
PlaybackConfiguration & WithAdDecisionServerUrl(AdDecisionServerUrlT &&value)
void SetAdDecisionServerUrl(AdDecisionServerUrlT &&value)
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetConfigurationAliases() const
void SetAdConditioningConfiguration(AdConditioningConfigurationT &&value)
PlaybackConfiguration & AddConfigurationAliases(ConfigurationAliasesKeyT &&key, ConfigurationAliasesValueT &&value)
PlaybackConfiguration & WithSlateAdUrl(SlateAdUrlT &&value)
const AdConditioningConfiguration & GetAdConditioningConfiguration() const
PlaybackConfiguration & WithAvailSuppression(AvailSuppressionT &&value)
void SetPlaybackConfigurationArn(PlaybackConfigurationArnT &&value)
PlaybackConfiguration & WithTags(TagsT &&value)
PlaybackConfiguration & WithAdConditioningConfiguration(AdConditioningConfigurationT &&value)
const ManifestProcessingRules & GetManifestProcessingRules() const
PlaybackConfiguration & WithLogConfiguration(LogConfigurationT &&value)
void SetLivePreRollConfiguration(LivePreRollConfigurationT &&value)
PlaybackConfiguration & WithName(NameT &&value)
PlaybackConfiguration & WithConfigurationAliases(ConfigurationAliasesT &&value)
PlaybackConfiguration & WithManifestProcessingRules(ManifestProcessingRulesT &&value)
AWS_MEDIATAILOR_API PlaybackConfiguration()=default
AWS_MEDIATAILOR_API PlaybackConfiguration(Aws::Utils::Json::JsonView jsonValue)
PlaybackConfiguration & WithTranscodeProfileName(TranscodeProfileNameT &&value)
void SetManifestProcessingRules(ManifestProcessingRulesT &&value)
const LogConfiguration & GetLogConfiguration() const
PlaybackConfiguration & WithSessionInitializationEndpointPrefix(SessionInitializationEndpointPrefixT &&value)
const AvailSuppression & GetAvailSuppression() const
PlaybackConfiguration & WithHlsConfiguration(HlsConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue