aws-sdk-location 1.103.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 DeleteMapInput {
    /// <p>The name of the map resource to be deleted.</p>
    pub map_name: ::std::option::Option<::std::string::String>,
}
impl DeleteMapInput {
    /// <p>The name of the map resource to be deleted.</p>
    pub fn map_name(&self) -> ::std::option::Option<&str> {
        self.map_name.as_deref()
    }
}
impl DeleteMapInput {
    /// Creates a new builder-style object to manufacture [`DeleteMapInput`](crate::operation::delete_map::DeleteMapInput).
    pub fn builder() -> crate::operation::delete_map::builders::DeleteMapInputBuilder {
        crate::operation::delete_map::builders::DeleteMapInputBuilder::default()
    }
}

/// A builder for [`DeleteMapInput`](crate::operation::delete_map::DeleteMapInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteMapInputBuilder {
    pub(crate) map_name: ::std::option::Option<::std::string::String>,
}
impl DeleteMapInputBuilder {
    /// <p>The name of the map resource to be deleted.</p>
    /// This field is required.
    pub fn map_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.map_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the map resource to be deleted.</p>
    pub fn set_map_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.map_name = input;
        self
    }
    /// <p>The name of the map resource to be deleted.</p>
    pub fn get_map_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.map_name
    }
    /// Consumes the builder and constructs a [`DeleteMapInput`](crate::operation::delete_map::DeleteMapInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_map::DeleteMapInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_map::DeleteMapInput { map_name: self.map_name })
    }
}