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

commonMain.aws.sdk.kotlin.services.kendra.model.ThesaurusSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kendra.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * An array of summary information for a thesaurus or multiple thesauri.
 */
public class ThesaurusSummary private constructor(builder: Builder) {
    /**
     * The Unix timestamp when the thesaurus was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The identifier of the thesaurus.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The name of the thesaurus.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The status of the thesaurus.
     */
    public val status: aws.sdk.kotlin.services.kendra.model.ThesaurusStatus? = builder.status
    /**
     * The Unix timestamp when the thesaurus was last updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("ThesaurusSummary(")
        append("createdAt=$createdAt,")
        append("id=$id,")
        append("name=$name,")
        append("status=$status,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 ThesaurusSummary

        if (createdAt != other.createdAt) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (status != other.status) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    public class Builder {
        /**
         * The Unix timestamp when the thesaurus was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier of the thesaurus.
         */
        public var id: kotlin.String? = null
        /**
         * The name of the thesaurus.
         */
        public var name: kotlin.String? = null
        /**
         * The status of the thesaurus.
         */
        public var status: aws.sdk.kotlin.services.kendra.model.ThesaurusStatus? = null
        /**
         * The Unix timestamp when the thesaurus was last updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kendra.model.ThesaurusSummary) : this() {
            this.createdAt = x.createdAt
            this.id = x.id
            this.name = x.name
            this.status = x.status
            this.updatedAt = x.updatedAt
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy