aws-sdk-transcribestreaming 0.24.0

AWS SDK for Amazon Transcribe Streaming Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartStreamTranscriptionOutput {
    /// <p>Provides the identifier for your streaming request.</p>
    #[doc(hidden)]
    pub request_id: std::option::Option<std::string::String>,
    /// <p>Provides the language code that you specified in your request.</p>
    #[doc(hidden)]
    pub language_code: std::option::Option<crate::model::LanguageCode>,
    /// <p>Provides the sample rate that you specified in your request.</p>
    #[doc(hidden)]
    pub media_sample_rate_hertz: std::option::Option<i32>,
    /// <p>Provides the media encoding you specified in your request.</p>
    #[doc(hidden)]
    pub media_encoding: std::option::Option<crate::model::MediaEncoding>,
    /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
    #[doc(hidden)]
    pub vocabulary_name: std::option::Option<std::string::String>,
    /// <p>Provides the identifier for your transcription session.</p>
    #[doc(hidden)]
    pub session_id: std::option::Option<std::string::String>,
    /// <p>Provides detailed information about your streaming session.</p>
    pub transcript_result_stream: aws_smithy_http::event_stream::Receiver<
        crate::model::TranscriptResultStream,
        crate::error::TranscriptResultStreamError,
    >,
    /// <p>Provides the name of the custom vocabulary filter that you specified in your request.</p>
    #[doc(hidden)]
    pub vocabulary_filter_name: std::option::Option<std::string::String>,
    /// <p>Provides the vocabulary filtering method used in your transcription.</p>
    #[doc(hidden)]
    pub vocabulary_filter_method: std::option::Option<crate::model::VocabularyFilterMethod>,
    /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
    #[doc(hidden)]
    pub show_speaker_label: bool,
    /// <p>Shows whether channel identification was enabled for your transcription.</p>
    #[doc(hidden)]
    pub enable_channel_identification: bool,
    /// <p>Provides the number of channels that you specified in your request.</p>
    #[doc(hidden)]
    pub number_of_channels: std::option::Option<i32>,
    /// <p>Shows whether partial results stabilization was enabled for your transcription.</p>
    #[doc(hidden)]
    pub enable_partial_results_stabilization: bool,
    /// <p>Provides the stabilization level used for your transcription.</p>
    #[doc(hidden)]
    pub partial_results_stability: std::option::Option<crate::model::PartialResultsStability>,
    /// <p>Shows whether content identification was enabled for your transcription.</p>
    #[doc(hidden)]
    pub content_identification_type: std::option::Option<crate::model::ContentIdentificationType>,
    /// <p>Shows whether content redaction was enabled for your transcription.</p>
    #[doc(hidden)]
    pub content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
    /// <p>Lists the PII entity types you specified in your request.</p>
    #[doc(hidden)]
    pub pii_entity_types: std::option::Option<std::string::String>,
    /// <p>Provides the name of the custom language model that you specified in your request.</p>
    #[doc(hidden)]
    pub language_model_name: std::option::Option<std::string::String>,
    /// <p>Shows whether automatic language identification was enabled for your transcription.</p>
    #[doc(hidden)]
    pub identify_language: bool,
    /// <p>Provides the language codes that you specified in your request.</p>
    #[doc(hidden)]
    pub language_options: std::option::Option<std::string::String>,
    /// <p>Provides the preferred language that you specified in your request.</p>
    #[doc(hidden)]
    pub preferred_language: std::option::Option<crate::model::LanguageCode>,
    /// <p>Provides the names of the custom vocabularies that you specified in your request.</p>
    #[doc(hidden)]
    pub vocabulary_names: std::option::Option<std::string::String>,
    /// <p>Provides the names of the custom vocabulary filters that you specified in your request.</p>
    #[doc(hidden)]
    pub vocabulary_filter_names: std::option::Option<std::string::String>,
}
impl StartStreamTranscriptionOutput {
    /// <p>Provides the identifier for your streaming request.</p>
    pub fn request_id(&self) -> std::option::Option<&str> {
        self.request_id.as_deref()
    }
    /// <p>Provides the language code that you specified in your request.</p>
    pub fn language_code(&self) -> std::option::Option<&crate::model::LanguageCode> {
        self.language_code.as_ref()
    }
    /// <p>Provides the sample rate that you specified in your request.</p>
    pub fn media_sample_rate_hertz(&self) -> std::option::Option<i32> {
        self.media_sample_rate_hertz
    }
    /// <p>Provides the media encoding you specified in your request.</p>
    pub fn media_encoding(&self) -> std::option::Option<&crate::model::MediaEncoding> {
        self.media_encoding.as_ref()
    }
    /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
    pub fn vocabulary_name(&self) -> std::option::Option<&str> {
        self.vocabulary_name.as_deref()
    }
    /// <p>Provides the identifier for your transcription session.</p>
    pub fn session_id(&self) -> std::option::Option<&str> {
        self.session_id.as_deref()
    }
    /// <p>Provides detailed information about your streaming session.</p>
    pub fn transcript_result_stream(
        &self,
    ) -> &aws_smithy_http::event_stream::Receiver<
        crate::model::TranscriptResultStream,
        crate::error::TranscriptResultStreamError,
    > {
        &self.transcript_result_stream
    }
    /// <p>Provides the name of the custom vocabulary filter that you specified in your request.</p>
    pub fn vocabulary_filter_name(&self) -> std::option::Option<&str> {
        self.vocabulary_filter_name.as_deref()
    }
    /// <p>Provides the vocabulary filtering method used in your transcription.</p>
    pub fn vocabulary_filter_method(
        &self,
    ) -> std::option::Option<&crate::model::VocabularyFilterMethod> {
        self.vocabulary_filter_method.as_ref()
    }
    /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
    pub fn show_speaker_label(&self) -> bool {
        self.show_speaker_label
    }
    /// <p>Shows whether channel identification was enabled for your transcription.</p>
    pub fn enable_channel_identification(&self) -> bool {
        self.enable_channel_identification
    }
    /// <p>Provides the number of channels that you specified in your request.</p>
    pub fn number_of_channels(&self) -> std::option::Option<i32> {
        self.number_of_channels
    }
    /// <p>Shows whether partial results stabilization was enabled for your transcription.</p>
    pub fn enable_partial_results_stabilization(&self) -> bool {
        self.enable_partial_results_stabilization
    }
    /// <p>Provides the stabilization level used for your transcription.</p>
    pub fn partial_results_stability(
        &self,
    ) -> std::option::Option<&crate::model::PartialResultsStability> {
        self.partial_results_stability.as_ref()
    }
    /// <p>Shows whether content identification was enabled for your transcription.</p>
    pub fn content_identification_type(
        &self,
    ) -> std::option::Option<&crate::model::ContentIdentificationType> {
        self.content_identification_type.as_ref()
    }
    /// <p>Shows whether content redaction was enabled for your transcription.</p>
    pub fn content_redaction_type(
        &self,
    ) -> std::option::Option<&crate::model::ContentRedactionType> {
        self.content_redaction_type.as_ref()
    }
    /// <p>Lists the PII entity types you specified in your request.</p>
    pub fn pii_entity_types(&self) -> std::option::Option<&str> {
        self.pii_entity_types.as_deref()
    }
    /// <p>Provides the name of the custom language model that you specified in your request.</p>
    pub fn language_model_name(&self) -> std::option::Option<&str> {
        self.language_model_name.as_deref()
    }
    /// <p>Shows whether automatic language identification was enabled for your transcription.</p>
    pub fn identify_language(&self) -> bool {
        self.identify_language
    }
    /// <p>Provides the language codes that you specified in your request.</p>
    pub fn language_options(&self) -> std::option::Option<&str> {
        self.language_options.as_deref()
    }
    /// <p>Provides the preferred language that you specified in your request.</p>
    pub fn preferred_language(&self) -> std::option::Option<&crate::model::LanguageCode> {
        self.preferred_language.as_ref()
    }
    /// <p>Provides the names of the custom vocabularies that you specified in your request.</p>
    pub fn vocabulary_names(&self) -> std::option::Option<&str> {
        self.vocabulary_names.as_deref()
    }
    /// <p>Provides the names of the custom vocabulary filters that you specified in your request.</p>
    pub fn vocabulary_filter_names(&self) -> std::option::Option<&str> {
        self.vocabulary_filter_names.as_deref()
    }
}
/// See [`StartStreamTranscriptionOutput`](crate::output::StartStreamTranscriptionOutput).
pub mod start_stream_transcription_output {

    /// A builder for [`StartStreamTranscriptionOutput`](crate::output::StartStreamTranscriptionOutput).
    #[derive(std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) request_id: std::option::Option<std::string::String>,
        pub(crate) language_code: std::option::Option<crate::model::LanguageCode>,
        pub(crate) media_sample_rate_hertz: std::option::Option<i32>,
        pub(crate) media_encoding: std::option::Option<crate::model::MediaEncoding>,
        pub(crate) vocabulary_name: std::option::Option<std::string::String>,
        pub(crate) session_id: std::option::Option<std::string::String>,
        pub(crate) transcript_result_stream: std::option::Option<
            aws_smithy_http::event_stream::Receiver<
                crate::model::TranscriptResultStream,
                crate::error::TranscriptResultStreamError,
            >,
        >,
        pub(crate) vocabulary_filter_name: std::option::Option<std::string::String>,
        pub(crate) vocabulary_filter_method:
            std::option::Option<crate::model::VocabularyFilterMethod>,
        pub(crate) show_speaker_label: std::option::Option<bool>,
        pub(crate) enable_channel_identification: std::option::Option<bool>,
        pub(crate) number_of_channels: std::option::Option<i32>,
        pub(crate) enable_partial_results_stabilization: std::option::Option<bool>,
        pub(crate) partial_results_stability:
            std::option::Option<crate::model::PartialResultsStability>,
        pub(crate) content_identification_type:
            std::option::Option<crate::model::ContentIdentificationType>,
        pub(crate) content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
        pub(crate) pii_entity_types: std::option::Option<std::string::String>,
        pub(crate) language_model_name: std::option::Option<std::string::String>,
        pub(crate) identify_language: std::option::Option<bool>,
        pub(crate) language_options: std::option::Option<std::string::String>,
        pub(crate) preferred_language: std::option::Option<crate::model::LanguageCode>,
        pub(crate) vocabulary_names: std::option::Option<std::string::String>,
        pub(crate) vocabulary_filter_names: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>Provides the identifier for your streaming request.</p>
        pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.request_id = Some(input.into());
            self
        }
        /// <p>Provides the identifier for your streaming request.</p>
        pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.request_id = input;
            self
        }
        /// <p>Provides the language code that you specified in your request.</p>
        pub fn language_code(mut self, input: crate::model::LanguageCode) -> Self {
            self.language_code = Some(input);
            self
        }
        /// <p>Provides the language code that you specified in your request.</p>
        pub fn set_language_code(
            mut self,
            input: std::option::Option<crate::model::LanguageCode>,
        ) -> Self {
            self.language_code = input;
            self
        }
        /// <p>Provides the sample rate that you specified in your request.</p>
        pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
            self.media_sample_rate_hertz = Some(input);
            self
        }
        /// <p>Provides the sample rate that you specified in your request.</p>
        pub fn set_media_sample_rate_hertz(mut self, input: std::option::Option<i32>) -> Self {
            self.media_sample_rate_hertz = input;
            self
        }
        /// <p>Provides the media encoding you specified in your request.</p>
        pub fn media_encoding(mut self, input: crate::model::MediaEncoding) -> Self {
            self.media_encoding = Some(input);
            self
        }
        /// <p>Provides the media encoding you specified in your request.</p>
        pub fn set_media_encoding(
            mut self,
            input: std::option::Option<crate::model::MediaEncoding>,
        ) -> Self {
            self.media_encoding = input;
            self
        }
        /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
        pub fn vocabulary_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
        pub fn set_vocabulary_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_name = input;
            self
        }
        /// <p>Provides the identifier for your transcription session.</p>
        pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.session_id = Some(input.into());
            self
        }
        /// <p>Provides the identifier for your transcription session.</p>
        pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.session_id = input;
            self
        }
        /// <p>Provides detailed information about your streaming session.</p>
        pub fn transcript_result_stream(
            mut self,
            input: aws_smithy_http::event_stream::Receiver<
                crate::model::TranscriptResultStream,
                crate::error::TranscriptResultStreamError,
            >,
        ) -> Self {
            self.transcript_result_stream = Some(input);
            self
        }
        /// <p>Provides detailed information about your streaming session.</p>
        pub fn set_transcript_result_stream(
            mut self,
            input: std::option::Option<
                aws_smithy_http::event_stream::Receiver<
                    crate::model::TranscriptResultStream,
                    crate::error::TranscriptResultStreamError,
                >,
            >,
        ) -> Self {
            self.transcript_result_stream = input;
            self
        }
        /// <p>Provides the name of the custom vocabulary filter that you specified in your request.</p>
        pub fn vocabulary_filter_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_filter_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom vocabulary filter that you specified in your request.</p>
        pub fn set_vocabulary_filter_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_filter_name = input;
            self
        }
        /// <p>Provides the vocabulary filtering method used in your transcription.</p>
        pub fn vocabulary_filter_method(
            mut self,
            input: crate::model::VocabularyFilterMethod,
        ) -> Self {
            self.vocabulary_filter_method = Some(input);
            self
        }
        /// <p>Provides the vocabulary filtering method used in your transcription.</p>
        pub fn set_vocabulary_filter_method(
            mut self,
            input: std::option::Option<crate::model::VocabularyFilterMethod>,
        ) -> Self {
            self.vocabulary_filter_method = input;
            self
        }
        /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
        pub fn show_speaker_label(mut self, input: bool) -> Self {
            self.show_speaker_label = Some(input);
            self
        }
        /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
        pub fn set_show_speaker_label(mut self, input: std::option::Option<bool>) -> Self {
            self.show_speaker_label = input;
            self
        }
        /// <p>Shows whether channel identification was enabled for your transcription.</p>
        pub fn enable_channel_identification(mut self, input: bool) -> Self {
            self.enable_channel_identification = Some(input);
            self
        }
        /// <p>Shows whether channel identification was enabled for your transcription.</p>
        pub fn set_enable_channel_identification(
            mut self,
            input: std::option::Option<bool>,
        ) -> Self {
            self.enable_channel_identification = input;
            self
        }
        /// <p>Provides the number of channels that you specified in your request.</p>
        pub fn number_of_channels(mut self, input: i32) -> Self {
            self.number_of_channels = Some(input);
            self
        }
        /// <p>Provides the number of channels that you specified in your request.</p>
        pub fn set_number_of_channels(mut self, input: std::option::Option<i32>) -> Self {
            self.number_of_channels = input;
            self
        }
        /// <p>Shows whether partial results stabilization was enabled for your transcription.</p>
        pub fn enable_partial_results_stabilization(mut self, input: bool) -> Self {
            self.enable_partial_results_stabilization = Some(input);
            self
        }
        /// <p>Shows whether partial results stabilization was enabled for your transcription.</p>
        pub fn set_enable_partial_results_stabilization(
            mut self,
            input: std::option::Option<bool>,
        ) -> Self {
            self.enable_partial_results_stabilization = input;
            self
        }
        /// <p>Provides the stabilization level used for your transcription.</p>
        pub fn partial_results_stability(
            mut self,
            input: crate::model::PartialResultsStability,
        ) -> Self {
            self.partial_results_stability = Some(input);
            self
        }
        /// <p>Provides the stabilization level used for your transcription.</p>
        pub fn set_partial_results_stability(
            mut self,
            input: std::option::Option<crate::model::PartialResultsStability>,
        ) -> Self {
            self.partial_results_stability = input;
            self
        }
        /// <p>Shows whether content identification was enabled for your transcription.</p>
        pub fn content_identification_type(
            mut self,
            input: crate::model::ContentIdentificationType,
        ) -> Self {
            self.content_identification_type = Some(input);
            self
        }
        /// <p>Shows whether content identification was enabled for your transcription.</p>
        pub fn set_content_identification_type(
            mut self,
            input: std::option::Option<crate::model::ContentIdentificationType>,
        ) -> Self {
            self.content_identification_type = input;
            self
        }
        /// <p>Shows whether content redaction was enabled for your transcription.</p>
        pub fn content_redaction_type(mut self, input: crate::model::ContentRedactionType) -> Self {
            self.content_redaction_type = Some(input);
            self
        }
        /// <p>Shows whether content redaction was enabled for your transcription.</p>
        pub fn set_content_redaction_type(
            mut self,
            input: std::option::Option<crate::model::ContentRedactionType>,
        ) -> Self {
            self.content_redaction_type = input;
            self
        }
        /// <p>Lists the PII entity types you specified in your request.</p>
        pub fn pii_entity_types(mut self, input: impl Into<std::string::String>) -> Self {
            self.pii_entity_types = Some(input.into());
            self
        }
        /// <p>Lists the PII entity types you specified in your request.</p>
        pub fn set_pii_entity_types(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.pii_entity_types = input;
            self
        }
        /// <p>Provides the name of the custom language model that you specified in your request.</p>
        pub fn language_model_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.language_model_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom language model that you specified in your request.</p>
        pub fn set_language_model_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.language_model_name = input;
            self
        }
        /// <p>Shows whether automatic language identification was enabled for your transcription.</p>
        pub fn identify_language(mut self, input: bool) -> Self {
            self.identify_language = Some(input);
            self
        }
        /// <p>Shows whether automatic language identification was enabled for your transcription.</p>
        pub fn set_identify_language(mut self, input: std::option::Option<bool>) -> Self {
            self.identify_language = input;
            self
        }
        /// <p>Provides the language codes that you specified in your request.</p>
        pub fn language_options(mut self, input: impl Into<std::string::String>) -> Self {
            self.language_options = Some(input.into());
            self
        }
        /// <p>Provides the language codes that you specified in your request.</p>
        pub fn set_language_options(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.language_options = input;
            self
        }
        /// <p>Provides the preferred language that you specified in your request.</p>
        pub fn preferred_language(mut self, input: crate::model::LanguageCode) -> Self {
            self.preferred_language = Some(input);
            self
        }
        /// <p>Provides the preferred language that you specified in your request.</p>
        pub fn set_preferred_language(
            mut self,
            input: std::option::Option<crate::model::LanguageCode>,
        ) -> Self {
            self.preferred_language = input;
            self
        }
        /// <p>Provides the names of the custom vocabularies that you specified in your request.</p>
        pub fn vocabulary_names(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_names = Some(input.into());
            self
        }
        /// <p>Provides the names of the custom vocabularies that you specified in your request.</p>
        pub fn set_vocabulary_names(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_names = input;
            self
        }
        /// <p>Provides the names of the custom vocabulary filters that you specified in your request.</p>
        pub fn vocabulary_filter_names(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_filter_names = Some(input.into());
            self
        }
        /// <p>Provides the names of the custom vocabulary filters that you specified in your request.</p>
        pub fn set_vocabulary_filter_names(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_filter_names = input;
            self
        }
        /// Consumes the builder and constructs a [`StartStreamTranscriptionOutput`](crate::output::StartStreamTranscriptionOutput).
        pub fn build(
            self,
        ) -> Result<
            crate::output::StartStreamTranscriptionOutput,
            aws_smithy_http::operation::error::BuildError,
        > {
            Ok(
                crate::output::StartStreamTranscriptionOutput {
                    request_id: self.request_id
                    ,
                    language_code: self.language_code
                    ,
                    media_sample_rate_hertz: self.media_sample_rate_hertz
                    ,
                    media_encoding: self.media_encoding
                    ,
                    vocabulary_name: self.vocabulary_name
                    ,
                    session_id: self.session_id
                    ,
                    transcript_result_stream: self.transcript_result_stream
                        .ok_or_else(||
                            aws_smithy_http::operation::error::BuildError::missing_field("transcript_result_stream", "transcript_result_stream was not specified but it is required when building StartStreamTranscriptionOutput")
                        )?
                    ,
                    vocabulary_filter_name: self.vocabulary_filter_name
                    ,
                    vocabulary_filter_method: self.vocabulary_filter_method
                    ,
                    show_speaker_label: self.show_speaker_label
                        .unwrap_or_default()
                    ,
                    enable_channel_identification: self.enable_channel_identification
                        .unwrap_or_default()
                    ,
                    number_of_channels: self.number_of_channels
                    ,
                    enable_partial_results_stabilization: self.enable_partial_results_stabilization
                        .unwrap_or_default()
                    ,
                    partial_results_stability: self.partial_results_stability
                    ,
                    content_identification_type: self.content_identification_type
                    ,
                    content_redaction_type: self.content_redaction_type
                    ,
                    pii_entity_types: self.pii_entity_types
                    ,
                    language_model_name: self.language_model_name
                    ,
                    identify_language: self.identify_language
                        .unwrap_or_default()
                    ,
                    language_options: self.language_options
                    ,
                    preferred_language: self.preferred_language
                    ,
                    vocabulary_names: self.vocabulary_names
                    ,
                    vocabulary_filter_names: self.vocabulary_filter_names
                    ,
                }
            )
        }
    }
}
impl StartStreamTranscriptionOutput {
    /// Creates a new builder-style object to manufacture [`StartStreamTranscriptionOutput`](crate::output::StartStreamTranscriptionOutput).
    pub fn builder() -> crate::output::start_stream_transcription_output::Builder {
        crate::output::start_stream_transcription_output::Builder::default()
    }
}

#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartMedicalStreamTranscriptionOutput {
    /// <p>Provides the identifier for your streaming request.</p>
    #[doc(hidden)]
    pub request_id: std::option::Option<std::string::String>,
    /// <p>Provides the language code that you specified in your request. This must be <code>en-US</code>.</p>
    #[doc(hidden)]
    pub language_code: std::option::Option<crate::model::LanguageCode>,
    /// <p>Provides the sample rate that you specified in your request.</p>
    #[doc(hidden)]
    pub media_sample_rate_hertz: std::option::Option<i32>,
    /// <p>Provides the media encoding you specified in your request.</p>
    #[doc(hidden)]
    pub media_encoding: std::option::Option<crate::model::MediaEncoding>,
    /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
    #[doc(hidden)]
    pub vocabulary_name: std::option::Option<std::string::String>,
    /// <p>Provides the medical specialty that you specified in your request.</p>
    #[doc(hidden)]
    pub specialty: std::option::Option<crate::model::Specialty>,
    /// <p>Provides the type of audio you specified in your request.</p>
    #[doc(hidden)]
    pub r#type: std::option::Option<crate::model::Type>,
    /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
    #[doc(hidden)]
    pub show_speaker_label: bool,
    /// <p>Provides the identifier for your transcription session.</p>
    #[doc(hidden)]
    pub session_id: std::option::Option<std::string::String>,
    /// <p>Provides detailed information about your streaming session.</p>
    pub transcript_result_stream: aws_smithy_http::event_stream::Receiver<
        crate::model::MedicalTranscriptResultStream,
        crate::error::MedicalTranscriptResultStreamError,
    >,
    /// <p>Shows whether channel identification was enabled for your transcription.</p>
    #[doc(hidden)]
    pub enable_channel_identification: bool,
    /// <p>Provides the number of channels that you specified in your request.</p>
    #[doc(hidden)]
    pub number_of_channels: std::option::Option<i32>,
    /// <p>Shows whether content identification was enabled for your transcription.</p>
    #[doc(hidden)]
    pub content_identification_type:
        std::option::Option<crate::model::MedicalContentIdentificationType>,
}
impl StartMedicalStreamTranscriptionOutput {
    /// <p>Provides the identifier for your streaming request.</p>
    pub fn request_id(&self) -> std::option::Option<&str> {
        self.request_id.as_deref()
    }
    /// <p>Provides the language code that you specified in your request. This must be <code>en-US</code>.</p>
    pub fn language_code(&self) -> std::option::Option<&crate::model::LanguageCode> {
        self.language_code.as_ref()
    }
    /// <p>Provides the sample rate that you specified in your request.</p>
    pub fn media_sample_rate_hertz(&self) -> std::option::Option<i32> {
        self.media_sample_rate_hertz
    }
    /// <p>Provides the media encoding you specified in your request.</p>
    pub fn media_encoding(&self) -> std::option::Option<&crate::model::MediaEncoding> {
        self.media_encoding.as_ref()
    }
    /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
    pub fn vocabulary_name(&self) -> std::option::Option<&str> {
        self.vocabulary_name.as_deref()
    }
    /// <p>Provides the medical specialty that you specified in your request.</p>
    pub fn specialty(&self) -> std::option::Option<&crate::model::Specialty> {
        self.specialty.as_ref()
    }
    /// <p>Provides the type of audio you specified in your request.</p>
    pub fn r#type(&self) -> std::option::Option<&crate::model::Type> {
        self.r#type.as_ref()
    }
    /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
    pub fn show_speaker_label(&self) -> bool {
        self.show_speaker_label
    }
    /// <p>Provides the identifier for your transcription session.</p>
    pub fn session_id(&self) -> std::option::Option<&str> {
        self.session_id.as_deref()
    }
    /// <p>Provides detailed information about your streaming session.</p>
    pub fn transcript_result_stream(
        &self,
    ) -> &aws_smithy_http::event_stream::Receiver<
        crate::model::MedicalTranscriptResultStream,
        crate::error::MedicalTranscriptResultStreamError,
    > {
        &self.transcript_result_stream
    }
    /// <p>Shows whether channel identification was enabled for your transcription.</p>
    pub fn enable_channel_identification(&self) -> bool {
        self.enable_channel_identification
    }
    /// <p>Provides the number of channels that you specified in your request.</p>
    pub fn number_of_channels(&self) -> std::option::Option<i32> {
        self.number_of_channels
    }
    /// <p>Shows whether content identification was enabled for your transcription.</p>
    pub fn content_identification_type(
        &self,
    ) -> std::option::Option<&crate::model::MedicalContentIdentificationType> {
        self.content_identification_type.as_ref()
    }
}
/// See [`StartMedicalStreamTranscriptionOutput`](crate::output::StartMedicalStreamTranscriptionOutput).
pub mod start_medical_stream_transcription_output {

    /// A builder for [`StartMedicalStreamTranscriptionOutput`](crate::output::StartMedicalStreamTranscriptionOutput).
    #[derive(std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) request_id: std::option::Option<std::string::String>,
        pub(crate) language_code: std::option::Option<crate::model::LanguageCode>,
        pub(crate) media_sample_rate_hertz: std::option::Option<i32>,
        pub(crate) media_encoding: std::option::Option<crate::model::MediaEncoding>,
        pub(crate) vocabulary_name: std::option::Option<std::string::String>,
        pub(crate) specialty: std::option::Option<crate::model::Specialty>,
        pub(crate) r#type: std::option::Option<crate::model::Type>,
        pub(crate) show_speaker_label: std::option::Option<bool>,
        pub(crate) session_id: std::option::Option<std::string::String>,
        pub(crate) transcript_result_stream: std::option::Option<
            aws_smithy_http::event_stream::Receiver<
                crate::model::MedicalTranscriptResultStream,
                crate::error::MedicalTranscriptResultStreamError,
            >,
        >,
        pub(crate) enable_channel_identification: std::option::Option<bool>,
        pub(crate) number_of_channels: std::option::Option<i32>,
        pub(crate) content_identification_type:
            std::option::Option<crate::model::MedicalContentIdentificationType>,
    }
    impl Builder {
        /// <p>Provides the identifier for your streaming request.</p>
        pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.request_id = Some(input.into());
            self
        }
        /// <p>Provides the identifier for your streaming request.</p>
        pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.request_id = input;
            self
        }
        /// <p>Provides the language code that you specified in your request. This must be <code>en-US</code>.</p>
        pub fn language_code(mut self, input: crate::model::LanguageCode) -> Self {
            self.language_code = Some(input);
            self
        }
        /// <p>Provides the language code that you specified in your request. This must be <code>en-US</code>.</p>
        pub fn set_language_code(
            mut self,
            input: std::option::Option<crate::model::LanguageCode>,
        ) -> Self {
            self.language_code = input;
            self
        }
        /// <p>Provides the sample rate that you specified in your request.</p>
        pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
            self.media_sample_rate_hertz = Some(input);
            self
        }
        /// <p>Provides the sample rate that you specified in your request.</p>
        pub fn set_media_sample_rate_hertz(mut self, input: std::option::Option<i32>) -> Self {
            self.media_sample_rate_hertz = input;
            self
        }
        /// <p>Provides the media encoding you specified in your request.</p>
        pub fn media_encoding(mut self, input: crate::model::MediaEncoding) -> Self {
            self.media_encoding = Some(input);
            self
        }
        /// <p>Provides the media encoding you specified in your request.</p>
        pub fn set_media_encoding(
            mut self,
            input: std::option::Option<crate::model::MediaEncoding>,
        ) -> Self {
            self.media_encoding = input;
            self
        }
        /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
        pub fn vocabulary_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom vocabulary that you specified in your request.</p>
        pub fn set_vocabulary_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_name = input;
            self
        }
        /// <p>Provides the medical specialty that you specified in your request.</p>
        pub fn specialty(mut self, input: crate::model::Specialty) -> Self {
            self.specialty = Some(input);
            self
        }
        /// <p>Provides the medical specialty that you specified in your request.</p>
        pub fn set_specialty(
            mut self,
            input: std::option::Option<crate::model::Specialty>,
        ) -> Self {
            self.specialty = input;
            self
        }
        /// <p>Provides the type of audio you specified in your request.</p>
        pub fn r#type(mut self, input: crate::model::Type) -> Self {
            self.r#type = Some(input);
            self
        }
        /// <p>Provides the type of audio you specified in your request.</p>
        pub fn set_type(mut self, input: std::option::Option<crate::model::Type>) -> Self {
            self.r#type = input;
            self
        }
        /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
        pub fn show_speaker_label(mut self, input: bool) -> Self {
            self.show_speaker_label = Some(input);
            self
        }
        /// <p>Shows whether speaker partitioning was enabled for your transcription.</p>
        pub fn set_show_speaker_label(mut self, input: std::option::Option<bool>) -> Self {
            self.show_speaker_label = input;
            self
        }
        /// <p>Provides the identifier for your transcription session.</p>
        pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.session_id = Some(input.into());
            self
        }
        /// <p>Provides the identifier for your transcription session.</p>
        pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.session_id = input;
            self
        }
        /// <p>Provides detailed information about your streaming session.</p>
        pub fn transcript_result_stream(
            mut self,
            input: aws_smithy_http::event_stream::Receiver<
                crate::model::MedicalTranscriptResultStream,
                crate::error::MedicalTranscriptResultStreamError,
            >,
        ) -> Self {
            self.transcript_result_stream = Some(input);
            self
        }
        /// <p>Provides detailed information about your streaming session.</p>
        pub fn set_transcript_result_stream(
            mut self,
            input: std::option::Option<
                aws_smithy_http::event_stream::Receiver<
                    crate::model::MedicalTranscriptResultStream,
                    crate::error::MedicalTranscriptResultStreamError,
                >,
            >,
        ) -> Self {
            self.transcript_result_stream = input;
            self
        }
        /// <p>Shows whether channel identification was enabled for your transcription.</p>
        pub fn enable_channel_identification(mut self, input: bool) -> Self {
            self.enable_channel_identification = Some(input);
            self
        }
        /// <p>Shows whether channel identification was enabled for your transcription.</p>
        pub fn set_enable_channel_identification(
            mut self,
            input: std::option::Option<bool>,
        ) -> Self {
            self.enable_channel_identification = input;
            self
        }
        /// <p>Provides the number of channels that you specified in your request.</p>
        pub fn number_of_channels(mut self, input: i32) -> Self {
            self.number_of_channels = Some(input);
            self
        }
        /// <p>Provides the number of channels that you specified in your request.</p>
        pub fn set_number_of_channels(mut self, input: std::option::Option<i32>) -> Self {
            self.number_of_channels = input;
            self
        }
        /// <p>Shows whether content identification was enabled for your transcription.</p>
        pub fn content_identification_type(
            mut self,
            input: crate::model::MedicalContentIdentificationType,
        ) -> Self {
            self.content_identification_type = Some(input);
            self
        }
        /// <p>Shows whether content identification was enabled for your transcription.</p>
        pub fn set_content_identification_type(
            mut self,
            input: std::option::Option<crate::model::MedicalContentIdentificationType>,
        ) -> Self {
            self.content_identification_type = input;
            self
        }
        /// Consumes the builder and constructs a [`StartMedicalStreamTranscriptionOutput`](crate::output::StartMedicalStreamTranscriptionOutput).
        pub fn build(
            self,
        ) -> Result<
            crate::output::StartMedicalStreamTranscriptionOutput,
            aws_smithy_http::operation::error::BuildError,
        > {
            Ok(
                crate::output::StartMedicalStreamTranscriptionOutput {
                    request_id: self.request_id
                    ,
                    language_code: self.language_code
                    ,
                    media_sample_rate_hertz: self.media_sample_rate_hertz
                    ,
                    media_encoding: self.media_encoding
                    ,
                    vocabulary_name: self.vocabulary_name
                    ,
                    specialty: self.specialty
                    ,
                    r#type: self.r#type
                    ,
                    show_speaker_label: self.show_speaker_label
                        .unwrap_or_default()
                    ,
                    session_id: self.session_id
                    ,
                    transcript_result_stream: self.transcript_result_stream
                        .ok_or_else(||
                            aws_smithy_http::operation::error::BuildError::missing_field("transcript_result_stream", "transcript_result_stream was not specified but it is required when building StartMedicalStreamTranscriptionOutput")
                        )?
                    ,
                    enable_channel_identification: self.enable_channel_identification
                        .unwrap_or_default()
                    ,
                    number_of_channels: self.number_of_channels
                    ,
                    content_identification_type: self.content_identification_type
                    ,
                }
            )
        }
    }
}
impl StartMedicalStreamTranscriptionOutput {
    /// Creates a new builder-style object to manufacture [`StartMedicalStreamTranscriptionOutput`](crate::output::StartMedicalStreamTranscriptionOutput).
    pub fn builder() -> crate::output::start_medical_stream_transcription_output::Builder {
        crate::output::start_medical_stream_transcription_output::Builder::default()
    }
}

#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartCallAnalyticsStreamTranscriptionOutput {
    /// <p>Provides the identifier for your Call Analytics streaming request.</p>
    #[doc(hidden)]
    pub request_id: std::option::Option<std::string::String>,
    /// <p>Provides the language code that you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub language_code: std::option::Option<crate::model::CallAnalyticsLanguageCode>,
    /// <p>Provides the sample rate that you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub media_sample_rate_hertz: std::option::Option<i32>,
    /// <p>Provides the media encoding you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub media_encoding: std::option::Option<crate::model::MediaEncoding>,
    /// <p>Provides the name of the custom vocabulary that you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub vocabulary_name: std::option::Option<std::string::String>,
    /// <p>Provides the identifier for your Call Analytics transcription session.</p>
    #[doc(hidden)]
    pub session_id: std::option::Option<std::string::String>,
    /// <p>Provides detailed information about your Call Analytics streaming session.</p>
    pub call_analytics_transcript_result_stream: aws_smithy_http::event_stream::Receiver<
        crate::model::CallAnalyticsTranscriptResultStream,
        crate::error::CallAnalyticsTranscriptResultStreamError,
    >,
    /// <p>Provides the name of the custom vocabulary filter that you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub vocabulary_filter_name: std::option::Option<std::string::String>,
    /// <p>Provides the vocabulary filtering method used in your Call Analytics transcription.</p>
    #[doc(hidden)]
    pub vocabulary_filter_method: std::option::Option<crate::model::VocabularyFilterMethod>,
    /// <p>Provides the name of the custom language model that you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub language_model_name: std::option::Option<std::string::String>,
    /// <p>Shows whether partial results stabilization was enabled for your Call Analytics transcription.</p>
    #[doc(hidden)]
    pub enable_partial_results_stabilization: bool,
    /// <p>Provides the stabilization level used for your transcription.</p>
    #[doc(hidden)]
    pub partial_results_stability: std::option::Option<crate::model::PartialResultsStability>,
    /// <p>Shows whether content identification was enabled for your Call Analytics transcription.</p>
    #[doc(hidden)]
    pub content_identification_type: std::option::Option<crate::model::ContentIdentificationType>,
    /// <p>Shows whether content redaction was enabled for your Call Analytics transcription.</p>
    #[doc(hidden)]
    pub content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
    /// <p>Lists the PII entity types you specified in your Call Analytics request.</p>
    #[doc(hidden)]
    pub pii_entity_types: std::option::Option<std::string::String>,
}
impl StartCallAnalyticsStreamTranscriptionOutput {
    /// <p>Provides the identifier for your Call Analytics streaming request.</p>
    pub fn request_id(&self) -> std::option::Option<&str> {
        self.request_id.as_deref()
    }
    /// <p>Provides the language code that you specified in your Call Analytics request.</p>
    pub fn language_code(&self) -> std::option::Option<&crate::model::CallAnalyticsLanguageCode> {
        self.language_code.as_ref()
    }
    /// <p>Provides the sample rate that you specified in your Call Analytics request.</p>
    pub fn media_sample_rate_hertz(&self) -> std::option::Option<i32> {
        self.media_sample_rate_hertz
    }
    /// <p>Provides the media encoding you specified in your Call Analytics request.</p>
    pub fn media_encoding(&self) -> std::option::Option<&crate::model::MediaEncoding> {
        self.media_encoding.as_ref()
    }
    /// <p>Provides the name of the custom vocabulary that you specified in your Call Analytics request.</p>
    pub fn vocabulary_name(&self) -> std::option::Option<&str> {
        self.vocabulary_name.as_deref()
    }
    /// <p>Provides the identifier for your Call Analytics transcription session.</p>
    pub fn session_id(&self) -> std::option::Option<&str> {
        self.session_id.as_deref()
    }
    /// <p>Provides detailed information about your Call Analytics streaming session.</p>
    pub fn call_analytics_transcript_result_stream(
        &self,
    ) -> &aws_smithy_http::event_stream::Receiver<
        crate::model::CallAnalyticsTranscriptResultStream,
        crate::error::CallAnalyticsTranscriptResultStreamError,
    > {
        &self.call_analytics_transcript_result_stream
    }
    /// <p>Provides the name of the custom vocabulary filter that you specified in your Call Analytics request.</p>
    pub fn vocabulary_filter_name(&self) -> std::option::Option<&str> {
        self.vocabulary_filter_name.as_deref()
    }
    /// <p>Provides the vocabulary filtering method used in your Call Analytics transcription.</p>
    pub fn vocabulary_filter_method(
        &self,
    ) -> std::option::Option<&crate::model::VocabularyFilterMethod> {
        self.vocabulary_filter_method.as_ref()
    }
    /// <p>Provides the name of the custom language model that you specified in your Call Analytics request.</p>
    pub fn language_model_name(&self) -> std::option::Option<&str> {
        self.language_model_name.as_deref()
    }
    /// <p>Shows whether partial results stabilization was enabled for your Call Analytics transcription.</p>
    pub fn enable_partial_results_stabilization(&self) -> bool {
        self.enable_partial_results_stabilization
    }
    /// <p>Provides the stabilization level used for your transcription.</p>
    pub fn partial_results_stability(
        &self,
    ) -> std::option::Option<&crate::model::PartialResultsStability> {
        self.partial_results_stability.as_ref()
    }
    /// <p>Shows whether content identification was enabled for your Call Analytics transcription.</p>
    pub fn content_identification_type(
        &self,
    ) -> std::option::Option<&crate::model::ContentIdentificationType> {
        self.content_identification_type.as_ref()
    }
    /// <p>Shows whether content redaction was enabled for your Call Analytics transcription.</p>
    pub fn content_redaction_type(
        &self,
    ) -> std::option::Option<&crate::model::ContentRedactionType> {
        self.content_redaction_type.as_ref()
    }
    /// <p>Lists the PII entity types you specified in your Call Analytics request.</p>
    pub fn pii_entity_types(&self) -> std::option::Option<&str> {
        self.pii_entity_types.as_deref()
    }
}
/// See [`StartCallAnalyticsStreamTranscriptionOutput`](crate::output::StartCallAnalyticsStreamTranscriptionOutput).
pub mod start_call_analytics_stream_transcription_output {

    /// A builder for [`StartCallAnalyticsStreamTranscriptionOutput`](crate::output::StartCallAnalyticsStreamTranscriptionOutput).
    #[derive(std::default::Default, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) request_id: std::option::Option<std::string::String>,
        pub(crate) language_code: std::option::Option<crate::model::CallAnalyticsLanguageCode>,
        pub(crate) media_sample_rate_hertz: std::option::Option<i32>,
        pub(crate) media_encoding: std::option::Option<crate::model::MediaEncoding>,
        pub(crate) vocabulary_name: std::option::Option<std::string::String>,
        pub(crate) session_id: std::option::Option<std::string::String>,
        pub(crate) call_analytics_transcript_result_stream: std::option::Option<
            aws_smithy_http::event_stream::Receiver<
                crate::model::CallAnalyticsTranscriptResultStream,
                crate::error::CallAnalyticsTranscriptResultStreamError,
            >,
        >,
        pub(crate) vocabulary_filter_name: std::option::Option<std::string::String>,
        pub(crate) vocabulary_filter_method:
            std::option::Option<crate::model::VocabularyFilterMethod>,
        pub(crate) language_model_name: std::option::Option<std::string::String>,
        pub(crate) enable_partial_results_stabilization: std::option::Option<bool>,
        pub(crate) partial_results_stability:
            std::option::Option<crate::model::PartialResultsStability>,
        pub(crate) content_identification_type:
            std::option::Option<crate::model::ContentIdentificationType>,
        pub(crate) content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
        pub(crate) pii_entity_types: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>Provides the identifier for your Call Analytics streaming request.</p>
        pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.request_id = Some(input.into());
            self
        }
        /// <p>Provides the identifier for your Call Analytics streaming request.</p>
        pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.request_id = input;
            self
        }
        /// <p>Provides the language code that you specified in your Call Analytics request.</p>
        pub fn language_code(mut self, input: crate::model::CallAnalyticsLanguageCode) -> Self {
            self.language_code = Some(input);
            self
        }
        /// <p>Provides the language code that you specified in your Call Analytics request.</p>
        pub fn set_language_code(
            mut self,
            input: std::option::Option<crate::model::CallAnalyticsLanguageCode>,
        ) -> Self {
            self.language_code = input;
            self
        }
        /// <p>Provides the sample rate that you specified in your Call Analytics request.</p>
        pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
            self.media_sample_rate_hertz = Some(input);
            self
        }
        /// <p>Provides the sample rate that you specified in your Call Analytics request.</p>
        pub fn set_media_sample_rate_hertz(mut self, input: std::option::Option<i32>) -> Self {
            self.media_sample_rate_hertz = input;
            self
        }
        /// <p>Provides the media encoding you specified in your Call Analytics request.</p>
        pub fn media_encoding(mut self, input: crate::model::MediaEncoding) -> Self {
            self.media_encoding = Some(input);
            self
        }
        /// <p>Provides the media encoding you specified in your Call Analytics request.</p>
        pub fn set_media_encoding(
            mut self,
            input: std::option::Option<crate::model::MediaEncoding>,
        ) -> Self {
            self.media_encoding = input;
            self
        }
        /// <p>Provides the name of the custom vocabulary that you specified in your Call Analytics request.</p>
        pub fn vocabulary_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom vocabulary that you specified in your Call Analytics request.</p>
        pub fn set_vocabulary_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_name = input;
            self
        }
        /// <p>Provides the identifier for your Call Analytics transcription session.</p>
        pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.session_id = Some(input.into());
            self
        }
        /// <p>Provides the identifier for your Call Analytics transcription session.</p>
        pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.session_id = input;
            self
        }
        /// <p>Provides detailed information about your Call Analytics streaming session.</p>
        pub fn call_analytics_transcript_result_stream(
            mut self,
            input: aws_smithy_http::event_stream::Receiver<
                crate::model::CallAnalyticsTranscriptResultStream,
                crate::error::CallAnalyticsTranscriptResultStreamError,
            >,
        ) -> Self {
            self.call_analytics_transcript_result_stream = Some(input);
            self
        }
        /// <p>Provides detailed information about your Call Analytics streaming session.</p>
        pub fn set_call_analytics_transcript_result_stream(
            mut self,
            input: std::option::Option<
                aws_smithy_http::event_stream::Receiver<
                    crate::model::CallAnalyticsTranscriptResultStream,
                    crate::error::CallAnalyticsTranscriptResultStreamError,
                >,
            >,
        ) -> Self {
            self.call_analytics_transcript_result_stream = input;
            self
        }
        /// <p>Provides the name of the custom vocabulary filter that you specified in your Call Analytics request.</p>
        pub fn vocabulary_filter_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.vocabulary_filter_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom vocabulary filter that you specified in your Call Analytics request.</p>
        pub fn set_vocabulary_filter_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.vocabulary_filter_name = input;
            self
        }
        /// <p>Provides the vocabulary filtering method used in your Call Analytics transcription.</p>
        pub fn vocabulary_filter_method(
            mut self,
            input: crate::model::VocabularyFilterMethod,
        ) -> Self {
            self.vocabulary_filter_method = Some(input);
            self
        }
        /// <p>Provides the vocabulary filtering method used in your Call Analytics transcription.</p>
        pub fn set_vocabulary_filter_method(
            mut self,
            input: std::option::Option<crate::model::VocabularyFilterMethod>,
        ) -> Self {
            self.vocabulary_filter_method = input;
            self
        }
        /// <p>Provides the name of the custom language model that you specified in your Call Analytics request.</p>
        pub fn language_model_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.language_model_name = Some(input.into());
            self
        }
        /// <p>Provides the name of the custom language model that you specified in your Call Analytics request.</p>
        pub fn set_language_model_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.language_model_name = input;
            self
        }
        /// <p>Shows whether partial results stabilization was enabled for your Call Analytics transcription.</p>
        pub fn enable_partial_results_stabilization(mut self, input: bool) -> Self {
            self.enable_partial_results_stabilization = Some(input);
            self
        }
        /// <p>Shows whether partial results stabilization was enabled for your Call Analytics transcription.</p>
        pub fn set_enable_partial_results_stabilization(
            mut self,
            input: std::option::Option<bool>,
        ) -> Self {
            self.enable_partial_results_stabilization = input;
            self
        }
        /// <p>Provides the stabilization level used for your transcription.</p>
        pub fn partial_results_stability(
            mut self,
            input: crate::model::PartialResultsStability,
        ) -> Self {
            self.partial_results_stability = Some(input);
            self
        }
        /// <p>Provides the stabilization level used for your transcription.</p>
        pub fn set_partial_results_stability(
            mut self,
            input: std::option::Option<crate::model::PartialResultsStability>,
        ) -> Self {
            self.partial_results_stability = input;
            self
        }
        /// <p>Shows whether content identification was enabled for your Call Analytics transcription.</p>
        pub fn content_identification_type(
            mut self,
            input: crate::model::ContentIdentificationType,
        ) -> Self {
            self.content_identification_type = Some(input);
            self
        }
        /// <p>Shows whether content identification was enabled for your Call Analytics transcription.</p>
        pub fn set_content_identification_type(
            mut self,
            input: std::option::Option<crate::model::ContentIdentificationType>,
        ) -> Self {
            self.content_identification_type = input;
            self
        }
        /// <p>Shows whether content redaction was enabled for your Call Analytics transcription.</p>
        pub fn content_redaction_type(mut self, input: crate::model::ContentRedactionType) -> Self {
            self.content_redaction_type = Some(input);
            self
        }
        /// <p>Shows whether content redaction was enabled for your Call Analytics transcription.</p>
        pub fn set_content_redaction_type(
            mut self,
            input: std::option::Option<crate::model::ContentRedactionType>,
        ) -> Self {
            self.content_redaction_type = input;
            self
        }
        /// <p>Lists the PII entity types you specified in your Call Analytics request.</p>
        pub fn pii_entity_types(mut self, input: impl Into<std::string::String>) -> Self {
            self.pii_entity_types = Some(input.into());
            self
        }
        /// <p>Lists the PII entity types you specified in your Call Analytics request.</p>
        pub fn set_pii_entity_types(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.pii_entity_types = input;
            self
        }
        /// Consumes the builder and constructs a [`StartCallAnalyticsStreamTranscriptionOutput`](crate::output::StartCallAnalyticsStreamTranscriptionOutput).
        pub fn build(
            self,
        ) -> Result<
            crate::output::StartCallAnalyticsStreamTranscriptionOutput,
            aws_smithy_http::operation::error::BuildError,
        > {
            Ok(
                crate::output::StartCallAnalyticsStreamTranscriptionOutput {
                    request_id: self.request_id
                    ,
                    language_code: self.language_code
                    ,
                    media_sample_rate_hertz: self.media_sample_rate_hertz
                    ,
                    media_encoding: self.media_encoding
                    ,
                    vocabulary_name: self.vocabulary_name
                    ,
                    session_id: self.session_id
                    ,
                    call_analytics_transcript_result_stream: self.call_analytics_transcript_result_stream
                        .ok_or_else(||
                            aws_smithy_http::operation::error::BuildError::missing_field("call_analytics_transcript_result_stream", "call_analytics_transcript_result_stream was not specified but it is required when building StartCallAnalyticsStreamTranscriptionOutput")
                        )?
                    ,
                    vocabulary_filter_name: self.vocabulary_filter_name
                    ,
                    vocabulary_filter_method: self.vocabulary_filter_method
                    ,
                    language_model_name: self.language_model_name
                    ,
                    enable_partial_results_stabilization: self.enable_partial_results_stabilization
                        .unwrap_or_default()
                    ,
                    partial_results_stability: self.partial_results_stability
                    ,
                    content_identification_type: self.content_identification_type
                    ,
                    content_redaction_type: self.content_redaction_type
                    ,
                    pii_entity_types: self.pii_entity_types
                    ,
                }
            )
        }
    }
}
impl StartCallAnalyticsStreamTranscriptionOutput {
    /// Creates a new builder-style object to manufacture [`StartCallAnalyticsStreamTranscriptionOutput`](crate::output::StartCallAnalyticsStreamTranscriptionOutput).
    pub fn builder() -> crate::output::start_call_analytics_stream_transcription_output::Builder {
        crate::output::start_call_analytics_stream_transcription_output::Builder::default()
    }
}