AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutPlaybackConfigurationRequest.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/MediaTailorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediatailor/model/AvailSuppression.h>
11#include <aws/mediatailor/model/Bumper.h>
12#include <aws/mediatailor/model/CdnConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/mediatailor/model/DashConfigurationForPut.h>
15#include <aws/mediatailor/model/InsertionMode.h>
16#include <aws/mediatailor/model/LivePreRollConfiguration.h>
17#include <aws/mediatailor/model/ManifestProcessingRules.h>
18#include <aws/mediatailor/model/AdConditioningConfiguration.h>
19#include <utility>
20
21namespace Aws
22{
23namespace MediaTailor
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_MEDIATAILOR_API PutPlaybackConfigurationRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "PutPlaybackConfiguration"; }
40
41 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
42
43
45
52 inline const Aws::String& GetAdDecisionServerUrl() const { return m_adDecisionServerUrl; }
53 inline bool AdDecisionServerUrlHasBeenSet() const { return m_adDecisionServerUrlHasBeenSet; }
54 template<typename AdDecisionServerUrlT = Aws::String>
55 void SetAdDecisionServerUrl(AdDecisionServerUrlT&& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = std::forward<AdDecisionServerUrlT>(value); }
56 template<typename AdDecisionServerUrlT = Aws::String>
57 PutPlaybackConfigurationRequest& WithAdDecisionServerUrl(AdDecisionServerUrlT&& value) { SetAdDecisionServerUrl(std::forward<AdDecisionServerUrlT>(value)); return *this;}
59
61
67 inline const AvailSuppression& GetAvailSuppression() const { return m_availSuppression; }
68 inline bool AvailSuppressionHasBeenSet() const { return m_availSuppressionHasBeenSet; }
69 template<typename AvailSuppressionT = AvailSuppression>
70 void SetAvailSuppression(AvailSuppressionT&& value) { m_availSuppressionHasBeenSet = true; m_availSuppression = std::forward<AvailSuppressionT>(value); }
71 template<typename AvailSuppressionT = AvailSuppression>
72 PutPlaybackConfigurationRequest& WithAvailSuppression(AvailSuppressionT&& value) { SetAvailSuppression(std::forward<AvailSuppressionT>(value)); return *this;}
74
76
82 inline const Bumper& GetBumper() const { return m_bumper; }
83 inline bool BumperHasBeenSet() const { return m_bumperHasBeenSet; }
84 template<typename BumperT = Bumper>
85 void SetBumper(BumperT&& value) { m_bumperHasBeenSet = true; m_bumper = std::forward<BumperT>(value); }
86 template<typename BumperT = Bumper>
87 PutPlaybackConfigurationRequest& WithBumper(BumperT&& value) { SetBumper(std::forward<BumperT>(value)); return *this;}
89
91
95 inline const CdnConfiguration& GetCdnConfiguration() const { return m_cdnConfiguration; }
96 inline bool CdnConfigurationHasBeenSet() const { return m_cdnConfigurationHasBeenSet; }
97 template<typename CdnConfigurationT = CdnConfiguration>
98 void SetCdnConfiguration(CdnConfigurationT&& value) { m_cdnConfigurationHasBeenSet = true; m_cdnConfiguration = std::forward<CdnConfigurationT>(value); }
99 template<typename CdnConfigurationT = CdnConfiguration>
100 PutPlaybackConfigurationRequest& WithCdnConfiguration(CdnConfigurationT&& value) { SetCdnConfiguration(std::forward<CdnConfigurationT>(value)); return *this;}
102
104
110 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetConfigurationAliases() const { return m_configurationAliases; }
111 inline bool ConfigurationAliasesHasBeenSet() const { return m_configurationAliasesHasBeenSet; }
112 template<typename ConfigurationAliasesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
113 void SetConfigurationAliases(ConfigurationAliasesT&& value) { m_configurationAliasesHasBeenSet = true; m_configurationAliases = std::forward<ConfigurationAliasesT>(value); }
114 template<typename ConfigurationAliasesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
115 PutPlaybackConfigurationRequest& WithConfigurationAliases(ConfigurationAliasesT&& value) { SetConfigurationAliases(std::forward<ConfigurationAliasesT>(value)); return *this;}
116 template<typename ConfigurationAliasesKeyT = Aws::String, typename ConfigurationAliasesValueT = Aws::Map<Aws::String, Aws::String>>
117 PutPlaybackConfigurationRequest& AddConfigurationAliases(ConfigurationAliasesKeyT&& key, ConfigurationAliasesValueT&& value) {
118 m_configurationAliasesHasBeenSet = true; m_configurationAliases.emplace(std::forward<ConfigurationAliasesKeyT>(key), std::forward<ConfigurationAliasesValueT>(value)); return *this;
119 }
121
123
126 inline const DashConfigurationForPut& GetDashConfiguration() const { return m_dashConfiguration; }
127 inline bool DashConfigurationHasBeenSet() const { return m_dashConfigurationHasBeenSet; }
128 template<typename DashConfigurationT = DashConfigurationForPut>
129 void SetDashConfiguration(DashConfigurationT&& value) { m_dashConfigurationHasBeenSet = true; m_dashConfiguration = std::forward<DashConfigurationT>(value); }
130 template<typename DashConfigurationT = DashConfigurationForPut>
131 PutPlaybackConfigurationRequest& WithDashConfiguration(DashConfigurationT&& value) { SetDashConfiguration(std::forward<DashConfigurationT>(value)); return *this;}
133
135
143 inline InsertionMode GetInsertionMode() const { return m_insertionMode; }
144 inline bool InsertionModeHasBeenSet() const { return m_insertionModeHasBeenSet; }
145 inline void SetInsertionMode(InsertionMode value) { m_insertionModeHasBeenSet = true; m_insertionMode = value; }
148
150
153 inline const LivePreRollConfiguration& GetLivePreRollConfiguration() const { return m_livePreRollConfiguration; }
154 inline bool LivePreRollConfigurationHasBeenSet() const { return m_livePreRollConfigurationHasBeenSet; }
155 template<typename LivePreRollConfigurationT = LivePreRollConfiguration>
156 void SetLivePreRollConfiguration(LivePreRollConfigurationT&& value) { m_livePreRollConfigurationHasBeenSet = true; m_livePreRollConfiguration = std::forward<LivePreRollConfigurationT>(value); }
157 template<typename LivePreRollConfigurationT = LivePreRollConfiguration>
158 PutPlaybackConfigurationRequest& WithLivePreRollConfiguration(LivePreRollConfigurationT&& value) { SetLivePreRollConfiguration(std::forward<LivePreRollConfigurationT>(value)); return *this;}
160
162
166 inline const ManifestProcessingRules& GetManifestProcessingRules() const { return m_manifestProcessingRules; }
167 inline bool ManifestProcessingRulesHasBeenSet() const { return m_manifestProcessingRulesHasBeenSet; }
168 template<typename ManifestProcessingRulesT = ManifestProcessingRules>
169 void SetManifestProcessingRules(ManifestProcessingRulesT&& value) { m_manifestProcessingRulesHasBeenSet = true; m_manifestProcessingRules = std::forward<ManifestProcessingRulesT>(value); }
170 template<typename ManifestProcessingRulesT = ManifestProcessingRules>
171 PutPlaybackConfigurationRequest& WithManifestProcessingRules(ManifestProcessingRulesT&& value) { SetManifestProcessingRules(std::forward<ManifestProcessingRulesT>(value)); return *this;}
173
175
178 inline const Aws::String& GetName() const { return m_name; }
179 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
180 template<typename NameT = Aws::String>
181 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
182 template<typename NameT = Aws::String>
183 PutPlaybackConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
185
187
198 inline int GetPersonalizationThresholdSeconds() const { return m_personalizationThresholdSeconds; }
199 inline bool PersonalizationThresholdSecondsHasBeenSet() const { return m_personalizationThresholdSecondsHasBeenSet; }
200 inline void SetPersonalizationThresholdSeconds(int value) { m_personalizationThresholdSecondsHasBeenSet = true; m_personalizationThresholdSeconds = value; }
203
205
213 inline const Aws::String& GetSlateAdUrl() const { return m_slateAdUrl; }
214 inline bool SlateAdUrlHasBeenSet() const { return m_slateAdUrlHasBeenSet; }
215 template<typename SlateAdUrlT = Aws::String>
216 void SetSlateAdUrl(SlateAdUrlT&& value) { m_slateAdUrlHasBeenSet = true; m_slateAdUrl = std::forward<SlateAdUrlT>(value); }
217 template<typename SlateAdUrlT = Aws::String>
218 PutPlaybackConfigurationRequest& WithSlateAdUrl(SlateAdUrlT&& value) { SetSlateAdUrl(std::forward<SlateAdUrlT>(value)); return *this;}
220
222
229 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
232 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
233 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
234 PutPlaybackConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
235 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
236 PutPlaybackConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
237 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
238 }
240
242
248 inline const Aws::String& GetTranscodeProfileName() const { return m_transcodeProfileName; }
249 inline bool TranscodeProfileNameHasBeenSet() const { return m_transcodeProfileNameHasBeenSet; }
250 template<typename TranscodeProfileNameT = Aws::String>
251 void SetTranscodeProfileName(TranscodeProfileNameT&& value) { m_transcodeProfileNameHasBeenSet = true; m_transcodeProfileName = std::forward<TranscodeProfileNameT>(value); }
252 template<typename TranscodeProfileNameT = Aws::String>
253 PutPlaybackConfigurationRequest& WithTranscodeProfileName(TranscodeProfileNameT&& value) { SetTranscodeProfileName(std::forward<TranscodeProfileNameT>(value)); return *this;}
255
257
261 inline const Aws::String& GetVideoContentSourceUrl() const { return m_videoContentSourceUrl; }
262 inline bool VideoContentSourceUrlHasBeenSet() const { return m_videoContentSourceUrlHasBeenSet; }
263 template<typename VideoContentSourceUrlT = Aws::String>
264 void SetVideoContentSourceUrl(VideoContentSourceUrlT&& value) { m_videoContentSourceUrlHasBeenSet = true; m_videoContentSourceUrl = std::forward<VideoContentSourceUrlT>(value); }
265 template<typename VideoContentSourceUrlT = Aws::String>
266 PutPlaybackConfigurationRequest& WithVideoContentSourceUrl(VideoContentSourceUrlT&& value) { SetVideoContentSourceUrl(std::forward<VideoContentSourceUrlT>(value)); return *this;}
268
270
275 inline const AdConditioningConfiguration& GetAdConditioningConfiguration() const { return m_adConditioningConfiguration; }
276 inline bool AdConditioningConfigurationHasBeenSet() const { return m_adConditioningConfigurationHasBeenSet; }
277 template<typename AdConditioningConfigurationT = AdConditioningConfiguration>
278 void SetAdConditioningConfiguration(AdConditioningConfigurationT&& value) { m_adConditioningConfigurationHasBeenSet = true; m_adConditioningConfiguration = std::forward<AdConditioningConfigurationT>(value); }
279 template<typename AdConditioningConfigurationT = AdConditioningConfiguration>
280 PutPlaybackConfigurationRequest& WithAdConditioningConfiguration(AdConditioningConfigurationT&& value) { SetAdConditioningConfiguration(std::forward<AdConditioningConfigurationT>(value)); return *this;}
282 private:
283
284 Aws::String m_adDecisionServerUrl;
285 bool m_adDecisionServerUrlHasBeenSet = false;
286
287 AvailSuppression m_availSuppression;
288 bool m_availSuppressionHasBeenSet = false;
289
290 Bumper m_bumper;
291 bool m_bumperHasBeenSet = false;
292
293 CdnConfiguration m_cdnConfiguration;
294 bool m_cdnConfigurationHasBeenSet = false;
295
297 bool m_configurationAliasesHasBeenSet = false;
298
299 DashConfigurationForPut m_dashConfiguration;
300 bool m_dashConfigurationHasBeenSet = false;
301
302 InsertionMode m_insertionMode{InsertionMode::NOT_SET};
303 bool m_insertionModeHasBeenSet = false;
304
305 LivePreRollConfiguration m_livePreRollConfiguration;
306 bool m_livePreRollConfigurationHasBeenSet = false;
307
308 ManifestProcessingRules m_manifestProcessingRules;
309 bool m_manifestProcessingRulesHasBeenSet = false;
310
311 Aws::String m_name;
312 bool m_nameHasBeenSet = false;
313
314 int m_personalizationThresholdSeconds{0};
315 bool m_personalizationThresholdSecondsHasBeenSet = false;
316
317 Aws::String m_slateAdUrl;
318 bool m_slateAdUrlHasBeenSet = false;
319
321 bool m_tagsHasBeenSet = false;
322
323 Aws::String m_transcodeProfileName;
324 bool m_transcodeProfileNameHasBeenSet = false;
325
326 Aws::String m_videoContentSourceUrl;
327 bool m_videoContentSourceUrlHasBeenSet = false;
328
329 AdConditioningConfiguration m_adConditioningConfiguration;
330 bool m_adConditioningConfigurationHasBeenSet = false;
331 };
332
333} // namespace Model
334} // namespace MediaTailor
335} // namespace Aws
AWS_MEDIATAILOR_API PutPlaybackConfigurationRequest()=default
void SetAdConditioningConfiguration(AdConditioningConfigurationT &&value)
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetConfigurationAliases() const
PutPlaybackConfigurationRequest & WithConfigurationAliases(ConfigurationAliasesT &&value)
PutPlaybackConfigurationRequest & AddConfigurationAliases(ConfigurationAliasesKeyT &&key, ConfigurationAliasesValueT &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PutPlaybackConfigurationRequest & WithAdDecisionServerUrl(AdDecisionServerUrlT &&value)
PutPlaybackConfigurationRequest & WithDashConfiguration(DashConfigurationT &&value)
PutPlaybackConfigurationRequest & WithManifestProcessingRules(ManifestProcessingRulesT &&value)
PutPlaybackConfigurationRequest & WithLivePreRollConfiguration(LivePreRollConfigurationT &&value)
PutPlaybackConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
PutPlaybackConfigurationRequest & WithBumper(BumperT &&value)
PutPlaybackConfigurationRequest & WithCdnConfiguration(CdnConfigurationT &&value)
PutPlaybackConfigurationRequest & WithInsertionMode(InsertionMode value)
PutPlaybackConfigurationRequest & WithAdConditioningConfiguration(AdConditioningConfigurationT &&value)
PutPlaybackConfigurationRequest & WithAvailSuppression(AvailSuppressionT &&value)
PutPlaybackConfigurationRequest & WithTranscodeProfileName(TranscodeProfileNameT &&value)
const AdConditioningConfiguration & GetAdConditioningConfiguration() const
PutPlaybackConfigurationRequest & WithPersonalizationThresholdSeconds(int value)
PutPlaybackConfigurationRequest & WithVideoContentSourceUrl(VideoContentSourceUrlT &&value)
PutPlaybackConfigurationRequest & WithSlateAdUrl(SlateAdUrlT &&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