aws-sdk-location 0.26.0

AWS SDK for Amazon Location Service
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 DescribeMapInput {
    /// <p>The name of the map resource.</p>
    #[doc(hidden)]
    pub map_name: std::option::Option<std::string::String>,
}
impl DescribeMapInput {
    /// <p>The name of the map resource.</p>
    pub fn map_name(&self) -> std::option::Option<&str> {
        self.map_name.as_deref()
    }
}
impl DescribeMapInput {
    /// Creates a new builder-style object to manufacture [`DescribeMapInput`](crate::operation::describe_map::DescribeMapInput).
    pub fn builder() -> crate::operation::describe_map::builders::DescribeMapInputBuilder {
        crate::operation::describe_map::builders::DescribeMapInputBuilder::default()
    }
}

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