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

commonMain.aws.sdk.kotlin.services.comprehend.model.DescribeDominantLanguageDetectionJobResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.comprehend.model



public class DescribeDominantLanguageDetectionJobResponse private constructor(builder: Builder) {
    /**
     * An object that contains the properties associated with a dominant language detection job.
     */
    public val dominantLanguageDetectionJobProperties: aws.sdk.kotlin.services.comprehend.model.DominantLanguageDetectionJobProperties? = builder.dominantLanguageDetectionJobProperties

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

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

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

        if (dominantLanguageDetectionJobProperties != other.dominantLanguageDetectionJobProperties) return false

        return true
    }

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

    public class Builder {
        /**
         * An object that contains the properties associated with a dominant language detection job.
         */
        public var dominantLanguageDetectionJobProperties: aws.sdk.kotlin.services.comprehend.model.DominantLanguageDetectionJobProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehend.model.DescribeDominantLanguageDetectionJobResponse) : this() {
            this.dominantLanguageDetectionJobProperties = x.dominantLanguageDetectionJobProperties
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.comprehend.model.DominantLanguageDetectionJobProperties] inside the given [block]
         */
        public fun dominantLanguageDetectionJobProperties(block: aws.sdk.kotlin.services.comprehend.model.DominantLanguageDetectionJobProperties.Builder.() -> kotlin.Unit) {
            this.dominantLanguageDetectionJobProperties = aws.sdk.kotlin.services.comprehend.model.DominantLanguageDetectionJobProperties.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy