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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The object representing the URL of the bot definition, the URL of the associated transcript, and a statistical summary of the bot recommendation results.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BotRecommendationResults {
    /// <p>The presigned URL link of the recommended bot definition.</p>
    #[doc(hidden)]
    pub bot_locale_export_url: ::std::option::Option<::std::string::String>,
    /// <p>The presigned url link of the associated transcript.</p>
    #[doc(hidden)]
    pub associated_transcripts_url: ::std::option::Option<::std::string::String>,
    /// <p>The statistical summary of the bot recommendation results.</p>
    #[doc(hidden)]
    pub statistics: ::std::option::Option<crate::types::BotRecommendationResultStatistics>,
}
impl BotRecommendationResults {
    /// <p>The presigned URL link of the recommended bot definition.</p>
    pub fn bot_locale_export_url(&self) -> ::std::option::Option<&str> {
        self.bot_locale_export_url.as_deref()
    }
    /// <p>The presigned url link of the associated transcript.</p>
    pub fn associated_transcripts_url(&self) -> ::std::option::Option<&str> {
        self.associated_transcripts_url.as_deref()
    }
    /// <p>The statistical summary of the bot recommendation results.</p>
    pub fn statistics(
        &self,
    ) -> ::std::option::Option<&crate::types::BotRecommendationResultStatistics> {
        self.statistics.as_ref()
    }
}
impl BotRecommendationResults {
    /// Creates a new builder-style object to manufacture [`BotRecommendationResults`](crate::types::BotRecommendationResults).
    pub fn builder() -> crate::types::builders::BotRecommendationResultsBuilder {
        crate::types::builders::BotRecommendationResultsBuilder::default()
    }
}

/// A builder for [`BotRecommendationResults`](crate::types::BotRecommendationResults).
#[non_exhaustive]
#[derive(
    ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct BotRecommendationResultsBuilder {
    pub(crate) bot_locale_export_url: ::std::option::Option<::std::string::String>,
    pub(crate) associated_transcripts_url: ::std::option::Option<::std::string::String>,
    pub(crate) statistics: ::std::option::Option<crate::types::BotRecommendationResultStatistics>,
}
impl BotRecommendationResultsBuilder {
    /// <p>The presigned URL link of the recommended bot definition.</p>
    pub fn bot_locale_export_url(
        mut self,
        input: impl ::std::convert::Into<::std::string::String>,
    ) -> Self {
        self.bot_locale_export_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The presigned URL link of the recommended bot definition.</p>
    pub fn set_bot_locale_export_url(
        mut self,
        input: ::std::option::Option<::std::string::String>,
    ) -> Self {
        self.bot_locale_export_url = input;
        self
    }
    /// <p>The presigned url link of the associated transcript.</p>
    pub fn associated_transcripts_url(
        mut self,
        input: impl ::std::convert::Into<::std::string::String>,
    ) -> Self {
        self.associated_transcripts_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The presigned url link of the associated transcript.</p>
    pub fn set_associated_transcripts_url(
        mut self,
        input: ::std::option::Option<::std::string::String>,
    ) -> Self {
        self.associated_transcripts_url = input;
        self
    }
    /// <p>The statistical summary of the bot recommendation results.</p>
    pub fn statistics(mut self, input: crate::types::BotRecommendationResultStatistics) -> Self {
        self.statistics = ::std::option::Option::Some(input);
        self
    }
    /// <p>The statistical summary of the bot recommendation results.</p>
    pub fn set_statistics(
        mut self,
        input: ::std::option::Option<crate::types::BotRecommendationResultStatistics>,
    ) -> Self {
        self.statistics = input;
        self
    }
    /// Consumes the builder and constructs a [`BotRecommendationResults`](crate::types::BotRecommendationResults).
    pub fn build(self) -> crate::types::BotRecommendationResults {
        crate::types::BotRecommendationResults {
            bot_locale_export_url: self.bot_locale_export_url,
            associated_transcripts_url: self.associated_transcripts_url,
            statistics: self.statistics,
        }
    }
}