aws-sdk-mq 1.103.0

AWS SDK for AmazonMQ
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The list of information about logs to be enabled for the specified broker.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Logs {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub audit: ::std::option::Option<bool>,
    /// <p>Enables general logging.</p>
    pub general: ::std::option::Option<bool>,
}
impl Logs {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub fn audit(&self) -> ::std::option::Option<bool> {
        self.audit
    }
    /// <p>Enables general logging.</p>
    pub fn general(&self) -> ::std::option::Option<bool> {
        self.general
    }
}
impl Logs {
    /// Creates a new builder-style object to manufacture [`Logs`](crate::types::Logs).
    pub fn builder() -> crate::types::builders::LogsBuilder {
        crate::types::builders::LogsBuilder::default()
    }
}

/// A builder for [`Logs`](crate::types::Logs).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct LogsBuilder {
    pub(crate) audit: ::std::option::Option<bool>,
    pub(crate) general: ::std::option::Option<bool>,
}
impl LogsBuilder {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub fn audit(mut self, input: bool) -> Self {
        self.audit = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub fn set_audit(mut self, input: ::std::option::Option<bool>) -> Self {
        self.audit = input;
        self
    }
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub fn get_audit(&self) -> &::std::option::Option<bool> {
        &self.audit
    }
    /// <p>Enables general logging.</p>
    pub fn general(mut self, input: bool) -> Self {
        self.general = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables general logging.</p>
    pub fn set_general(mut self, input: ::std::option::Option<bool>) -> Self {
        self.general = input;
        self
    }
    /// <p>Enables general logging.</p>
    pub fn get_general(&self) -> &::std::option::Option<bool> {
        &self.general
    }
    /// Consumes the builder and constructs a [`Logs`](crate::types::Logs).
    pub fn build(self) -> crate::types::Logs {
        crate::types::Logs {
            audit: self.audit,
            general: self.general,
        }
    }
}