#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSettingsInput {
pub attribute: ::std::option::Option<crate::types::SettingAttribute>,
}
impl GetSettingsInput {
pub fn attribute(&self) -> ::std::option::Option<&crate::types::SettingAttribute> {
self.attribute.as_ref()
}
}
impl GetSettingsInput {
pub fn builder() -> crate::operation::get_settings::builders::GetSettingsInputBuilder {
crate::operation::get_settings::builders::GetSettingsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetSettingsInputBuilder {
pub(crate) attribute: ::std::option::Option<crate::types::SettingAttribute>,
}
impl GetSettingsInputBuilder {
pub fn attribute(mut self, input: crate::types::SettingAttribute) -> Self {
self.attribute = ::std::option::Option::Some(input);
self
}
pub fn set_attribute(mut self, input: ::std::option::Option<crate::types::SettingAttribute>) -> Self {
self.attribute = input;
self
}
pub fn get_attribute(&self) -> &::std::option::Option<crate::types::SettingAttribute> {
&self.attribute
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_settings::GetSettingsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_settings::GetSettingsInput { attribute: self.attribute })
}
}