aws_sdk_mediatailor/types/_manifest_processing_rules.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ManifestProcessingRules {
7 /// <p>For HLS, when set to <code>true</code>, MediaTailor passes through <code>EXT-X-CUE-IN</code>, <code>EXT-X-CUE-OUT</code>, and <code>EXT-X-SPLICEPOINT-SCTE35</code> ad markers from the origin manifest to the MediaTailor personalized manifest.</p>
8 /// <p>No logic is applied to these ad markers. For example, if <code>EXT-X-CUE-OUT</code> has a value of <code>60</code>, but no ads are filled for that ad break, MediaTailor will not set the value to <code>0</code>.</p>
9 pub ad_marker_passthrough: ::std::option::Option<crate::types::AdMarkerPassthrough>,
10}
11impl ManifestProcessingRules {
12 /// <p>For HLS, when set to <code>true</code>, MediaTailor passes through <code>EXT-X-CUE-IN</code>, <code>EXT-X-CUE-OUT</code>, and <code>EXT-X-SPLICEPOINT-SCTE35</code> ad markers from the origin manifest to the MediaTailor personalized manifest.</p>
13 /// <p>No logic is applied to these ad markers. For example, if <code>EXT-X-CUE-OUT</code> has a value of <code>60</code>, but no ads are filled for that ad break, MediaTailor will not set the value to <code>0</code>.</p>
14 pub fn ad_marker_passthrough(&self) -> ::std::option::Option<&crate::types::AdMarkerPassthrough> {
15 self.ad_marker_passthrough.as_ref()
16 }
17}
18impl ManifestProcessingRules {
19 /// Creates a new builder-style object to manufacture [`ManifestProcessingRules`](crate::types::ManifestProcessingRules).
20 pub fn builder() -> crate::types::builders::ManifestProcessingRulesBuilder {
21 crate::types::builders::ManifestProcessingRulesBuilder::default()
22 }
23}
24
25/// A builder for [`ManifestProcessingRules`](crate::types::ManifestProcessingRules).
26#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct ManifestProcessingRulesBuilder {
29 pub(crate) ad_marker_passthrough: ::std::option::Option<crate::types::AdMarkerPassthrough>,
30}
31impl ManifestProcessingRulesBuilder {
32 /// <p>For HLS, when set to <code>true</code>, MediaTailor passes through <code>EXT-X-CUE-IN</code>, <code>EXT-X-CUE-OUT</code>, and <code>EXT-X-SPLICEPOINT-SCTE35</code> ad markers from the origin manifest to the MediaTailor personalized manifest.</p>
33 /// <p>No logic is applied to these ad markers. For example, if <code>EXT-X-CUE-OUT</code> has a value of <code>60</code>, but no ads are filled for that ad break, MediaTailor will not set the value to <code>0</code>.</p>
34 pub fn ad_marker_passthrough(mut self, input: crate::types::AdMarkerPassthrough) -> Self {
35 self.ad_marker_passthrough = ::std::option::Option::Some(input);
36 self
37 }
38 /// <p>For HLS, when set to <code>true</code>, MediaTailor passes through <code>EXT-X-CUE-IN</code>, <code>EXT-X-CUE-OUT</code>, and <code>EXT-X-SPLICEPOINT-SCTE35</code> ad markers from the origin manifest to the MediaTailor personalized manifest.</p>
39 /// <p>No logic is applied to these ad markers. For example, if <code>EXT-X-CUE-OUT</code> has a value of <code>60</code>, but no ads are filled for that ad break, MediaTailor will not set the value to <code>0</code>.</p>
40 pub fn set_ad_marker_passthrough(mut self, input: ::std::option::Option<crate::types::AdMarkerPassthrough>) -> Self {
41 self.ad_marker_passthrough = input;
42 self
43 }
44 /// <p>For HLS, when set to <code>true</code>, MediaTailor passes through <code>EXT-X-CUE-IN</code>, <code>EXT-X-CUE-OUT</code>, and <code>EXT-X-SPLICEPOINT-SCTE35</code> ad markers from the origin manifest to the MediaTailor personalized manifest.</p>
45 /// <p>No logic is applied to these ad markers. For example, if <code>EXT-X-CUE-OUT</code> has a value of <code>60</code>, but no ads are filled for that ad break, MediaTailor will not set the value to <code>0</code>.</p>
46 pub fn get_ad_marker_passthrough(&self) -> &::std::option::Option<crate::types::AdMarkerPassthrough> {
47 &self.ad_marker_passthrough
48 }
49 /// Consumes the builder and constructs a [`ManifestProcessingRules`](crate::types::ManifestProcessingRules).
50 pub fn build(self) -> crate::types::ManifestProcessingRules {
51 crate::types::ManifestProcessingRules {
52 ad_marker_passthrough: self.ad_marker_passthrough,
53 }
54 }
55}