aws-sdk-mediaconnect 0.25.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 DescribeFlowInput {
    /// The ARN of the flow that you want to describe.
    #[doc(hidden)]
    pub flow_arn: std::option::Option<std::string::String>,
}
impl DescribeFlowInput {
    /// The ARN of the flow that you want to describe.
    pub fn flow_arn(&self) -> std::option::Option<&str> {
        self.flow_arn.as_deref()
    }
}
impl DescribeFlowInput {
    /// Creates a new builder-style object to manufacture [`DescribeFlowInput`](crate::operation::describe_flow::DescribeFlowInput).
    pub fn builder() -> crate::operation::describe_flow::builders::DescribeFlowInputBuilder {
        crate::operation::describe_flow::builders::DescribeFlowInputBuilder::default()
    }
}

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