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

/// A builder for [`StartFlowInput`](crate::operation::start_flow::StartFlowInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct StartFlowInputBuilder {
    pub(crate) flow_arn: std::option::Option<std::string::String>,
}
impl StartFlowInputBuilder {
    /// The ARN of the flow that you want to start.
    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 start.
    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 [`StartFlowInput`](crate::operation::start_flow::StartFlowInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::start_flow::StartFlowInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::start_flow::StartFlowInput {
            flow_arn: self.flow_arn,
        })
    }
}