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 logging configuration associated with an Amazon Chime Voice Connector. Specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct LoggingConfiguration {
    /// <p>Boolean that enables SIP message logs to Amazon CloudWatch logs.</p>
    pub enable_sip_logs: ::std::option::Option<bool>,
    /// <p>Boolean that enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.</p>
    pub enable_media_metric_logs: ::std::option::Option<bool>,
}
impl LoggingConfiguration {
    /// <p>Boolean that enables SIP message logs to Amazon CloudWatch logs.</p>
    pub fn enable_sip_logs(&self) -> ::std::option::Option<bool> {
        self.enable_sip_logs
    }
    /// <p>Boolean that enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.</p>
    pub fn enable_media_metric_logs(&self) -> ::std::option::Option<bool> {
        self.enable_media_metric_logs
    }
}
impl LoggingConfiguration {
    /// Creates a new builder-style object to manufacture [`LoggingConfiguration`](crate::types::LoggingConfiguration).
    pub fn builder() -> crate::types::builders::LoggingConfigurationBuilder {
        crate::types::builders::LoggingConfigurationBuilder::default()
    }
}

/// A builder for [`LoggingConfiguration`](crate::types::LoggingConfiguration).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct LoggingConfigurationBuilder {
    pub(crate) enable_sip_logs: ::std::option::Option<bool>,
    pub(crate) enable_media_metric_logs: ::std::option::Option<bool>,
}
impl LoggingConfigurationBuilder {
    /// <p>Boolean that enables SIP message logs to Amazon CloudWatch logs.</p>
    pub fn enable_sip_logs(mut self, input: bool) -> Self {
        self.enable_sip_logs = ::std::option::Option::Some(input);
        self
    }
    /// <p>Boolean that enables SIP message logs to Amazon CloudWatch logs.</p>
    pub fn set_enable_sip_logs(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enable_sip_logs = input;
        self
    }
    /// <p>Boolean that enables SIP message logs to Amazon CloudWatch logs.</p>
    pub fn get_enable_sip_logs(&self) -> &::std::option::Option<bool> {
        &self.enable_sip_logs
    }
    /// <p>Boolean that enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.</p>
    pub fn enable_media_metric_logs(mut self, input: bool) -> Self {
        self.enable_media_metric_logs = ::std::option::Option::Some(input);
        self
    }
    /// <p>Boolean that enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.</p>
    pub fn set_enable_media_metric_logs(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enable_media_metric_logs = input;
        self
    }
    /// <p>Boolean that enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.</p>
    pub fn get_enable_media_metric_logs(&self) -> &::std::option::Option<bool> {
        &self.enable_media_metric_logs
    }
    /// Consumes the builder and constructs a [`LoggingConfiguration`](crate::types::LoggingConfiguration).
    pub fn build(self) -> crate::types::LoggingConfiguration {
        crate::types::LoggingConfiguration {
            enable_sip_logs: self.enable_sip_logs,
            enable_media_metric_logs: self.enable_media_metric_logs,
        }
    }
}