aws-sdk-lexmodelsv2 1.110.0

AWS SDK for Amazon Lex Model Building V2
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 DeleteCustomVocabularyInput {
    /// <p>The unique identifier of the bot to remove the custom vocabulary from.</p>
    pub bot_id: ::std::option::Option<::std::string::String>,
    /// <p>The version of the bot to remove the custom vocabulary from.</p>
    pub bot_version: ::std::option::Option<::std::string::String>,
    /// <p>The locale identifier for the locale that contains the custom vocabulary to remove.</p>
    pub locale_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCustomVocabularyInput {
    /// <p>The unique identifier of the bot to remove the custom vocabulary from.</p>
    pub fn bot_id(&self) -> ::std::option::Option<&str> {
        self.bot_id.as_deref()
    }
    /// <p>The version of the bot to remove the custom vocabulary from.</p>
    pub fn bot_version(&self) -> ::std::option::Option<&str> {
        self.bot_version.as_deref()
    }
    /// <p>The locale identifier for the locale that contains the custom vocabulary to remove.</p>
    pub fn locale_id(&self) -> ::std::option::Option<&str> {
        self.locale_id.as_deref()
    }
}
impl DeleteCustomVocabularyInput {
    /// Creates a new builder-style object to manufacture [`DeleteCustomVocabularyInput`](crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyInput).
    pub fn builder() -> crate::operation::delete_custom_vocabulary::builders::DeleteCustomVocabularyInputBuilder {
        crate::operation::delete_custom_vocabulary::builders::DeleteCustomVocabularyInputBuilder::default()
    }
}

/// A builder for [`DeleteCustomVocabularyInput`](crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteCustomVocabularyInputBuilder {
    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
    pub(crate) bot_version: ::std::option::Option<::std::string::String>,
    pub(crate) locale_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCustomVocabularyInputBuilder {
    /// <p>The unique identifier of the bot to remove the custom vocabulary from.</p>
    /// This field is required.
    pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the bot to remove the custom vocabulary from.</p>
    pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_id = input;
        self
    }
    /// <p>The unique identifier of the bot to remove the custom vocabulary from.</p>
    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_id
    }
    /// <p>The version of the bot to remove the custom vocabulary from.</p>
    /// This field is required.
    pub fn bot_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the bot to remove the custom vocabulary from.</p>
    pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_version = input;
        self
    }
    /// <p>The version of the bot to remove the custom vocabulary from.</p>
    pub fn get_bot_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_version
    }
    /// <p>The locale identifier for the locale that contains the custom vocabulary to remove.</p>
    /// This field is required.
    pub fn locale_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.locale_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The locale identifier for the locale that contains the custom vocabulary to remove.</p>
    pub fn set_locale_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.locale_id = input;
        self
    }
    /// <p>The locale identifier for the locale that contains the custom vocabulary to remove.</p>
    pub fn get_locale_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.locale_id
    }
    /// Consumes the builder and constructs a [`DeleteCustomVocabularyInput`](crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyInput {
            bot_id: self.bot_id,
            bot_version: self.bot_version,
            locale_id: self.locale_id,
        })
    }
}