#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Configuration {
pub enabled: bool,
}
impl Configuration {
pub fn enabled(&self) -> bool {
self.enabled
}
}
impl Configuration {
pub fn builder() -> crate::types::builders::ConfigurationBuilder {
crate::types::builders::ConfigurationBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ConfigurationBuilder {
pub(crate) enabled: ::std::option::Option<bool>,
}
impl ConfigurationBuilder {
pub fn enabled(mut self, input: bool) -> Self {
self.enabled = ::std::option::Option::Some(input);
self
}
pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.enabled = input;
self
}
pub fn get_enabled(&self) -> &::std::option::Option<bool> {
&self.enabled
}
pub fn build(self) -> crate::types::Configuration {
crate::types::Configuration {
enabled: self.enabled.unwrap_or_default(),
}
}
}