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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Contains <code>GenerateAbstractiveSummary</code>, which is a required parameter if you want to enable Generative call summarization in your Call Analytics request.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Summarization {
/// <p>Enables Generative call summarization in your Call Analytics request</p>
/// <p>Generative call summarization provides a summary of the transcript including important components discussed in the conversation.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-enable-summarization.html">Enabling generative call summarization</a>.</p>
pub generate_abstractive_summary: bool,
}
impl Summarization {
/// <p>Enables Generative call summarization in your Call Analytics request</p>
/// <p>Generative call summarization provides a summary of the transcript including important components discussed in the conversation.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-enable-summarization.html">Enabling generative call summarization</a>.</p>
pub fn generate_abstractive_summary(&self) -> bool {
self.generate_abstractive_summary
}
}
impl Summarization {
/// Creates a new builder-style object to manufacture [`Summarization`](crate::types::Summarization).
pub fn builder() -> crate::types::builders::SummarizationBuilder {
crate::types::builders::SummarizationBuilder::default()
}
}
/// A builder for [`Summarization`](crate::types::Summarization).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SummarizationBuilder {
pub(crate) generate_abstractive_summary: ::std::option::Option<bool>,
}
impl SummarizationBuilder {
/// <p>Enables Generative call summarization in your Call Analytics request</p>
/// <p>Generative call summarization provides a summary of the transcript including important components discussed in the conversation.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-enable-summarization.html">Enabling generative call summarization</a>.</p>
/// This field is required.
pub fn generate_abstractive_summary(mut self, input: bool) -> Self {
self.generate_abstractive_summary = ::std::option::Option::Some(input);
self
}
/// <p>Enables Generative call summarization in your Call Analytics request</p>
/// <p>Generative call summarization provides a summary of the transcript including important components discussed in the conversation.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-enable-summarization.html">Enabling generative call summarization</a>.</p>
pub fn set_generate_abstractive_summary(mut self, input: ::std::option::Option<bool>) -> Self {
self.generate_abstractive_summary = input;
self
}
/// <p>Enables Generative call summarization in your Call Analytics request</p>
/// <p>Generative call summarization provides a summary of the transcript including important components discussed in the conversation.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-enable-summarization.html">Enabling generative call summarization</a>.</p>
pub fn get_generate_abstractive_summary(&self) -> &::std::option::Option<bool> {
&self.generate_abstractive_summary
}
/// Consumes the builder and constructs a [`Summarization`](crate::types::Summarization).
/// This method will fail if any of the following fields are not set:
/// - [`generate_abstractive_summary`](crate::types::builders::SummarizationBuilder::generate_abstractive_summary)
pub fn build(self) -> ::std::result::Result<crate::types::Summarization, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::Summarization {
generate_abstractive_summary: self.generate_abstractive_summary.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"generate_abstractive_summary",
"generate_abstractive_summary was not specified but it is required when building Summarization",
)
})?,
})
}
}