#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AccessConfigResponse {
pub bootstrap_cluster_creator_admin_permissions: ::std::option::Option<bool>,
pub authentication_mode: ::std::option::Option<crate::types::AuthenticationMode>,
}
impl AccessConfigResponse {
pub fn bootstrap_cluster_creator_admin_permissions(&self) -> ::std::option::Option<bool> {
self.bootstrap_cluster_creator_admin_permissions
}
pub fn authentication_mode(&self) -> ::std::option::Option<&crate::types::AuthenticationMode> {
self.authentication_mode.as_ref()
}
}
impl AccessConfigResponse {
pub fn builder() -> crate::types::builders::AccessConfigResponseBuilder {
crate::types::builders::AccessConfigResponseBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AccessConfigResponseBuilder {
pub(crate) bootstrap_cluster_creator_admin_permissions: ::std::option::Option<bool>,
pub(crate) authentication_mode: ::std::option::Option<crate::types::AuthenticationMode>,
}
impl AccessConfigResponseBuilder {
pub fn bootstrap_cluster_creator_admin_permissions(mut self, input: bool) -> Self {
self.bootstrap_cluster_creator_admin_permissions = ::std::option::Option::Some(input);
self
}
pub fn set_bootstrap_cluster_creator_admin_permissions(mut self, input: ::std::option::Option<bool>) -> Self {
self.bootstrap_cluster_creator_admin_permissions = input;
self
}
pub fn get_bootstrap_cluster_creator_admin_permissions(&self) -> &::std::option::Option<bool> {
&self.bootstrap_cluster_creator_admin_permissions
}
pub fn authentication_mode(mut self, input: crate::types::AuthenticationMode) -> Self {
self.authentication_mode = ::std::option::Option::Some(input);
self
}
pub fn set_authentication_mode(mut self, input: ::std::option::Option<crate::types::AuthenticationMode>) -> Self {
self.authentication_mode = input;
self
}
pub fn get_authentication_mode(&self) -> &::std::option::Option<crate::types::AuthenticationMode> {
&self.authentication_mode
}
pub fn build(self) -> crate::types::AccessConfigResponse {
crate::types::AccessConfigResponse {
bootstrap_cluster_creator_admin_permissions: self.bootstrap_cluster_creator_admin_permissions,
authentication_mode: self.authentication_mode,
}
}
}