aws-sdk-mediaconnect 1.109.0

AWS SDK for AWS MediaConnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RemoveBridgeOutputInput {
    /// <p>The Amazon Resource Name (ARN) of the bridge that you want to update.</p>
    pub bridge_arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the bridge output that you want to remove.</p>
    pub output_name: ::std::option::Option<::std::string::String>,
}
impl RemoveBridgeOutputInput {
    /// <p>The Amazon Resource Name (ARN) of the bridge that you want to update.</p>
    pub fn bridge_arn(&self) -> ::std::option::Option<&str> {
        self.bridge_arn.as_deref()
    }
    /// <p>The name of the bridge output that you want to remove.</p>
    pub fn output_name(&self) -> ::std::option::Option<&str> {
        self.output_name.as_deref()
    }
}
impl RemoveBridgeOutputInput {
    /// Creates a new builder-style object to manufacture [`RemoveBridgeOutputInput`](crate::operation::remove_bridge_output::RemoveBridgeOutputInput).
    pub fn builder() -> crate::operation::remove_bridge_output::builders::RemoveBridgeOutputInputBuilder {
        crate::operation::remove_bridge_output::builders::RemoveBridgeOutputInputBuilder::default()
    }
}

/// A builder for [`RemoveBridgeOutputInput`](crate::operation::remove_bridge_output::RemoveBridgeOutputInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RemoveBridgeOutputInputBuilder {
    pub(crate) bridge_arn: ::std::option::Option<::std::string::String>,
    pub(crate) output_name: ::std::option::Option<::std::string::String>,
}
impl RemoveBridgeOutputInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the bridge that you want to update.</p>
    /// This field is required.
    pub fn bridge_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bridge_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the bridge that you want to update.</p>
    pub fn set_bridge_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bridge_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the bridge that you want to update.</p>
    pub fn get_bridge_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.bridge_arn
    }
    /// <p>The name of the bridge output that you want to remove.</p>
    /// This field is required.
    pub fn output_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.output_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the bridge output that you want to remove.</p>
    pub fn set_output_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.output_name = input;
        self
    }
    /// <p>The name of the bridge output that you want to remove.</p>
    pub fn get_output_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.output_name
    }
    /// Consumes the builder and constructs a [`RemoveBridgeOutputInput`](crate::operation::remove_bridge_output::RemoveBridgeOutputInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::remove_bridge_output::RemoveBridgeOutputInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::remove_bridge_output::RemoveBridgeOutputInput {
            bridge_arn: self.bridge_arn,
            output_name: self.output_name,
        })
    }
}