aws-sdk-transcribe 1.78.0

AWS SDK for Amazon Transcribe Service
Documentation
// 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",
                )
            })?,
        })
    }
}