aws-sdk-cloudsearch 1.98.0

AWS SDK for Amazon CloudSearch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Container for the parameters to the <code><code>DeleteSuggester</code></code> operation. Specifies the name of the domain you want to update and name of the suggester you want to delete.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteSuggesterInput {
    /// <p>A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the name of the suggester you want to delete.</p>
    pub suggester_name: ::std::option::Option<::std::string::String>,
}
impl DeleteSuggesterInput {
    /// <p>A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
    /// <p>Specifies the name of the suggester you want to delete.</p>
    pub fn suggester_name(&self) -> ::std::option::Option<&str> {
        self.suggester_name.as_deref()
    }
}
impl DeleteSuggesterInput {
    /// Creates a new builder-style object to manufacture [`DeleteSuggesterInput`](crate::operation::delete_suggester::DeleteSuggesterInput).
    pub fn builder() -> crate::operation::delete_suggester::builders::DeleteSuggesterInputBuilder {
        crate::operation::delete_suggester::builders::DeleteSuggesterInputBuilder::default()
    }
}

/// A builder for [`DeleteSuggesterInput`](crate::operation::delete_suggester::DeleteSuggesterInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteSuggesterInputBuilder {
    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
    pub(crate) suggester_name: ::std::option::Option<::std::string::String>,
}
impl DeleteSuggesterInputBuilder {
    /// <p>A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p>
    /// This field is required.
    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// <p>Specifies the name of the suggester you want to delete.</p>
    /// This field is required.
    pub fn suggester_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.suggester_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the name of the suggester you want to delete.</p>
    pub fn set_suggester_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.suggester_name = input;
        self
    }
    /// <p>Specifies the name of the suggester you want to delete.</p>
    pub fn get_suggester_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.suggester_name
    }
    /// Consumes the builder and constructs a [`DeleteSuggesterInput`](crate::operation::delete_suggester::DeleteSuggesterInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_suggester::DeleteSuggesterInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_suggester::DeleteSuggesterInput {
            domain_name: self.domain_name,
            suggester_name: self.suggester_name,
        })
    }
}