
commonMain.aws.sdk.kotlin.services.rekognition.model.DetectProtectiveEquipmentResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
public class DetectProtectiveEquipmentResponse private constructor(builder: Builder) {
/**
* An array of persons detected in the image (including persons not wearing PPE).
*/
public val persons: List? = builder.persons
/**
* The version number of the PPE detection model used to detect PPE in the image.
*/
public val protectiveEquipmentModelVersion: kotlin.String? = builder.protectiveEquipmentModelVersion
/**
* Summary information for the types of PPE specified in the `SummarizationAttributes` input parameter.
*/
public val summary: aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentSummary? = builder.summary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DetectProtectiveEquipmentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectProtectiveEquipmentResponse(")
append("persons=$persons,")
append("protectiveEquipmentModelVersion=$protectiveEquipmentModelVersion,")
append("summary=$summary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = persons?.hashCode() ?: 0
result = 31 * result + (protectiveEquipmentModelVersion?.hashCode() ?: 0)
result = 31 * result + (summary?.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 DetectProtectiveEquipmentResponse
if (persons != other.persons) return false
if (protectiveEquipmentModelVersion != other.protectiveEquipmentModelVersion) return false
if (summary != other.summary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DetectProtectiveEquipmentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* An array of persons detected in the image (including persons not wearing PPE).
*/
public var persons: List? = null
/**
* The version number of the PPE detection model used to detect PPE in the image.
*/
public var protectiveEquipmentModelVersion: kotlin.String? = null
/**
* Summary information for the types of PPE specified in the `SummarizationAttributes` input parameter.
*/
public var summary: aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentSummary? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DetectProtectiveEquipmentResponse) : this() {
this.persons = x.persons
this.protectiveEquipmentModelVersion = x.protectiveEquipmentModelVersion
this.summary = x.summary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DetectProtectiveEquipmentResponse = DetectProtectiveEquipmentResponse(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentSummary] inside the given [block]
*/
public fun summary(block: aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentSummary.Builder.() -> kotlin.Unit) {
this.summary = aws.sdk.kotlin.services.rekognition.model.ProtectiveEquipmentSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy