1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// 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,
}
}
}