#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Authentication {
pub r#type: ::std::option::Option<crate::types::AuthenticationType>,
pub password_count: ::std::option::Option<i32>,
}
impl Authentication {
pub fn r#type(&self) -> ::std::option::Option<&crate::types::AuthenticationType> {
self.r#type.as_ref()
}
pub fn password_count(&self) -> ::std::option::Option<i32> {
self.password_count
}
}
impl Authentication {
pub fn builder() -> crate::types::builders::AuthenticationBuilder {
crate::types::builders::AuthenticationBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AuthenticationBuilder {
pub(crate) r#type: ::std::option::Option<crate::types::AuthenticationType>,
pub(crate) password_count: ::std::option::Option<i32>,
}
impl AuthenticationBuilder {
pub fn r#type(mut self, input: crate::types::AuthenticationType) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::AuthenticationType>) -> Self {
self.r#type = input;
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::AuthenticationType> {
&self.r#type
}
pub fn password_count(mut self, input: i32) -> Self {
self.password_count = ::std::option::Option::Some(input);
self
}
pub fn set_password_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.password_count = input;
self
}
pub fn get_password_count(&self) -> &::std::option::Option<i32> {
&self.password_count
}
pub fn build(self) -> crate::types::Authentication {
crate::types::Authentication {
r#type: self.r#type,
password_count: self.password_count,
}
}
}