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