#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BotRecommendationResults {
#[doc(hidden)]
pub bot_locale_export_url: ::std::option::Option<::std::string::String>,
#[doc(hidden)]
pub associated_transcripts_url: ::std::option::Option<::std::string::String>,
#[doc(hidden)]
pub statistics: ::std::option::Option<crate::types::BotRecommendationResultStatistics>,
}
impl BotRecommendationResults {
pub fn bot_locale_export_url(&self) -> ::std::option::Option<&str> {
self.bot_locale_export_url.as_deref()
}
pub fn associated_transcripts_url(&self) -> ::std::option::Option<&str> {
self.associated_transcripts_url.as_deref()
}
pub fn statistics(
&self,
) -> ::std::option::Option<&crate::types::BotRecommendationResultStatistics> {
self.statistics.as_ref()
}
}
impl BotRecommendationResults {
pub fn builder() -> crate::types::builders::BotRecommendationResultsBuilder {
crate::types::builders::BotRecommendationResultsBuilder::default()
}
}
#[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 {
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
}
pub fn set_bot_locale_export_url(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.bot_locale_export_url = input;
self
}
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
}
pub fn set_associated_transcripts_url(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.associated_transcripts_url = input;
self
}
pub fn statistics(mut self, input: crate::types::BotRecommendationResultStatistics) -> Self {
self.statistics = ::std::option::Option::Some(input);
self
}
pub fn set_statistics(
mut self,
input: ::std::option::Option<crate::types::BotRecommendationResultStatistics>,
) -> Self {
self.statistics = input;
self
}
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,
}
}
}