aws-sdk-kafka 1.126.0

AWS SDK for Managed Streaming for Kafka
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Unauthenticated {
    /// <p>Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.</p>
    pub enabled: ::std::option::Option<bool>,
}
impl Unauthenticated {
    /// <p>Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.</p>
    pub fn enabled(&self) -> ::std::option::Option<bool> {
        self.enabled
    }
}
impl Unauthenticated {
    /// Creates a new builder-style object to manufacture [`Unauthenticated`](crate::types::Unauthenticated).
    pub fn builder() -> crate::types::builders::UnauthenticatedBuilder {
        crate::types::builders::UnauthenticatedBuilder::default()
    }
}

/// A builder for [`Unauthenticated`](crate::types::Unauthenticated).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UnauthenticatedBuilder {
    pub(crate) enabled: ::std::option::Option<bool>,
}
impl UnauthenticatedBuilder {
    /// <p>Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.</p>
    pub fn enabled(mut self, input: bool) -> Self {
        self.enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.</p>
    pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enabled = input;
        self
    }
    /// <p>Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.</p>
    pub fn get_enabled(&self) -> &::std::option::Option<bool> {
        &self.enabled
    }
    /// Consumes the builder and constructs a [`Unauthenticated`](crate::types::Unauthenticated).
    pub fn build(self) -> crate::types::Unauthenticated {
        crate::types::Unauthenticated { enabled: self.enabled }
    }
}