aws_sdk_mediaconvert/types/_esam_settings.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Settings for Event Signaling And Messaging (ESAM). If you don't do ad insertion, you can ignore these settings.
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct EsamSettings {
7 /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML.
8 pub manifest_confirm_condition_notification: ::std::option::Option<crate::types::EsamManifestConfirmConditionNotification>,
9 /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
10 pub response_signal_preroll: ::std::option::Option<i32>,
11 /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML.
12 pub signal_processing_notification: ::std::option::Option<crate::types::EsamSignalProcessingNotification>,
13}
14impl EsamSettings {
15 /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML.
16 pub fn manifest_confirm_condition_notification(&self) -> ::std::option::Option<&crate::types::EsamManifestConfirmConditionNotification> {
17 self.manifest_confirm_condition_notification.as_ref()
18 }
19 /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
20 pub fn response_signal_preroll(&self) -> ::std::option::Option<i32> {
21 self.response_signal_preroll
22 }
23 /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML.
24 pub fn signal_processing_notification(&self) -> ::std::option::Option<&crate::types::EsamSignalProcessingNotification> {
25 self.signal_processing_notification.as_ref()
26 }
27}
28impl EsamSettings {
29 /// Creates a new builder-style object to manufacture [`EsamSettings`](crate::types::EsamSettings).
30 pub fn builder() -> crate::types::builders::EsamSettingsBuilder {
31 crate::types::builders::EsamSettingsBuilder::default()
32 }
33}
34
35/// A builder for [`EsamSettings`](crate::types::EsamSettings).
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct EsamSettingsBuilder {
39 pub(crate) manifest_confirm_condition_notification: ::std::option::Option<crate::types::EsamManifestConfirmConditionNotification>,
40 pub(crate) response_signal_preroll: ::std::option::Option<i32>,
41 pub(crate) signal_processing_notification: ::std::option::Option<crate::types::EsamSignalProcessingNotification>,
42}
43impl EsamSettingsBuilder {
44 /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML.
45 pub fn manifest_confirm_condition_notification(mut self, input: crate::types::EsamManifestConfirmConditionNotification) -> Self {
46 self.manifest_confirm_condition_notification = ::std::option::Option::Some(input);
47 self
48 }
49 /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML.
50 pub fn set_manifest_confirm_condition_notification(
51 mut self,
52 input: ::std::option::Option<crate::types::EsamManifestConfirmConditionNotification>,
53 ) -> Self {
54 self.manifest_confirm_condition_notification = input;
55 self
56 }
57 /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML.
58 pub fn get_manifest_confirm_condition_notification(&self) -> &::std::option::Option<crate::types::EsamManifestConfirmConditionNotification> {
59 &self.manifest_confirm_condition_notification
60 }
61 /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
62 pub fn response_signal_preroll(mut self, input: i32) -> Self {
63 self.response_signal_preroll = ::std::option::Option::Some(input);
64 self
65 }
66 /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
67 pub fn set_response_signal_preroll(mut self, input: ::std::option::Option<i32>) -> Self {
68 self.response_signal_preroll = input;
69 self
70 }
71 /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
72 pub fn get_response_signal_preroll(&self) -> &::std::option::Option<i32> {
73 &self.response_signal_preroll
74 }
75 /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML.
76 pub fn signal_processing_notification(mut self, input: crate::types::EsamSignalProcessingNotification) -> Self {
77 self.signal_processing_notification = ::std::option::Option::Some(input);
78 self
79 }
80 /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML.
81 pub fn set_signal_processing_notification(mut self, input: ::std::option::Option<crate::types::EsamSignalProcessingNotification>) -> Self {
82 self.signal_processing_notification = input;
83 self
84 }
85 /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML.
86 pub fn get_signal_processing_notification(&self) -> &::std::option::Option<crate::types::EsamSignalProcessingNotification> {
87 &self.signal_processing_notification
88 }
89 /// Consumes the builder and constructs a [`EsamSettings`](crate::types::EsamSettings).
90 pub fn build(self) -> crate::types::EsamSettings {
91 crate::types::EsamSettings {
92 manifest_confirm_condition_notification: self.manifest_confirm_condition_notification,
93 response_signal_preroll: self.response_signal_preroll,
94 signal_processing_notification: self.signal_processing_notification,
95 }
96 }
97}