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 RemoveFlowSourceInput {
    /// The flow that you want to remove a source from.
    #[doc(hidden)]
    pub flow_arn: std::option::Option<std::string::String>,
    /// The ARN of the source that you want to remove.
    #[doc(hidden)]
    pub source_arn: std::option::Option<std::string::String>,
}
impl RemoveFlowSourceInput {
    /// The flow that you want to remove a source from.
    pub fn flow_arn(&self) -> std::option::Option<&str> {
        self.flow_arn.as_deref()
    }
    /// The ARN of the source that you want to remove.
    pub fn source_arn(&self) -> std::option::Option<&str> {
        self.source_arn.as_deref()
    }
}
impl RemoveFlowSourceInput {
    /// Creates a new builder-style object to manufacture [`RemoveFlowSourceInput`](crate::operation::remove_flow_source::RemoveFlowSourceInput).
    pub fn builder() -> crate::operation::remove_flow_source::builders::RemoveFlowSourceInputBuilder
    {
        crate::operation::remove_flow_source::builders::RemoveFlowSourceInputBuilder::default()
    }
}

/// A builder for [`RemoveFlowSourceInput`](crate::operation::remove_flow_source::RemoveFlowSourceInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct RemoveFlowSourceInputBuilder {
    pub(crate) flow_arn: std::option::Option<std::string::String>,
    pub(crate) source_arn: std::option::Option<std::string::String>,
}
impl RemoveFlowSourceInputBuilder {
    /// The flow that you want to remove a source from.
    pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.flow_arn = Some(input.into());
        self
    }
    /// The flow that you want to remove a source from.
    pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.flow_arn = input;
        self
    }
    /// The ARN of the source that you want to remove.
    pub fn source_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.source_arn = Some(input.into());
        self
    }
    /// The ARN of the source that you want to remove.
    pub fn set_source_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.source_arn = input;
        self
    }
    /// Consumes the builder and constructs a [`RemoveFlowSourceInput`](crate::operation::remove_flow_source::RemoveFlowSourceInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::remove_flow_source::RemoveFlowSourceInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::remove_flow_source::RemoveFlowSourceInput {
                flow_arn: self.flow_arn,
                source_arn: self.source_arn,
            },
        )
    }
}