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

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

The 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 StartStreamTranscriptionResponse private constructor(builder: Builder) {
    /**
     * Shows whether content identification was enabled for your transcription.
     */
    public val contentIdentificationType: aws.sdk.kotlin.services.transcribestreaming.model.ContentIdentificationType? = builder.contentIdentificationType
    /**
     * Shows whether content redaction was enabled for your transcription.
     */
    public val contentRedactionType: aws.sdk.kotlin.services.transcribestreaming.model.ContentRedactionType? = builder.contentRedactionType
    /**
     * Shows whether channel identification was enabled for your transcription.
     */
    public val enableChannelIdentification: kotlin.Boolean = builder.enableChannelIdentification
    /**
     * Shows whether partial results stabilization was enabled for your transcription.
     */
    public val enablePartialResultsStabilization: kotlin.Boolean = builder.enablePartialResultsStabilization
    /**
     * Shows whether automatic language identification was enabled for your transcription.
     */
    public val identifyLanguage: kotlin.Boolean = builder.identifyLanguage
    /**
     * Shows whether automatic multi-language identification was enabled for your transcription.
     */
    public val identifyMultipleLanguages: kotlin.Boolean = builder.identifyMultipleLanguages
    /**
     * Provides the language code that you specified in your request.
     */
    public val languageCode: aws.sdk.kotlin.services.transcribestreaming.model.LanguageCode? = builder.languageCode
    /**
     * Provides the name of the custom language model that you specified in your request.
     */
    public val languageModelName: kotlin.String? = builder.languageModelName
    /**
     * Provides the language codes that you specified in your request.
     */
    public val languageOptions: kotlin.String? = builder.languageOptions
    /**
     * 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 stabilization level used for your transcription.
     */
    public val partialResultsStability: aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability? = builder.partialResultsStability
    /**
     * Lists the PII entity types you specified in your request.
     */
    public val piiEntityTypes: kotlin.String? = builder.piiEntityTypes
    /**
     * Provides the preferred language that you specified in your request.
     */
    public val preferredLanguage: aws.sdk.kotlin.services.transcribestreaming.model.LanguageCode? = builder.preferredLanguage
    /**
     * 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 detailed information about your streaming session.
     */
    public val transcriptResultStream: Flow? = builder.transcriptResultStream
    /**
     * Provides the vocabulary filtering method used in your transcription.
     */
    public val vocabularyFilterMethod: aws.sdk.kotlin.services.transcribestreaming.model.VocabularyFilterMethod? = builder.vocabularyFilterMethod
    /**
     * Provides the name of the custom vocabulary filter that you specified in your request.
     */
    public val vocabularyFilterName: kotlin.String? = builder.vocabularyFilterName
    /**
     * Provides the names of the custom vocabulary filters that you specified in your request.
     */
    public val vocabularyFilterNames: kotlin.String? = builder.vocabularyFilterNames
    /**
     * Provides the name of the custom vocabulary that you specified in your request.
     */
    public val vocabularyName: kotlin.String? = builder.vocabularyName
    /**
     * Provides the names of the custom vocabularies that you specified in your request.
     */
    public val vocabularyNames: kotlin.String? = builder.vocabularyNames

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

    override fun toString(): kotlin.String = buildString {
        append("StartStreamTranscriptionResponse(")
        append("contentIdentificationType=$contentIdentificationType,")
        append("contentRedactionType=$contentRedactionType,")
        append("enableChannelIdentification=$enableChannelIdentification,")
        append("enablePartialResultsStabilization=$enablePartialResultsStabilization,")
        append("identifyLanguage=$identifyLanguage,")
        append("identifyMultipleLanguages=$identifyMultipleLanguages,")
        append("languageCode=$languageCode,")
        append("languageModelName=$languageModelName,")
        append("languageOptions=$languageOptions,")
        append("mediaEncoding=$mediaEncoding,")
        append("mediaSampleRateHertz=$mediaSampleRateHertz,")
        append("numberOfChannels=$numberOfChannels,")
        append("partialResultsStability=$partialResultsStability,")
        append("piiEntityTypes=$piiEntityTypes,")
        append("preferredLanguage=$preferredLanguage,")
        append("requestId=$requestId,")
        append("sessionId=$sessionId,")
        append("showSpeakerLabel=$showSpeakerLabel,")
        append("transcriptResultStream=$transcriptResultStream,")
        append("vocabularyFilterMethod=$vocabularyFilterMethod,")
        append("vocabularyFilterName=$vocabularyFilterName,")
        append("vocabularyFilterNames=$vocabularyFilterNames,")
        append("vocabularyName=$vocabularyName,")
        append("vocabularyNames=$vocabularyNames")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contentIdentificationType?.hashCode() ?: 0
        result = 31 * result + (contentRedactionType?.hashCode() ?: 0)
        result = 31 * result + (enableChannelIdentification.hashCode())
        result = 31 * result + (enablePartialResultsStabilization.hashCode())
        result = 31 * result + (identifyLanguage.hashCode())
        result = 31 * result + (identifyMultipleLanguages.hashCode())
        result = 31 * result + (languageCode?.hashCode() ?: 0)
        result = 31 * result + (languageModelName?.hashCode() ?: 0)
        result = 31 * result + (languageOptions?.hashCode() ?: 0)
        result = 31 * result + (mediaEncoding?.hashCode() ?: 0)
        result = 31 * result + (mediaSampleRateHertz ?: 0)
        result = 31 * result + (numberOfChannels ?: 0)
        result = 31 * result + (partialResultsStability?.hashCode() ?: 0)
        result = 31 * result + (piiEntityTypes?.hashCode() ?: 0)
        result = 31 * result + (preferredLanguage?.hashCode() ?: 0)
        result = 31 * result + (requestId?.hashCode() ?: 0)
        result = 31 * result + (sessionId?.hashCode() ?: 0)
        result = 31 * result + (showSpeakerLabel.hashCode())
        result = 31 * result + (transcriptResultStream?.hashCode() ?: 0)
        result = 31 * result + (vocabularyFilterMethod?.hashCode() ?: 0)
        result = 31 * result + (vocabularyFilterName?.hashCode() ?: 0)
        result = 31 * result + (vocabularyFilterNames?.hashCode() ?: 0)
        result = 31 * result + (vocabularyName?.hashCode() ?: 0)
        result = 31 * result + (vocabularyNames?.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 StartStreamTranscriptionResponse

        if (contentIdentificationType != other.contentIdentificationType) return false
        if (contentRedactionType != other.contentRedactionType) return false
        if (enableChannelIdentification != other.enableChannelIdentification) return false
        if (enablePartialResultsStabilization != other.enablePartialResultsStabilization) return false
        if (identifyLanguage != other.identifyLanguage) return false
        if (identifyMultipleLanguages != other.identifyMultipleLanguages) return false
        if (languageCode != other.languageCode) return false
        if (languageModelName != other.languageModelName) return false
        if (languageOptions != other.languageOptions) return false
        if (mediaEncoding != other.mediaEncoding) return false
        if (mediaSampleRateHertz != other.mediaSampleRateHertz) return false
        if (numberOfChannels != other.numberOfChannels) return false
        if (partialResultsStability != other.partialResultsStability) return false
        if (piiEntityTypes != other.piiEntityTypes) return false
        if (preferredLanguage != other.preferredLanguage) return false
        if (requestId != other.requestId) return false
        if (sessionId != other.sessionId) return false
        if (showSpeakerLabel != other.showSpeakerLabel) return false
        if (transcriptResultStream != other.transcriptResultStream) return false
        if (vocabularyFilterMethod != other.vocabularyFilterMethod) return false
        if (vocabularyFilterName != other.vocabularyFilterName) return false
        if (vocabularyFilterNames != other.vocabularyFilterNames) return false
        if (vocabularyName != other.vocabularyName) return false
        if (vocabularyNames != other.vocabularyNames) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.StartStreamTranscriptionResponse = 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.ContentIdentificationType? = null
        /**
         * Shows whether content redaction was enabled for your transcription.
         */
        public var contentRedactionType: aws.sdk.kotlin.services.transcribestreaming.model.ContentRedactionType? = null
        /**
         * Shows whether channel identification was enabled for your transcription.
         */
        public var enableChannelIdentification: kotlin.Boolean = false
        /**
         * Shows whether partial results stabilization was enabled for your transcription.
         */
        public var enablePartialResultsStabilization: kotlin.Boolean = false
        /**
         * Shows whether automatic language identification was enabled for your transcription.
         */
        public var identifyLanguage: kotlin.Boolean = false
        /**
         * Shows whether automatic multi-language identification was enabled for your transcription.
         */
        public var identifyMultipleLanguages: kotlin.Boolean = false
        /**
         * Provides the language code that you specified in your request.
         */
        public var languageCode: aws.sdk.kotlin.services.transcribestreaming.model.LanguageCode? = null
        /**
         * Provides the name of the custom language model that you specified in your request.
         */
        public var languageModelName: kotlin.String? = null
        /**
         * Provides the language codes that you specified in your request.
         */
        public var languageOptions: kotlin.String? = 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 stabilization level used for your transcription.
         */
        public var partialResultsStability: aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability? = null
        /**
         * Lists the PII entity types you specified in your request.
         */
        public var piiEntityTypes: kotlin.String? = null
        /**
         * Provides the preferred language that you specified in your request.
         */
        public var preferredLanguage: aws.sdk.kotlin.services.transcribestreaming.model.LanguageCode? = 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 detailed information about your streaming session.
         */
        public var transcriptResultStream: Flow? = null
        /**
         * Provides the vocabulary filtering method used in your transcription.
         */
        public var vocabularyFilterMethod: aws.sdk.kotlin.services.transcribestreaming.model.VocabularyFilterMethod? = null
        /**
         * Provides the name of the custom vocabulary filter that you specified in your request.
         */
        public var vocabularyFilterName: kotlin.String? = null
        /**
         * Provides the names of the custom vocabulary filters that you specified in your request.
         */
        public var vocabularyFilterNames: kotlin.String? = null
        /**
         * Provides the name of the custom vocabulary that you specified in your request.
         */
        public var vocabularyName: kotlin.String? = null
        /**
         * Provides the names of the custom vocabularies that you specified in your request.
         */
        public var vocabularyNames: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.StartStreamTranscriptionResponse) : this() {
            this.contentIdentificationType = x.contentIdentificationType
            this.contentRedactionType = x.contentRedactionType
            this.enableChannelIdentification = x.enableChannelIdentification
            this.enablePartialResultsStabilization = x.enablePartialResultsStabilization
            this.identifyLanguage = x.identifyLanguage
            this.identifyMultipleLanguages = x.identifyMultipleLanguages
            this.languageCode = x.languageCode
            this.languageModelName = x.languageModelName
            this.languageOptions = x.languageOptions
            this.mediaEncoding = x.mediaEncoding
            this.mediaSampleRateHertz = x.mediaSampleRateHertz
            this.numberOfChannels = x.numberOfChannels
            this.partialResultsStability = x.partialResultsStability
            this.piiEntityTypes = x.piiEntityTypes
            this.preferredLanguage = x.preferredLanguage
            this.requestId = x.requestId
            this.sessionId = x.sessionId
            this.showSpeakerLabel = x.showSpeakerLabel
            this.transcriptResultStream = x.transcriptResultStream
            this.vocabularyFilterMethod = x.vocabularyFilterMethod
            this.vocabularyFilterName = x.vocabularyFilterName
            this.vocabularyFilterNames = x.vocabularyFilterNames
            this.vocabularyName = x.vocabularyName
            this.vocabularyNames = x.vocabularyNames
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy