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

commonMain.aws.sdk.kotlin.services.transcribe.model.MedicalScribeChannelDefinition.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.transcribe.model



/**
 * Indicates which speaker is on which channel. The options are `CLINICIAN` and `PATIENT`
 */
public class MedicalScribeChannelDefinition private constructor(builder: Builder) {
    /**
     * Specify the audio channel you want to define.
     */
    public val channelId: kotlin.Int = builder.channelId
    /**
     * Specify the participant that you want to flag. The options are `CLINICIAN` and `PATIENT`
     */
    public val participantRole: aws.sdk.kotlin.services.transcribe.model.MedicalScribeParticipantRole = requireNotNull(builder.participantRole) { "A non-null value must be provided for participantRole" }

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

    override fun toString(): kotlin.String = buildString {
        append("MedicalScribeChannelDefinition(")
        append("channelId=$channelId,")
        append("participantRole=$participantRole")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channelId
        result = 31 * result + (participantRole.hashCode())
        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 MedicalScribeChannelDefinition

        if (channelId != other.channelId) return false
        if (participantRole != other.participantRole) return false

        return true
    }

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

    public class Builder {
        /**
         * Specify the audio channel you want to define.
         */
        public var channelId: kotlin.Int = 0
        /**
         * Specify the participant that you want to flag. The options are `CLINICIAN` and `PATIENT`
         */
        public var participantRole: aws.sdk.kotlin.services.transcribe.model.MedicalScribeParticipantRole? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transcribe.model.MedicalScribeChannelDefinition) : this() {
            this.channelId = x.channelId
            this.participantRole = x.participantRole
        }

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

        internal fun correctErrors(): Builder {
            if (participantRole == null) participantRole = MedicalScribeParticipantRole.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy