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.

/// A request to update the bridge state.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateBridgeStateInput {
    /// The ARN of the bridge that you want to update.
    #[doc(hidden)]
    pub bridge_arn: std::option::Option<std::string::String>,
    #[allow(missing_docs)] // documentation missing in model
    #[doc(hidden)]
    pub desired_state: std::option::Option<crate::types::DesiredState>,
}
impl UpdateBridgeStateInput {
    /// The ARN of the bridge that you want to update.
    pub fn bridge_arn(&self) -> std::option::Option<&str> {
        self.bridge_arn.as_deref()
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn desired_state(&self) -> std::option::Option<&crate::types::DesiredState> {
        self.desired_state.as_ref()
    }
}
impl UpdateBridgeStateInput {
    /// Creates a new builder-style object to manufacture [`UpdateBridgeStateInput`](crate::operation::update_bridge_state::UpdateBridgeStateInput).
    pub fn builder(
    ) -> crate::operation::update_bridge_state::builders::UpdateBridgeStateInputBuilder {
        crate::operation::update_bridge_state::builders::UpdateBridgeStateInputBuilder::default()
    }
}

/// A builder for [`UpdateBridgeStateInput`](crate::operation::update_bridge_state::UpdateBridgeStateInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateBridgeStateInputBuilder {
    pub(crate) bridge_arn: std::option::Option<std::string::String>,
    pub(crate) desired_state: std::option::Option<crate::types::DesiredState>,
}
impl UpdateBridgeStateInputBuilder {
    /// 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
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn desired_state(mut self, input: crate::types::DesiredState) -> Self {
        self.desired_state = Some(input);
        self
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn set_desired_state(
        mut self,
        input: std::option::Option<crate::types::DesiredState>,
    ) -> Self {
        self.desired_state = input;
        self
    }
    /// Consumes the builder and constructs a [`UpdateBridgeStateInput`](crate::operation::update_bridge_state::UpdateBridgeStateInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::update_bridge_state::UpdateBridgeStateInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::update_bridge_state::UpdateBridgeStateInput {
                bridge_arn: self.bridge_arn,
                desired_state: self.desired_state,
            },
        )
    }
}