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 DescribeGatewayInput {
    /// The Amazon Resource Name (ARN) of the gateway that you want to describe.
    #[doc(hidden)]
    pub gateway_arn: std::option::Option<std::string::String>,
}
impl DescribeGatewayInput {
    /// The Amazon Resource Name (ARN) of the gateway that you want to describe.
    pub fn gateway_arn(&self) -> std::option::Option<&str> {
        self.gateway_arn.as_deref()
    }
}
impl DescribeGatewayInput {
    /// Creates a new builder-style object to manufacture [`DescribeGatewayInput`](crate::operation::describe_gateway::DescribeGatewayInput).
    pub fn builder() -> crate::operation::describe_gateway::builders::DescribeGatewayInputBuilder {
        crate::operation::describe_gateway::builders::DescribeGatewayInputBuilder::default()
    }
}

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