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 IAM access control.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Iam {
    /// <p>Indicates whether IAM access control is enabled.</p>
    pub enabled: ::std::option::Option<bool>,
}
impl Iam {
    /// <p>Indicates whether IAM access control is enabled.</p>
    pub fn enabled(&self) -> ::std::option::Option<bool> {
        self.enabled
    }
}
impl Iam {
    /// Creates a new builder-style object to manufacture [`Iam`](crate::types::Iam).
    pub fn builder() -> crate::types::builders::IamBuilder {
        crate::types::builders::IamBuilder::default()
    }
}

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