
commonMain.aws.sdk.kotlin.services.rekognition.model.DatasetLabelStats.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* Statistics about a label used in a dataset. For more information, see DatasetLabelDescription.
*/
public class DatasetLabelStats private constructor(builder: Builder) {
/**
* The total number of images that have the label assigned to a bounding box.
*/
public val boundingBoxCount: kotlin.Int? = builder.boundingBoxCount
/**
* The total number of images that use the label.
*/
public val entryCount: kotlin.Int? = builder.entryCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DatasetLabelStats = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DatasetLabelStats(")
append("boundingBoxCount=$boundingBoxCount,")
append("entryCount=$entryCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = boundingBoxCount ?: 0
result = 31 * result + (entryCount ?: 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 DatasetLabelStats
if (boundingBoxCount != other.boundingBoxCount) return false
if (entryCount != other.entryCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DatasetLabelStats = Builder(this).apply(block).build()
public class Builder {
/**
* The total number of images that have the label assigned to a bounding box.
*/
public var boundingBoxCount: kotlin.Int? = null
/**
* The total number of images that use the label.
*/
public var entryCount: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DatasetLabelStats) : this() {
this.boundingBoxCount = x.boundingBoxCount
this.entryCount = x.entryCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DatasetLabelStats = DatasetLabelStats(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy