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

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

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

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

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

/**
 * Describes information about a document classifier and its versions.
 */
public class DocumentClassifierSummary private constructor(builder: Builder) {
    /**
     * The name that you assigned the document classifier.
     */
    public val documentClassifierName: kotlin.String? = builder.documentClassifierName
    /**
     * The time that the latest document classifier version was submitted for processing.
     */
    public val latestVersionCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.latestVersionCreatedAt
    /**
     * The version name you assigned to the latest document classifier version.
     */
    public val latestVersionName: kotlin.String? = builder.latestVersionName
    /**
     * Provides the status of the latest document classifier version.
     */
    public val latestVersionStatus: aws.sdk.kotlin.services.comprehend.model.ModelStatus? = builder.latestVersionStatus
    /**
     * The number of versions you created.
     */
    public val numberOfVersions: kotlin.Int? = builder.numberOfVersions

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

    override fun toString(): kotlin.String = buildString {
        append("DocumentClassifierSummary(")
        append("documentClassifierName=$documentClassifierName,")
        append("latestVersionCreatedAt=$latestVersionCreatedAt,")
        append("latestVersionName=$latestVersionName,")
        append("latestVersionStatus=$latestVersionStatus,")
        append("numberOfVersions=$numberOfVersions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = documentClassifierName?.hashCode() ?: 0
        result = 31 * result + (latestVersionCreatedAt?.hashCode() ?: 0)
        result = 31 * result + (latestVersionName?.hashCode() ?: 0)
        result = 31 * result + (latestVersionStatus?.hashCode() ?: 0)
        result = 31 * result + (numberOfVersions ?: 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 DocumentClassifierSummary

        if (documentClassifierName != other.documentClassifierName) return false
        if (latestVersionCreatedAt != other.latestVersionCreatedAt) return false
        if (latestVersionName != other.latestVersionName) return false
        if (latestVersionStatus != other.latestVersionStatus) return false
        if (numberOfVersions != other.numberOfVersions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name that you assigned the document classifier.
         */
        public var documentClassifierName: kotlin.String? = null
        /**
         * The time that the latest document classifier version was submitted for processing.
         */
        public var latestVersionCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The version name you assigned to the latest document classifier version.
         */
        public var latestVersionName: kotlin.String? = null
        /**
         * Provides the status of the latest document classifier version.
         */
        public var latestVersionStatus: aws.sdk.kotlin.services.comprehend.model.ModelStatus? = null
        /**
         * The number of versions you created.
         */
        public var numberOfVersions: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehend.model.DocumentClassifierSummary) : this() {
            this.documentClassifierName = x.documentClassifierName
            this.latestVersionCreatedAt = x.latestVersionCreatedAt
            this.latestVersionName = x.latestVersionName
            this.latestVersionStatus = x.latestVersionStatus
            this.numberOfVersions = x.numberOfVersions
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy