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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl
import kotlinx.coroutines.flow.Flow

public class StartMedicalStreamTranscriptionResponse private constructor(builder: Builder) {
    /**
     * Shows whether content identification was enabled for your transcription.
     */
    public val contentIdentificationType: aws.sdk.kotlin.services.transcribestreaming.model.MedicalContentIdentificationType? = builder.contentIdentificationType
    /**
     * Shows whether channel identification was enabled for your transcription.
     */
    public val enableChannelIdentification: kotlin.Boolean = builder.enableChannelIdentification
    /**
     * Provides the language code that you specified in your request. This must be `en-US`.
     */
    public val languageCode: aws.sdk.kotlin.services.transcribestreaming.model.LanguageCode? = builder.languageCode
    /**
     * Provides the media encoding you specified in your request.
     */
    public val mediaEncoding: aws.sdk.kotlin.services.transcribestreaming.model.MediaEncoding? = builder.mediaEncoding
    /**
     * Provides the sample rate that you specified in your request.
     */
    public val mediaSampleRateHertz: kotlin.Int? = builder.mediaSampleRateHertz
    /**
     * Provides the number of channels that you specified in your request.
     */
    public val numberOfChannels: kotlin.Int? = builder.numberOfChannels
    /**
     * Provides the identifier for your streaming request.
     */
    public val requestId: kotlin.String? = builder.requestId
    /**
     * Provides the identifier for your transcription session.
     */
    public val sessionId: kotlin.String? = builder.sessionId
    /**
     * Shows whether speaker partitioning was enabled for your transcription.
     */
    public val showSpeakerLabel: kotlin.Boolean = builder.showSpeakerLabel
    /**
     * Provides the medical specialty that you specified in your request.
     */
    public val specialty: aws.sdk.kotlin.services.transcribestreaming.model.Specialty? = builder.specialty
    /**
     * Provides detailed information about your streaming session.
     */
    public val transcriptResultStream: Flow? = builder.transcriptResultStream
    /**
     * Provides the type of audio you specified in your request.
     */
    public val type: aws.sdk.kotlin.services.transcribestreaming.model.Type? = builder.type
    /**
     * Provides the name of the custom vocabulary that you specified in your request.
     */
    public val vocabularyName: kotlin.String? = builder.vocabularyName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribestreaming.model.StartMedicalStreamTranscriptionResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("StartMedicalStreamTranscriptionResponse(")
        append("contentIdentificationType=$contentIdentificationType,")
        append("enableChannelIdentification=$enableChannelIdentification,")
        append("languageCode=$languageCode,")
        append("mediaEncoding=$mediaEncoding,")
        append("mediaSampleRateHertz=$mediaSampleRateHertz,")
        append("numberOfChannels=$numberOfChannels,")
        append("requestId=$requestId,")
        append("sessionId=$sessionId,")
        append("showSpeakerLabel=$showSpeakerLabel,")
        append("specialty=$specialty,")
        append("transcriptResultStream=$transcriptResultStream,")
        append("type=$type,")
        append("vocabularyName=$vocabularyName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contentIdentificationType?.hashCode() ?: 0
        result = 31 * result + (enableChannelIdentification.hashCode())
        result = 31 * result + (languageCode?.hashCode() ?: 0)
        result = 31 * result + (mediaEncoding?.hashCode() ?: 0)
        result = 31 * result + (mediaSampleRateHertz ?: 0)
        result = 31 * result + (numberOfChannels ?: 0)
        result = 31 * result + (requestId?.hashCode() ?: 0)
        result = 31 * result + (sessionId?.hashCode() ?: 0)
        result = 31 * result + (showSpeakerLabel.hashCode())
        result = 31 * result + (specialty?.hashCode() ?: 0)
        result = 31 * result + (transcriptResultStream?.hashCode() ?: 0)
        result = 31 * result + (type?.hashCode() ?: 0)
        result = 31 * result + (vocabularyName?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as StartMedicalStreamTranscriptionResponse

        if (contentIdentificationType != other.contentIdentificationType) return false
        if (enableChannelIdentification != other.enableChannelIdentification) return false
        if (languageCode != other.languageCode) return false
        if (mediaEncoding != other.mediaEncoding) return false
        if (mediaSampleRateHertz != other.mediaSampleRateHertz) return false
        if (numberOfChannels != other.numberOfChannels) return false
        if (requestId != other.requestId) return false
        if (sessionId != other.sessionId) return false
        if (showSpeakerLabel != other.showSpeakerLabel) return false
        if (specialty != other.specialty) return false
        if (transcriptResultStream != other.transcriptResultStream) return false
        if (type != other.type) return false
        if (vocabularyName != other.vocabularyName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.StartMedicalStreamTranscriptionResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Shows whether content identification was enabled for your transcription.
         */
        public var contentIdentificationType: aws.sdk.kotlin.services.transcribestreaming.model.MedicalContentIdentificationType? = null
        /**
         * Shows whether channel identification was enabled for your transcription.
         */
        public var enableChannelIdentification: kotlin.Boolean = false
        /**
         * Provides the language code that you specified in your request. This must be `en-US`.
         */
        public var languageCode: aws.sdk.kotlin.services.transcribestreaming.model.LanguageCode? = null
        /**
         * Provides the media encoding you specified in your request.
         */
        public var mediaEncoding: aws.sdk.kotlin.services.transcribestreaming.model.MediaEncoding? = null
        /**
         * Provides the sample rate that you specified in your request.
         */
        public var mediaSampleRateHertz: kotlin.Int? = null
        /**
         * Provides the number of channels that you specified in your request.
         */
        public var numberOfChannels: kotlin.Int? = null
        /**
         * Provides the identifier for your streaming request.
         */
        public var requestId: kotlin.String? = null
        /**
         * Provides the identifier for your transcription session.
         */
        public var sessionId: kotlin.String? = null
        /**
         * Shows whether speaker partitioning was enabled for your transcription.
         */
        public var showSpeakerLabel: kotlin.Boolean = false
        /**
         * Provides the medical specialty that you specified in your request.
         */
        public var specialty: aws.sdk.kotlin.services.transcribestreaming.model.Specialty? = null
        /**
         * Provides detailed information about your streaming session.
         */
        public var transcriptResultStream: Flow? = null
        /**
         * Provides the type of audio you specified in your request.
         */
        public var type: aws.sdk.kotlin.services.transcribestreaming.model.Type? = null
        /**
         * Provides the name of the custom vocabulary that you specified in your request.
         */
        public var vocabularyName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.StartMedicalStreamTranscriptionResponse) : this() {
            this.contentIdentificationType = x.contentIdentificationType
            this.enableChannelIdentification = x.enableChannelIdentification
            this.languageCode = x.languageCode
            this.mediaEncoding = x.mediaEncoding
            this.mediaSampleRateHertz = x.mediaSampleRateHertz
            this.numberOfChannels = x.numberOfChannels
            this.requestId = x.requestId
            this.sessionId = x.sessionId
            this.showSpeakerLabel = x.showSpeakerLabel
            this.specialty = x.specialty
            this.transcriptResultStream = x.transcriptResultStream
            this.type = x.type
            this.vocabularyName = x.vocabularyName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.transcribestreaming.model.StartMedicalStreamTranscriptionResponse = StartMedicalStreamTranscriptionResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy