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 DeleteBridgeInput {
    /// The ARN of the bridge that you want to delete.
    #[doc(hidden)]
    pub bridge_arn: std::option::Option<std::string::String>,
}
impl DeleteBridgeInput {
    /// The ARN of the bridge that you want to delete.
    pub fn bridge_arn(&self) -> std::option::Option<&str> {
        self.bridge_arn.as_deref()
    }
}
impl DeleteBridgeInput {
    /// Creates a new builder-style object to manufacture [`DeleteBridgeInput`](crate::operation::delete_bridge::DeleteBridgeInput).
    pub fn builder() -> crate::operation::delete_bridge::builders::DeleteBridgeInputBuilder {
        crate::operation::delete_bridge::builders::DeleteBridgeInputBuilder::default()
    }
}

/// A builder for [`DeleteBridgeInput`](crate::operation::delete_bridge::DeleteBridgeInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteBridgeInputBuilder {
    pub(crate) bridge_arn: std::option::Option<std::string::String>,
}
impl DeleteBridgeInputBuilder {
    /// The ARN of the bridge that you want to delete.
    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 delete.
    pub fn set_bridge_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.bridge_arn = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteBridgeInput`](crate::operation::delete_bridge::DeleteBridgeInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_bridge::DeleteBridgeInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::delete_bridge::DeleteBridgeInput {
            bridge_arn: self.bridge_arn,
        })
    }
}