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 DeletePlaceIndexInput {
    /// <p>The name of the place index resource to be deleted.</p>
    #[doc(hidden)]
    pub index_name: std::option::Option<std::string::String>,
}
impl DeletePlaceIndexInput {
    /// <p>The name of the place index resource to be deleted.</p>
    pub fn index_name(&self) -> std::option::Option<&str> {
        self.index_name.as_deref()
    }
}
impl DeletePlaceIndexInput {
    /// Creates a new builder-style object to manufacture [`DeletePlaceIndexInput`](crate::operation::delete_place_index::DeletePlaceIndexInput).
    pub fn builder() -> crate::operation::delete_place_index::builders::DeletePlaceIndexInputBuilder
    {
        crate::operation::delete_place_index::builders::DeletePlaceIndexInputBuilder::default()
    }
}

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