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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



class GetCallAnalyticsJobResponse private constructor(builder: BuilderImpl) {
    /**
     * An object that contains the results of your call analytics job.
     */
    val callAnalyticsJob: CallAnalyticsJob? = builder.callAnalyticsJob

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

        internal fun builder(): DslBuilder = BuilderImpl()

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

    }

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

    override fun hashCode(): kotlin.Int {
        var result = callAnalyticsJob?.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 GetCallAnalyticsJobResponse

        if (callAnalyticsJob != other.callAnalyticsJob) return false

        return true
    }

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

    interface FluentBuilder {
        fun build(): GetCallAnalyticsJobResponse
        /**
         * An object that contains the results of your call analytics job.
         */
        fun callAnalyticsJob(callAnalyticsJob: CallAnalyticsJob): FluentBuilder
    }

    interface DslBuilder {
        /**
         * An object that contains the results of your call analytics job.
         */
        var callAnalyticsJob: CallAnalyticsJob?

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

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var callAnalyticsJob: CallAnalyticsJob? = null

        constructor(x: GetCallAnalyticsJobResponse) : this() {
            this.callAnalyticsJob = x.callAnalyticsJob
        }

        override fun build(): GetCallAnalyticsJobResponse = GetCallAnalyticsJobResponse(this)
        override fun callAnalyticsJob(callAnalyticsJob: CallAnalyticsJob): FluentBuilder = apply { this.callAnalyticsJob = callAnalyticsJob }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy