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

commonMain.aws.sdk.kotlin.services.transcribestreaming.model.StartCallAnalyticsStreamTranscriptionResponse.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

import kotlinx.coroutines.flow.Flow

public class StartCallAnalyticsStreamTranscriptionResponse private constructor(builder: Builder) {
    /**
     * Provides detailed information about your Call Analytics streaming session.
     */
    public val callAnalyticsTranscriptResultStream: Flow? = builder.callAnalyticsTranscriptResultStream
    /**
     * Shows whether content identification was enabled for your Call Analytics transcription.
     */
    public val contentIdentificationType: aws.sdk.kotlin.services.transcribestreaming.model.ContentIdentificationType? = builder.contentIdentificationType
    /**
     * Shows whether content redaction was enabled for your Call Analytics transcription.
     */
    public val contentRedactionType: aws.sdk.kotlin.services.transcribestreaming.model.ContentRedactionType? = builder.contentRedactionType
    /**
     * Shows whether partial results stabilization was enabled for your Call Analytics transcription.
     */
    public val enablePartialResultsStabilization: kotlin.Boolean = builder.enablePartialResultsStabilization
    /**
     * Provides the language code that you specified in your Call Analytics request.
     */
    public val languageCode: aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsLanguageCode? = builder.languageCode
    /**
     * Provides the name of the custom language model that you specified in your Call Analytics request.
     */
    public val languageModelName: kotlin.String? = builder.languageModelName
    /**
     * Provides the media encoding you specified in your Call Analytics request.
     */
    public val mediaEncoding: aws.sdk.kotlin.services.transcribestreaming.model.MediaEncoding? = builder.mediaEncoding
    /**
     * Provides the sample rate that you specified in your Call Analytics request.
     */
    public val mediaSampleRateHertz: kotlin.Int? = builder.mediaSampleRateHertz
    /**
     * 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 Call Analytics request.
     */
    public val piiEntityTypes: kotlin.String? = builder.piiEntityTypes
    /**
     * Provides the identifier for your Call Analytics streaming request.
     */
    public val requestId: kotlin.String? = builder.requestId
    /**
     * Provides the identifier for your Call Analytics transcription session.
     */
    public val sessionId: kotlin.String? = builder.sessionId
    /**
     * Provides the vocabulary filtering method used in your Call Analytics 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 Call Analytics request.
     */
    public val vocabularyFilterName: kotlin.String? = builder.vocabularyFilterName
    /**
     * Provides the name of the custom vocabulary that you specified in your Call Analytics 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.StartCallAnalyticsStreamTranscriptionResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("StartCallAnalyticsStreamTranscriptionResponse(")
        append("callAnalyticsTranscriptResultStream=$callAnalyticsTranscriptResultStream,")
        append("contentIdentificationType=$contentIdentificationType,")
        append("contentRedactionType=$contentRedactionType,")
        append("enablePartialResultsStabilization=$enablePartialResultsStabilization,")
        append("languageCode=$languageCode,")
        append("languageModelName=$languageModelName,")
        append("mediaEncoding=$mediaEncoding,")
        append("mediaSampleRateHertz=$mediaSampleRateHertz,")
        append("partialResultsStability=$partialResultsStability,")
        append("piiEntityTypes=$piiEntityTypes,")
        append("requestId=$requestId,")
        append("sessionId=$sessionId,")
        append("vocabularyFilterMethod=$vocabularyFilterMethod,")
        append("vocabularyFilterName=$vocabularyFilterName,")
        append("vocabularyName=$vocabularyName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = callAnalyticsTranscriptResultStream?.hashCode() ?: 0
        result = 31 * result + (contentIdentificationType?.hashCode() ?: 0)
        result = 31 * result + (contentRedactionType?.hashCode() ?: 0)
        result = 31 * result + (enablePartialResultsStabilization.hashCode())
        result = 31 * result + (languageCode?.hashCode() ?: 0)
        result = 31 * result + (languageModelName?.hashCode() ?: 0)
        result = 31 * result + (mediaEncoding?.hashCode() ?: 0)
        result = 31 * result + (mediaSampleRateHertz ?: 0)
        result = 31 * result + (partialResultsStability?.hashCode() ?: 0)
        result = 31 * result + (piiEntityTypes?.hashCode() ?: 0)
        result = 31 * result + (requestId?.hashCode() ?: 0)
        result = 31 * result + (sessionId?.hashCode() ?: 0)
        result = 31 * result + (vocabularyFilterMethod?.hashCode() ?: 0)
        result = 31 * result + (vocabularyFilterName?.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 StartCallAnalyticsStreamTranscriptionResponse

        if (callAnalyticsTranscriptResultStream != other.callAnalyticsTranscriptResultStream) return false
        if (contentIdentificationType != other.contentIdentificationType) return false
        if (contentRedactionType != other.contentRedactionType) return false
        if (enablePartialResultsStabilization != other.enablePartialResultsStabilization) return false
        if (languageCode != other.languageCode) return false
        if (languageModelName != other.languageModelName) return false
        if (mediaEncoding != other.mediaEncoding) return false
        if (mediaSampleRateHertz != other.mediaSampleRateHertz) return false
        if (partialResultsStability != other.partialResultsStability) return false
        if (piiEntityTypes != other.piiEntityTypes) return false
        if (requestId != other.requestId) return false
        if (sessionId != other.sessionId) return false
        if (vocabularyFilterMethod != other.vocabularyFilterMethod) return false
        if (vocabularyFilterName != other.vocabularyFilterName) return false
        if (vocabularyName != other.vocabularyName) return false

        return true
    }

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

    public class Builder {
        /**
         * Provides detailed information about your Call Analytics streaming session.
         */
        public var callAnalyticsTranscriptResultStream: Flow? = null
        /**
         * Shows whether content identification was enabled for your Call Analytics transcription.
         */
        public var contentIdentificationType: aws.sdk.kotlin.services.transcribestreaming.model.ContentIdentificationType? = null
        /**
         * Shows whether content redaction was enabled for your Call Analytics transcription.
         */
        public var contentRedactionType: aws.sdk.kotlin.services.transcribestreaming.model.ContentRedactionType? = null
        /**
         * Shows whether partial results stabilization was enabled for your Call Analytics transcription.
         */
        public var enablePartialResultsStabilization: kotlin.Boolean = false
        /**
         * Provides the language code that you specified in your Call Analytics request.
         */
        public var languageCode: aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsLanguageCode? = null
        /**
         * Provides the name of the custom language model that you specified in your Call Analytics request.
         */
        public var languageModelName: kotlin.String? = null
        /**
         * Provides the media encoding you specified in your Call Analytics request.
         */
        public var mediaEncoding: aws.sdk.kotlin.services.transcribestreaming.model.MediaEncoding? = null
        /**
         * Provides the sample rate that you specified in your Call Analytics request.
         */
        public var mediaSampleRateHertz: 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 Call Analytics request.
         */
        public var piiEntityTypes: kotlin.String? = null
        /**
         * Provides the identifier for your Call Analytics streaming request.
         */
        public var requestId: kotlin.String? = null
        /**
         * Provides the identifier for your Call Analytics transcription session.
         */
        public var sessionId: kotlin.String? = null
        /**
         * Provides the vocabulary filtering method used in your Call Analytics 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 Call Analytics request.
         */
        public var vocabularyFilterName: kotlin.String? = null
        /**
         * Provides the name of the custom vocabulary that you specified in your Call Analytics request.
         */
        public var vocabularyName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.StartCallAnalyticsStreamTranscriptionResponse) : this() {
            this.callAnalyticsTranscriptResultStream = x.callAnalyticsTranscriptResultStream
            this.contentIdentificationType = x.contentIdentificationType
            this.contentRedactionType = x.contentRedactionType
            this.enablePartialResultsStabilization = x.enablePartialResultsStabilization
            this.languageCode = x.languageCode
            this.languageModelName = x.languageModelName
            this.mediaEncoding = x.mediaEncoding
            this.mediaSampleRateHertz = x.mediaSampleRateHertz
            this.partialResultsStability = x.partialResultsStability
            this.piiEntityTypes = x.piiEntityTypes
            this.requestId = x.requestId
            this.sessionId = x.sessionId
            this.vocabularyFilterMethod = x.vocabularyFilterMethod
            this.vocabularyFilterName = x.vocabularyFilterName
            this.vocabularyName = x.vocabularyName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy