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

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

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

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



public class DescribeEntityRecognizerResponse private constructor(builder: Builder) {
    /**
     * Describes information associated with an entity recognizer.
     */
    public val entityRecognizerProperties: aws.sdk.kotlin.services.comprehend.model.EntityRecognizerProperties? = builder.entityRecognizerProperties

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

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

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

        if (entityRecognizerProperties != other.entityRecognizerProperties) return false

        return true
    }

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

    public class Builder {
        /**
         * Describes information associated with an entity recognizer.
         */
        public var entityRecognizerProperties: aws.sdk.kotlin.services.comprehend.model.EntityRecognizerProperties? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy