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 DescribeGatewayInput {
    /// <p>The ARN of the gateway that you want to describe.</p>
    pub gateway_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeGatewayInput {
    /// <p>The ARN of the gateway that you want to describe.</p>
    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).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeGatewayInputBuilder {
    pub(crate) gateway_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeGatewayInputBuilder {
    /// <p>The ARN of the gateway that you want to describe.</p>
    /// This field is required.
    pub fn gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.gateway_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the gateway that you want to describe.</p>
    pub fn set_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.gateway_arn = input;
        self
    }
    /// <p>The ARN of the gateway that you want to describe.</p>
    pub fn get_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.gateway_arn
    }
    /// Consumes the builder and constructs a [`DescribeGatewayInput`](crate::operation::describe_gateway::DescribeGatewayInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_gateway::DescribeGatewayInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_gateway::DescribeGatewayInput {
            gateway_arn: self.gateway_arn,
        })
    }
}