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

commonMain.aws.sdk.kotlin.services.rekognition.model.DatasetStats.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rekognition.model



/**
 * Provides statistics about a dataset. For more information, see DescribeDataset.
 */
public class DatasetStats private constructor(builder: Builder) {
    /**
     * The total number of entries that contain at least one error.
     */
    public val errorEntries: kotlin.Int? = builder.errorEntries
    /**
     * The total number of images in the dataset that have labels.
     */
    public val labeledEntries: kotlin.Int? = builder.labeledEntries
    /**
     * The total number of images in the dataset.
     */
    public val totalEntries: kotlin.Int? = builder.totalEntries
    /**
     * The total number of labels declared in the dataset.
     */
    public val totalLabels: kotlin.Int? = builder.totalLabels

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

    override fun toString(): kotlin.String = buildString {
        append("DatasetStats(")
        append("errorEntries=$errorEntries,")
        append("labeledEntries=$labeledEntries,")
        append("totalEntries=$totalEntries,")
        append("totalLabels=$totalLabels")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = errorEntries ?: 0
        result = 31 * result + (labeledEntries ?: 0)
        result = 31 * result + (totalEntries ?: 0)
        result = 31 * result + (totalLabels ?: 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 DatasetStats

        if (errorEntries != other.errorEntries) return false
        if (labeledEntries != other.labeledEntries) return false
        if (totalEntries != other.totalEntries) return false
        if (totalLabels != other.totalLabels) return false

        return true
    }

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

    public class Builder {
        /**
         * The total number of entries that contain at least one error.
         */
        public var errorEntries: kotlin.Int? = null
        /**
         * The total number of images in the dataset that have labels.
         */
        public var labeledEntries: kotlin.Int? = null
        /**
         * The total number of images in the dataset.
         */
        public var totalEntries: kotlin.Int? = null
        /**
         * The total number of labels declared in the dataset.
         */
        public var totalLabels: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DatasetStats) : this() {
            this.errorEntries = x.errorEntries
            this.labeledEntries = x.labeledEntries
            this.totalEntries = x.totalEntries
            this.totalLabels = x.totalLabels
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy