aws-sdk-iotsecuretunneling 1.78.0

AWS SDK for AWS IoT Secure Tunneling
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 DescribeTunnelInput {
    /// <p>The tunnel to describe.</p>
    pub tunnel_id: ::std::option::Option<::std::string::String>,
}
impl DescribeTunnelInput {
    /// <p>The tunnel to describe.</p>
    pub fn tunnel_id(&self) -> ::std::option::Option<&str> {
        self.tunnel_id.as_deref()
    }
}
impl DescribeTunnelInput {
    /// Creates a new builder-style object to manufacture [`DescribeTunnelInput`](crate::operation::describe_tunnel::DescribeTunnelInput).
    pub fn builder() -> crate::operation::describe_tunnel::builders::DescribeTunnelInputBuilder {
        crate::operation::describe_tunnel::builders::DescribeTunnelInputBuilder::default()
    }
}

/// A builder for [`DescribeTunnelInput`](crate::operation::describe_tunnel::DescribeTunnelInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeTunnelInputBuilder {
    pub(crate) tunnel_id: ::std::option::Option<::std::string::String>,
}
impl DescribeTunnelInputBuilder {
    /// <p>The tunnel to describe.</p>
    /// This field is required.
    pub fn tunnel_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.tunnel_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The tunnel to describe.</p>
    pub fn set_tunnel_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.tunnel_id = input;
        self
    }
    /// <p>The tunnel to describe.</p>
    pub fn get_tunnel_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.tunnel_id
    }
    /// Consumes the builder and constructs a [`DescribeTunnelInput`](crate::operation::describe_tunnel::DescribeTunnelInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_tunnel::DescribeTunnelInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_tunnel::DescribeTunnelInput { tunnel_id: self.tunnel_id })
    }
}