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.

/// <p>Details for SASL/SCRAM client authentication.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Scram {
    /// <p>SASL/SCRAM authentication is enabled or not.</p>
    pub enabled: ::std::option::Option<bool>,
}
impl Scram {
    /// <p>SASL/SCRAM authentication is enabled or not.</p>
    pub fn enabled(&self) -> ::std::option::Option<bool> {
        self.enabled
    }
}
impl Scram {
    /// Creates a new builder-style object to manufacture [`Scram`](crate::types::Scram).
    pub fn builder() -> crate::types::builders::ScramBuilder {
        crate::types::builders::ScramBuilder::default()
    }
}

/// A builder for [`Scram`](crate::types::Scram).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ScramBuilder {
    pub(crate) enabled: ::std::option::Option<bool>,
}
impl ScramBuilder {
    /// <p>SASL/SCRAM authentication is enabled or not.</p>
    pub fn enabled(mut self, input: bool) -> Self {
        self.enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>SASL/SCRAM authentication is enabled or not.</p>
    pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enabled = input;
        self
    }
    /// <p>SASL/SCRAM authentication is enabled or not.</p>
    pub fn get_enabled(&self) -> &::std::option::Option<bool> {
        &self.enabled
    }
    /// Consumes the builder and constructs a [`Scram`](crate::types::Scram).
    pub fn build(self) -> crate::types::Scram {
        crate::types::Scram { enabled: self.enabled }
    }
}