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>Settings for logging audio of conversations between Amazon Lex and a user. You specify whether to log audio and the Amazon S3 bucket where the audio file is stored.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AudioLogSetting {
    /// <p>Determines whether audio logging in enabled for the bot.</p>
    pub enabled: bool,
    /// <p>The location of audio log files collected when conversation logging is enabled for a bot.</p>
    pub destination: ::std::option::Option<crate::types::AudioLogDestination>,
}
impl AudioLogSetting {
    /// <p>Determines whether audio logging in enabled for the bot.</p>
    pub fn enabled(&self) -> bool {
        self.enabled
    }
    /// <p>The location of audio log files collected when conversation logging is enabled for a bot.</p>
    pub fn destination(&self) -> ::std::option::Option<&crate::types::AudioLogDestination> {
        self.destination.as_ref()
    }
}
impl AudioLogSetting {
    /// Creates a new builder-style object to manufacture [`AudioLogSetting`](crate::types::AudioLogSetting).
    pub fn builder() -> crate::types::builders::AudioLogSettingBuilder {
        crate::types::builders::AudioLogSettingBuilder::default()
    }
}

/// A builder for [`AudioLogSetting`](crate::types::AudioLogSetting).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AudioLogSettingBuilder {
    pub(crate) enabled: ::std::option::Option<bool>,
    pub(crate) destination: ::std::option::Option<crate::types::AudioLogDestination>,
}
impl AudioLogSettingBuilder {
    /// <p>Determines whether audio logging in enabled for the bot.</p>
    pub fn enabled(mut self, input: bool) -> Self {
        self.enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>Determines whether audio logging in enabled for the bot.</p>
    pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enabled = input;
        self
    }
    /// <p>Determines whether audio logging in enabled for the bot.</p>
    pub fn get_enabled(&self) -> &::std::option::Option<bool> {
        &self.enabled
    }
    /// <p>The location of audio log files collected when conversation logging is enabled for a bot.</p>
    pub fn destination(mut self, input: crate::types::AudioLogDestination) -> Self {
        self.destination = ::std::option::Option::Some(input);
        self
    }
    /// <p>The location of audio log files collected when conversation logging is enabled for a bot.</p>
    pub fn set_destination(mut self, input: ::std::option::Option<crate::types::AudioLogDestination>) -> Self {
        self.destination = input;
        self
    }
    /// <p>The location of audio log files collected when conversation logging is enabled for a bot.</p>
    pub fn get_destination(&self) -> &::std::option::Option<crate::types::AudioLogDestination> {
        &self.destination
    }
    /// Consumes the builder and constructs a [`AudioLogSetting`](crate::types::AudioLogSetting).
    pub fn build(self) -> crate::types::AudioLogSetting {
        crate::types::AudioLogSetting {
            enabled: self.enabled.unwrap_or_default(),
            destination: self.destination,
        }
    }
}