aws_sdk_auditmanager/operation/get_settings/
_get_settings_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetSettingsInput {
6 pub attribute: ::std::option::Option<crate::types::SettingAttribute>,
8}
9impl GetSettingsInput {
10 pub fn attribute(&self) -> ::std::option::Option<&crate::types::SettingAttribute> {
12 self.attribute.as_ref()
13 }
14}
15impl GetSettingsInput {
16 pub fn builder() -> crate::operation::get_settings::builders::GetSettingsInputBuilder {
18 crate::operation::get_settings::builders::GetSettingsInputBuilder::default()
19 }
20}
21
22#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct GetSettingsInputBuilder {
26 pub(crate) attribute: ::std::option::Option<crate::types::SettingAttribute>,
27}
28impl GetSettingsInputBuilder {
29 pub fn attribute(mut self, input: crate::types::SettingAttribute) -> Self {
32 self.attribute = ::std::option::Option::Some(input);
33 self
34 }
35 pub fn set_attribute(mut self, input: ::std::option::Option<crate::types::SettingAttribute>) -> Self {
37 self.attribute = input;
38 self
39 }
40 pub fn get_attribute(&self) -> &::std::option::Option<crate::types::SettingAttribute> {
42 &self.attribute
43 }
44 pub fn build(self) -> ::std::result::Result<crate::operation::get_settings::GetSettingsInput, ::aws_smithy_types::error::operation::BuildError> {
46 ::std::result::Result::Ok(crate::operation::get_settings::GetSettingsInput { attribute: self.attribute })
47 }
48}