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

commonMain.aws.sdk.kotlin.services.lookoutvision.model.DatasetImageStats.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutvision.model



/**
 * Statistics about the images in a dataset.
 */
public class DatasetImageStats private constructor(builder: Builder) {
    /**
     * the total number of images labeled as an anomaly.
     */
    public val anomaly: kotlin.Int? = builder.anomaly
    /**
     * The total number of labeled images.
     */
    public val labeled: kotlin.Int? = builder.labeled
    /**
     * The total number of images labeled as normal.
     */
    public val normal: kotlin.Int? = builder.normal
    /**
     * The total number of images in the dataset.
     */
    public val total: kotlin.Int? = builder.total

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

    override fun toString(): kotlin.String = buildString {
        append("DatasetImageStats(")
        append("anomaly=$anomaly,")
        append("labeled=$labeled,")
        append("normal=$normal,")
        append("total=$total")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = anomaly ?: 0
        result = 31 * result + (labeled ?: 0)
        result = 31 * result + (normal ?: 0)
        result = 31 * result + (total ?: 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 DatasetImageStats

        if (anomaly != other.anomaly) return false
        if (labeled != other.labeled) return false
        if (normal != other.normal) return false
        if (total != other.total) return false

        return true
    }

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

    public class Builder {
        /**
         * the total number of images labeled as an anomaly.
         */
        public var anomaly: kotlin.Int? = null
        /**
         * The total number of labeled images.
         */
        public var labeled: kotlin.Int? = null
        /**
         * The total number of images labeled as normal.
         */
        public var normal: kotlin.Int? = null
        /**
         * The total number of images in the dataset.
         */
        public var total: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.DatasetImageStats) : this() {
            this.anomaly = x.anomaly
            this.labeled = x.labeled
            this.normal = x.normal
            this.total = x.total
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy