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 UpdateBridgeSourceInput {
    /// <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 flow that you want to update.</p>
    pub flow_source: ::std::option::Option<crate::types::UpdateBridgeFlowSourceRequest>,
    /// <p>The network for the bridge source.</p>
    pub network_source: ::std::option::Option<crate::types::UpdateBridgeNetworkSourceRequest>,
    /// <p>The name of the source that you want to update.</p>
    pub source_name: ::std::option::Option<::std::string::String>,
}
impl UpdateBridgeSourceInput {
    /// <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 flow that you want to update.</p>
    pub fn flow_source(&self) -> ::std::option::Option<&crate::types::UpdateBridgeFlowSourceRequest> {
        self.flow_source.as_ref()
    }
    /// <p>The network for the bridge source.</p>
    pub fn network_source(&self) -> ::std::option::Option<&crate::types::UpdateBridgeNetworkSourceRequest> {
        self.network_source.as_ref()
    }
    /// <p>The name of the source that you want to update.</p>
    pub fn source_name(&self) -> ::std::option::Option<&str> {
        self.source_name.as_deref()
    }
}
impl UpdateBridgeSourceInput {
    /// Creates a new builder-style object to manufacture [`UpdateBridgeSourceInput`](crate::operation::update_bridge_source::UpdateBridgeSourceInput).
    pub fn builder() -> crate::operation::update_bridge_source::builders::UpdateBridgeSourceInputBuilder {
        crate::operation::update_bridge_source::builders::UpdateBridgeSourceInputBuilder::default()
    }
}

/// A builder for [`UpdateBridgeSourceInput`](crate::operation::update_bridge_source::UpdateBridgeSourceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateBridgeSourceInputBuilder {
    pub(crate) bridge_arn: ::std::option::Option<::std::string::String>,
    pub(crate) flow_source: ::std::option::Option<crate::types::UpdateBridgeFlowSourceRequest>,
    pub(crate) network_source: ::std::option::Option<crate::types::UpdateBridgeNetworkSourceRequest>,
    pub(crate) source_name: ::std::option::Option<::std::string::String>,
}
impl UpdateBridgeSourceInputBuilder {
    /// <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 flow that you want to update.</p>
    pub fn flow_source(mut self, input: crate::types::UpdateBridgeFlowSourceRequest) -> Self {
        self.flow_source = ::std::option::Option::Some(input);
        self
    }
    /// <p>The name of the flow that you want to update.</p>
    pub fn set_flow_source(mut self, input: ::std::option::Option<crate::types::UpdateBridgeFlowSourceRequest>) -> Self {
        self.flow_source = input;
        self
    }
    /// <p>The name of the flow that you want to update.</p>
    pub fn get_flow_source(&self) -> &::std::option::Option<crate::types::UpdateBridgeFlowSourceRequest> {
        &self.flow_source
    }
    /// <p>The network for the bridge source.</p>
    pub fn network_source(mut self, input: crate::types::UpdateBridgeNetworkSourceRequest) -> Self {
        self.network_source = ::std::option::Option::Some(input);
        self
    }
    /// <p>The network for the bridge source.</p>
    pub fn set_network_source(mut self, input: ::std::option::Option<crate::types::UpdateBridgeNetworkSourceRequest>) -> Self {
        self.network_source = input;
        self
    }
    /// <p>The network for the bridge source.</p>
    pub fn get_network_source(&self) -> &::std::option::Option<crate::types::UpdateBridgeNetworkSourceRequest> {
        &self.network_source
    }
    /// <p>The name of the source that you want to update.</p>
    /// This field is required.
    pub fn source_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the source that you want to update.</p>
    pub fn set_source_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_name = input;
        self
    }
    /// <p>The name of the source that you want to update.</p>
    pub fn get_source_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_name
    }
    /// Consumes the builder and constructs a [`UpdateBridgeSourceInput`](crate::operation::update_bridge_source::UpdateBridgeSourceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_bridge_source::UpdateBridgeSourceInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_bridge_source::UpdateBridgeSourceInput {
            bridge_arn: self.bridge_arn,
            flow_source: self.flow_source,
            network_source: self.network_source,
            source_name: self.source_name,
        })
    }
}