#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetVocabularyInput {
pub vocabulary_name: ::std::option::Option<::std::string::String>,
}
impl GetVocabularyInput {
pub fn vocabulary_name(&self) -> ::std::option::Option<&str> {
self.vocabulary_name.as_deref()
}
}
impl GetVocabularyInput {
pub fn builder() -> crate::operation::get_vocabulary::builders::GetVocabularyInputBuilder {
crate::operation::get_vocabulary::builders::GetVocabularyInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetVocabularyInputBuilder {
pub(crate) vocabulary_name: ::std::option::Option<::std::string::String>,
}
impl GetVocabularyInputBuilder {
pub fn vocabulary_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.vocabulary_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_vocabulary_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.vocabulary_name = input;
self
}
pub fn get_vocabulary_name(&self) -> &::std::option::Option<::std::string::String> {
&self.vocabulary_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_vocabulary::GetVocabularyInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_vocabulary::GetVocabularyInput {
vocabulary_name: self.vocabulary_name,
})
}
}