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

commonMain.aws.sdk.kotlin.services.connectcontactlens.model.Transcript.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.connectcontactlens.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A list of messages in the session.
 */
public class Transcript private constructor(builder: Builder) {
    /**
     * The beginning offset in the contact for this transcript.
     */
    public val beginOffsetMillis: kotlin.Int? = builder.beginOffsetMillis
    /**
     * The content of the transcript.
     */
    public val content: kotlin.String? = builder.content
    /**
     * The end offset in the contact for this transcript.
     */
    public val endOffsetMillis: kotlin.Int? = builder.endOffsetMillis
    /**
     * The identifier of the transcript.
     */
    public val id: kotlin.String? = builder.id
    /**
     * List of positions where issues were detected on the transcript.
     */
    public val issuesDetected: List? = builder.issuesDetected
    /**
     * The identifier of the participant. Valid values are CUSTOMER or AGENT.
     */
    public val participantId: kotlin.String? = builder.participantId
    /**
     * The role of participant. For example, is it a customer, agent, or system.
     */
    public val participantRole: kotlin.String? = builder.participantRole
    /**
     * The sentiment detected for this piece of transcript.
     */
    public val sentiment: aws.sdk.kotlin.services.connectcontactlens.model.SentimentValue? = builder.sentiment

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

    override fun toString(): kotlin.String = buildString {
        append("Transcript(")
        append("beginOffsetMillis=$beginOffsetMillis,")
        append("content=$content,")
        append("endOffsetMillis=$endOffsetMillis,")
        append("id=$id,")
        append("issuesDetected=$issuesDetected,")
        append("participantId=$participantId,")
        append("participantRole=$participantRole,")
        append("sentiment=$sentiment")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = beginOffsetMillis ?: 0
        result = 31 * result + (content?.hashCode() ?: 0)
        result = 31 * result + (endOffsetMillis ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (issuesDetected?.hashCode() ?: 0)
        result = 31 * result + (participantId?.hashCode() ?: 0)
        result = 31 * result + (participantRole?.hashCode() ?: 0)
        result = 31 * result + (sentiment?.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 Transcript

        if (beginOffsetMillis != other.beginOffsetMillis) return false
        if (content != other.content) return false
        if (endOffsetMillis != other.endOffsetMillis) return false
        if (id != other.id) return false
        if (issuesDetected != other.issuesDetected) return false
        if (participantId != other.participantId) return false
        if (participantRole != other.participantRole) return false
        if (sentiment != other.sentiment) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The beginning offset in the contact for this transcript.
         */
        public var beginOffsetMillis: kotlin.Int? = null
        /**
         * The content of the transcript.
         */
        public var content: kotlin.String? = null
        /**
         * The end offset in the contact for this transcript.
         */
        public var endOffsetMillis: kotlin.Int? = null
        /**
         * The identifier of the transcript.
         */
        public var id: kotlin.String? = null
        /**
         * List of positions where issues were detected on the transcript.
         */
        public var issuesDetected: List? = null
        /**
         * The identifier of the participant. Valid values are CUSTOMER or AGENT.
         */
        public var participantId: kotlin.String? = null
        /**
         * The role of participant. For example, is it a customer, agent, or system.
         */
        public var participantRole: kotlin.String? = null
        /**
         * The sentiment detected for this piece of transcript.
         */
        public var sentiment: aws.sdk.kotlin.services.connectcontactlens.model.SentimentValue? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connectcontactlens.model.Transcript) : this() {
            this.beginOffsetMillis = x.beginOffsetMillis
            this.content = x.content
            this.endOffsetMillis = x.endOffsetMillis
            this.id = x.id
            this.issuesDetected = x.issuesDetected
            this.participantId = x.participantId
            this.participantRole = x.participantRole
            this.sentiment = x.sentiment
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy