aws-sdk-greengrass 0.26.0

AWS SDK for AWS Greengrass
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 GetConnectivityInfoInput {
    /// The thing name.
    #[doc(hidden)]
    pub thing_name: std::option::Option<std::string::String>,
}
impl GetConnectivityInfoInput {
    /// The thing name.
    pub fn thing_name(&self) -> std::option::Option<&str> {
        self.thing_name.as_deref()
    }
}
impl GetConnectivityInfoInput {
    /// Creates a new builder-style object to manufacture [`GetConnectivityInfoInput`](crate::operation::get_connectivity_info::GetConnectivityInfoInput).
    pub fn builder(
    ) -> crate::operation::get_connectivity_info::builders::GetConnectivityInfoInputBuilder {
        crate::operation::get_connectivity_info::builders::GetConnectivityInfoInputBuilder::default(
        )
    }
}

/// A builder for [`GetConnectivityInfoInput`](crate::operation::get_connectivity_info::GetConnectivityInfoInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetConnectivityInfoInputBuilder {
    pub(crate) thing_name: std::option::Option<std::string::String>,
}
impl GetConnectivityInfoInputBuilder {
    /// The thing name.
    pub fn thing_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.thing_name = Some(input.into());
        self
    }
    /// The thing name.
    pub fn set_thing_name(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.thing_name = input;
        self
    }
    /// Consumes the builder and constructs a [`GetConnectivityInfoInput`](crate::operation::get_connectivity_info::GetConnectivityInfoInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::get_connectivity_info::GetConnectivityInfoInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::get_connectivity_info::GetConnectivityInfoInput {
                thing_name: self.thing_name,
            },
        )
    }
}