aws-sdk-iotsecuretunneling 0.26.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 CloseTunnelOutput {
    _request_id: Option<String>,
}
impl aws_http::request_id::RequestId for CloseTunnelOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CloseTunnelOutput {
    /// Creates a new builder-style object to manufacture [`CloseTunnelOutput`](crate::operation::close_tunnel::CloseTunnelOutput).
    pub fn builder() -> crate::operation::close_tunnel::builders::CloseTunnelOutputBuilder {
        crate::operation::close_tunnel::builders::CloseTunnelOutputBuilder::default()
    }
}

/// A builder for [`CloseTunnelOutput`](crate::operation::close_tunnel::CloseTunnelOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CloseTunnelOutputBuilder {
    _request_id: Option<String>,
}
impl CloseTunnelOutputBuilder {
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CloseTunnelOutput`](crate::operation::close_tunnel::CloseTunnelOutput).
    pub fn build(self) -> crate::operation::close_tunnel::CloseTunnelOutput {
        crate::operation::close_tunnel::CloseTunnelOutput {
            _request_id: self._request_id,
        }
    }
}