1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// Multiplex Program Input Destination Settings for outputting a Channel to a Multiplex
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct MultiplexProgramChannelDestinationSettings {
/// The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
pub multiplex_id: ::std::option::Option<::std::string::String>,
/// The program name of the Multiplex program that the encoder is providing output to.
pub program_name: ::std::option::Option<::std::string::String>,
}
impl MultiplexProgramChannelDestinationSettings {
/// The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
pub fn multiplex_id(&self) -> ::std::option::Option<&str> {
self.multiplex_id.as_deref()
}
/// The program name of the Multiplex program that the encoder is providing output to.
pub fn program_name(&self) -> ::std::option::Option<&str> {
self.program_name.as_deref()
}
}
impl MultiplexProgramChannelDestinationSettings {
/// Creates a new builder-style object to manufacture [`MultiplexProgramChannelDestinationSettings`](crate::types::MultiplexProgramChannelDestinationSettings).
pub fn builder() -> crate::types::builders::MultiplexProgramChannelDestinationSettingsBuilder {
crate::types::builders::MultiplexProgramChannelDestinationSettingsBuilder::default()
}
}
/// A builder for [`MultiplexProgramChannelDestinationSettings`](crate::types::MultiplexProgramChannelDestinationSettings).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct MultiplexProgramChannelDestinationSettingsBuilder {
pub(crate) multiplex_id: ::std::option::Option<::std::string::String>,
pub(crate) program_name: ::std::option::Option<::std::string::String>,
}
impl MultiplexProgramChannelDestinationSettingsBuilder {
/// The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
pub fn multiplex_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.multiplex_id = ::std::option::Option::Some(input.into());
self
}
/// The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
pub fn set_multiplex_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.multiplex_id = input;
self
}
/// The ID of the Multiplex that the encoder is providing output to. You do not need to specify the individual inputs to the Multiplex; MediaLive will handle the connection of the two MediaLive pipelines to the two Multiplex instances. The Multiplex must be in the same region as the Channel.
pub fn get_multiplex_id(&self) -> &::std::option::Option<::std::string::String> {
&self.multiplex_id
}
/// The program name of the Multiplex program that the encoder is providing output to.
pub fn program_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.program_name = ::std::option::Option::Some(input.into());
self
}
/// The program name of the Multiplex program that the encoder is providing output to.
pub fn set_program_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.program_name = input;
self
}
/// The program name of the Multiplex program that the encoder is providing output to.
pub fn get_program_name(&self) -> &::std::option::Option<::std::string::String> {
&self.program_name
}
/// Consumes the builder and constructs a [`MultiplexProgramChannelDestinationSettings`](crate::types::MultiplexProgramChannelDestinationSettings).
pub fn build(self) -> crate::types::MultiplexProgramChannelDestinationSettings {
crate::types::MultiplexProgramChannelDestinationSettings {
multiplex_id: self.multiplex_id,
program_name: self.program_name,
}
}
}