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

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

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

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



class GetMedicalTranscriptionJobResponse private constructor(builder: BuilderImpl) {
    /**
     * An object that contains the results of the medical transcription job.
     */
    val medicalTranscriptionJob: MedicalTranscriptionJob? = builder.medicalTranscriptionJob

    companion object {
        @JvmStatic
        fun fluentBuilder(): FluentBuilder = BuilderImpl()

        internal fun builder(): DslBuilder = BuilderImpl()

        operator fun invoke(block: DslBuilder.() -> kotlin.Unit): GetMedicalTranscriptionJobResponse = BuilderImpl().apply(block).build()

    }

    override fun toString(): kotlin.String = buildString {
        append("GetMedicalTranscriptionJobResponse(")
        append("medicalTranscriptionJob=$medicalTranscriptionJob)")
    }

    override fun hashCode(): kotlin.Int {
        var result = medicalTranscriptionJob?.hashCode() ?: 0
        return result
    }

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

        other as GetMedicalTranscriptionJobResponse

        if (medicalTranscriptionJob != other.medicalTranscriptionJob) return false

        return true
    }

    fun copy(block: DslBuilder.() -> kotlin.Unit = {}): GetMedicalTranscriptionJobResponse = BuilderImpl(this).apply(block).build()

    interface FluentBuilder {
        fun build(): GetMedicalTranscriptionJobResponse
        /**
         * An object that contains the results of the medical transcription job.
         */
        fun medicalTranscriptionJob(medicalTranscriptionJob: MedicalTranscriptionJob): FluentBuilder
    }

    interface DslBuilder {
        /**
         * An object that contains the results of the medical transcription job.
         */
        var medicalTranscriptionJob: MedicalTranscriptionJob?

        fun build(): GetMedicalTranscriptionJobResponse
        /**
         * construct an [aws.sdk.kotlin.services.transcribe.model.MedicalTranscriptionJob] inside the given [block]
         */
        fun medicalTranscriptionJob(block: MedicalTranscriptionJob.DslBuilder.() -> kotlin.Unit) {
            this.medicalTranscriptionJob = MedicalTranscriptionJob.invoke(block)
        }
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var medicalTranscriptionJob: MedicalTranscriptionJob? = null

        constructor(x: GetMedicalTranscriptionJobResponse) : this() {
            this.medicalTranscriptionJob = x.medicalTranscriptionJob
        }

        override fun build(): GetMedicalTranscriptionJobResponse = GetMedicalTranscriptionJobResponse(this)
        override fun medicalTranscriptionJob(medicalTranscriptionJob: MedicalTranscriptionJob): FluentBuilder = apply { this.medicalTranscriptionJob = medicalTranscriptionJob }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy