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 UpdateBridgeOutputOutput {
    /// <p>The ARN of the bridge that was updated.</p>
    pub bridge_arn: ::std::option::Option<::std::string::String>,
    /// <p>The bridge output that was updated.</p>
    pub output: ::std::option::Option<crate::types::BridgeOutput>,
    _request_id: Option<String>,
}
impl UpdateBridgeOutputOutput {
    /// <p>The ARN of the bridge that was updated.</p>
    pub fn bridge_arn(&self) -> ::std::option::Option<&str> {
        self.bridge_arn.as_deref()
    }
    /// <p>The bridge output that was updated.</p>
    pub fn output(&self) -> ::std::option::Option<&crate::types::BridgeOutput> {
        self.output.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateBridgeOutputOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateBridgeOutputOutput {
    /// Creates a new builder-style object to manufacture [`UpdateBridgeOutputOutput`](crate::operation::update_bridge_output::UpdateBridgeOutputOutput).
    pub fn builder() -> crate::operation::update_bridge_output::builders::UpdateBridgeOutputOutputBuilder {
        crate::operation::update_bridge_output::builders::UpdateBridgeOutputOutputBuilder::default()
    }
}

/// A builder for [`UpdateBridgeOutputOutput`](crate::operation::update_bridge_output::UpdateBridgeOutputOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateBridgeOutputOutputBuilder {
    pub(crate) bridge_arn: ::std::option::Option<::std::string::String>,
    pub(crate) output: ::std::option::Option<crate::types::BridgeOutput>,
    _request_id: Option<String>,
}
impl UpdateBridgeOutputOutputBuilder {
    /// <p>The ARN of the bridge that was updated.</p>
    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 ARN of the bridge that was updated.</p>
    pub fn set_bridge_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bridge_arn = input;
        self
    }
    /// <p>The ARN of the bridge that was updated.</p>
    pub fn get_bridge_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.bridge_arn
    }
    /// <p>The bridge output that was updated.</p>
    pub fn output(mut self, input: crate::types::BridgeOutput) -> Self {
        self.output = ::std::option::Option::Some(input);
        self
    }
    /// <p>The bridge output that was updated.</p>
    pub fn set_output(mut self, input: ::std::option::Option<crate::types::BridgeOutput>) -> Self {
        self.output = input;
        self
    }
    /// <p>The bridge output that was updated.</p>
    pub fn get_output(&self) -> &::std::option::Option<crate::types::BridgeOutput> {
        &self.output
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`UpdateBridgeOutputOutput`](crate::operation::update_bridge_output::UpdateBridgeOutputOutput).
    pub fn build(self) -> crate::operation::update_bridge_output::UpdateBridgeOutputOutput {
        crate::operation::update_bridge_output::UpdateBridgeOutputOutput {
            bridge_arn: self.bridge_arn,
            output: self.output,
            _request_id: self._request_id,
        }
    }
}