#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteCustomVocabularyInput {
pub bot_id: ::std::option::Option<::std::string::String>,
pub bot_version: ::std::option::Option<::std::string::String>,
pub locale_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCustomVocabularyInput {
pub fn bot_id(&self) -> ::std::option::Option<&str> {
self.bot_id.as_deref()
}
pub fn bot_version(&self) -> ::std::option::Option<&str> {
self.bot_version.as_deref()
}
pub fn locale_id(&self) -> ::std::option::Option<&str> {
self.locale_id.as_deref()
}
}
impl DeleteCustomVocabularyInput {
pub fn builder() -> crate::operation::delete_custom_vocabulary::builders::DeleteCustomVocabularyInputBuilder {
crate::operation::delete_custom_vocabulary::builders::DeleteCustomVocabularyInputBuilder::default()
}
}
#[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 {
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
}
pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_id = input;
self
}
pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_id
}
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
}
pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_version = input;
self
}
pub fn get_bot_version(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_version
}
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
}
pub fn set_locale_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.locale_id = input;
self
}
pub fn get_locale_id(&self) -> &::std::option::Option<::std::string::String> {
&self.locale_id
}
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,
})
}
}