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.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateBridgeInput {
    /// The Amazon Resource Number (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 egress_gateway_bridge: std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>,
    #[allow(missing_docs)] // documentation missing in model
    #[doc(hidden)]
    pub ingress_gateway_bridge:
        std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>,
    /// The settings for source failover.
    #[doc(hidden)]
    pub source_failover_config: std::option::Option<crate::types::UpdateFailoverConfig>,
}
impl UpdateBridgeInput {
    /// The Amazon Resource Number (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 egress_gateway_bridge(
        &self,
    ) -> std::option::Option<&crate::types::UpdateEgressGatewayBridgeRequest> {
        self.egress_gateway_bridge.as_ref()
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn ingress_gateway_bridge(
        &self,
    ) -> std::option::Option<&crate::types::UpdateIngressGatewayBridgeRequest> {
        self.ingress_gateway_bridge.as_ref()
    }
    /// The settings for source failover.
    pub fn source_failover_config(
        &self,
    ) -> std::option::Option<&crate::types::UpdateFailoverConfig> {
        self.source_failover_config.as_ref()
    }
}
impl UpdateBridgeInput {
    /// Creates a new builder-style object to manufacture [`UpdateBridgeInput`](crate::operation::update_bridge::UpdateBridgeInput).
    pub fn builder() -> crate::operation::update_bridge::builders::UpdateBridgeInputBuilder {
        crate::operation::update_bridge::builders::UpdateBridgeInputBuilder::default()
    }
}

/// A builder for [`UpdateBridgeInput`](crate::operation::update_bridge::UpdateBridgeInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateBridgeInputBuilder {
    pub(crate) bridge_arn: std::option::Option<std::string::String>,
    pub(crate) egress_gateway_bridge:
        std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>,
    pub(crate) ingress_gateway_bridge:
        std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>,
    pub(crate) source_failover_config: std::option::Option<crate::types::UpdateFailoverConfig>,
}
impl UpdateBridgeInputBuilder {
    /// The Amazon Resource Number (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 Amazon Resource Number (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 egress_gateway_bridge(
        mut self,
        input: crate::types::UpdateEgressGatewayBridgeRequest,
    ) -> Self {
        self.egress_gateway_bridge = Some(input);
        self
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn set_egress_gateway_bridge(
        mut self,
        input: std::option::Option<crate::types::UpdateEgressGatewayBridgeRequest>,
    ) -> Self {
        self.egress_gateway_bridge = input;
        self
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn ingress_gateway_bridge(
        mut self,
        input: crate::types::UpdateIngressGatewayBridgeRequest,
    ) -> Self {
        self.ingress_gateway_bridge = Some(input);
        self
    }
    #[allow(missing_docs)] // documentation missing in model
    pub fn set_ingress_gateway_bridge(
        mut self,
        input: std::option::Option<crate::types::UpdateIngressGatewayBridgeRequest>,
    ) -> Self {
        self.ingress_gateway_bridge = input;
        self
    }
    /// The settings for source failover.
    pub fn source_failover_config(mut self, input: crate::types::UpdateFailoverConfig) -> Self {
        self.source_failover_config = Some(input);
        self
    }
    /// The settings for source failover.
    pub fn set_source_failover_config(
        mut self,
        input: std::option::Option<crate::types::UpdateFailoverConfig>,
    ) -> Self {
        self.source_failover_config = input;
        self
    }
    /// Consumes the builder and constructs a [`UpdateBridgeInput`](crate::operation::update_bridge::UpdateBridgeInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::update_bridge::UpdateBridgeInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::update_bridge::UpdateBridgeInput {
            bridge_arn: self.bridge_arn,
            egress_gateway_bridge: self.egress_gateway_bridge,
            ingress_gateway_bridge: self.ingress_gateway_bridge,
            source_failover_config: self.source_failover_config,
        })
    }
}