aws_sdk_controltower/operation/disable_baseline/
_disable_baseline_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisableBaselineInput {
pub enabled_baseline_identifier: ::std::option::Option<::std::string::String>,
}
impl DisableBaselineInput {
pub fn enabled_baseline_identifier(&self) -> ::std::option::Option<&str> {
self.enabled_baseline_identifier.as_deref()
}
}
impl DisableBaselineInput {
pub fn builder() -> crate::operation::disable_baseline::builders::DisableBaselineInputBuilder {
crate::operation::disable_baseline::builders::DisableBaselineInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisableBaselineInputBuilder {
pub(crate) enabled_baseline_identifier: ::std::option::Option<::std::string::String>,
}
impl DisableBaselineInputBuilder {
pub fn enabled_baseline_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.enabled_baseline_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_enabled_baseline_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.enabled_baseline_identifier = input;
self
}
pub fn get_enabled_baseline_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.enabled_baseline_identifier
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::disable_baseline::DisableBaselineInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::disable_baseline::DisableBaselineInput {
enabled_baseline_identifier: self.enabled_baseline_identifier,
})
}
}