
commonMain.aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentBodyPart.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a body part detected by DetectProtectiveEquipment that contains PPE. An array of `ProtectiveEquipmentBodyPart` objects is returned for each person detected by `DetectProtectiveEquipment`.
*/
public class ProtectiveEquipmentBodyPart private constructor(builder: Builder) {
/**
* The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
*/
public val confidence: kotlin.Float? = builder.confidence
/**
* An array of Personal Protective Equipment items detected around a body part.
*/
public val equipmentDetections: List? = builder.equipmentDetections
/**
* The detected body part.
*/
public val name: aws.sdk.kotlin.services.rekognition.model.BodyPart? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentBodyPart = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProtectiveEquipmentBodyPart(")
append("confidence=$confidence,")
append("equipmentDetections=$equipmentDetections,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = confidence?.hashCode() ?: 0
result = 31 * result + (equipmentDetections?.hashCode() ?: 0)
result = 31 * result + (name?.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 ProtectiveEquipmentBodyPart
if (!(confidence?.equals(other.confidence) ?: (other.confidence == null))) return false
if (equipmentDetections != other.equipmentDetections) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentBodyPart = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
*/
public var confidence: kotlin.Float? = null
/**
* An array of Personal Protective Equipment items detected around a body part.
*/
public var equipmentDetections: List? = null
/**
* The detected body part.
*/
public var name: aws.sdk.kotlin.services.rekognition.model.BodyPart? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentBodyPart) : this() {
this.confidence = x.confidence
this.equipmentDetections = x.equipmentDetections
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentBodyPart = ProtectiveEquipmentBodyPart(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy