
commonMain.aws.sdk.kotlin.services.rekognition.model.ConnectedHomeSettingsForUpdate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* The label detection settings you want to use in your stream processor. This includes the labels you want the stream processor to detect and the minimum confidence level allowed to label objects.
*/
public class ConnectedHomeSettingsForUpdate private constructor(builder: Builder) {
/**
* Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
*/
public val labels: List? = builder.labels
/**
* The minimum confidence required to label an object in the video.
*/
public val minConfidence: kotlin.Float? = builder.minConfidence
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.ConnectedHomeSettingsForUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectedHomeSettingsForUpdate(")
append("labels=$labels,")
append("minConfidence=$minConfidence")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = labels?.hashCode() ?: 0
result = 31 * result + (minConfidence?.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 ConnectedHomeSettingsForUpdate
if (labels != other.labels) return false
if (minConfidence != other.minConfidence) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.ConnectedHomeSettingsForUpdate = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
*/
public var labels: List? = null
/**
* The minimum confidence required to label an object in the video.
*/
public var minConfidence: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.ConnectedHomeSettingsForUpdate) : this() {
this.labels = x.labels
this.minConfidence = x.minConfidence
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.ConnectedHomeSettingsForUpdate = ConnectedHomeSettingsForUpdate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy