All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptResultStream.kt Maven / Gradle / Ivy

There is a newer version: 1.3.100
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.transcribestreaming.model



/**
 * Contains detailed information about your streaming session.
 */
public sealed class MedicalTranscriptResultStream {
    /**
     * The `MedicalTranscriptEvent` associated with a `MedicalTranscriptResultStream`.
     *
     * Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.
     */
    public data class TranscriptEvent(val value: aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptEvent) : aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptResultStream() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptResultStream() {
    }

    /**
     * Casts this [MedicalTranscriptResultStream] as a [TranscriptEvent] and retrieves its [aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptEvent] value. Throws an exception if the [MedicalTranscriptResultStream] is not a
     * [TranscriptEvent].
     */
    public fun asTranscriptEvent(): aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptEvent = (this as MedicalTranscriptResultStream.TranscriptEvent).value

    /**
     * Casts this [MedicalTranscriptResultStream] as a [TranscriptEvent] and retrieves its [aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptEvent] value. Returns null if the [MedicalTranscriptResultStream] is not a [TranscriptEvent].
     */
    public fun asTranscriptEventOrNull(): aws.sdk.kotlin.services.transcribestreaming.model.MedicalTranscriptEvent? = (this as? MedicalTranscriptResultStream.TranscriptEvent)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy