aws-sdk-mediaconnect 0.27.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 RemoveBridgeSourceInput {
    /// The ARN of the bridge that you want to update.
    #[doc(hidden)]
    pub bridge_arn: std::option::Option<std::string::String>,
    /// The name of the bridge source that you want to remove.
    #[doc(hidden)]
    pub source_name: std::option::Option<std::string::String>,
}
impl RemoveBridgeSourceInput {
    /// The ARN of the bridge that you want to update.
    pub fn bridge_arn(&self) -> std::option::Option<&str> {
        self.bridge_arn.as_deref()
    }
    /// The name of the bridge source that you want to remove.
    pub fn source_name(&self) -> std::option::Option<&str> {
        self.source_name.as_deref()
    }
}
impl RemoveBridgeSourceInput {
    /// Creates a new builder-style object to manufacture [`RemoveBridgeSourceInput`](crate::operation::remove_bridge_source::RemoveBridgeSourceInput).
    pub fn builder(
    ) -> crate::operation::remove_bridge_source::builders::RemoveBridgeSourceInputBuilder {
        crate::operation::remove_bridge_source::builders::RemoveBridgeSourceInputBuilder::default()
    }
}

/// A builder for [`RemoveBridgeSourceInput`](crate::operation::remove_bridge_source::RemoveBridgeSourceInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct RemoveBridgeSourceInputBuilder {
    pub(crate) bridge_arn: std::option::Option<std::string::String>,
    pub(crate) source_name: std::option::Option<std::string::String>,
}
impl RemoveBridgeSourceInputBuilder {
    /// The ARN of the bridge that you want to update.
    pub fn bridge_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.bridge_arn = Some(input.into());
        self
    }
    /// The ARN of the bridge that you want to update.
    pub fn set_bridge_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.bridge_arn = input;
        self
    }
    /// The name of the bridge source that you want to remove.
    pub fn source_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.source_name = Some(input.into());
        self
    }
    /// The name of the bridge source that you want to remove.
    pub fn set_source_name(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.source_name = input;
        self
    }
    /// Consumes the builder and constructs a [`RemoveBridgeSourceInput`](crate::operation::remove_bridge_source::RemoveBridgeSourceInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::remove_bridge_source::RemoveBridgeSourceInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::remove_bridge_source::RemoveBridgeSourceInput {
                bridge_arn: self.bridge_arn,
                source_name: self.source_name,
            },
        )
    }
}