
commonMain.aws.sdk.kotlin.services.rekognition.model.DetectCustomLabelsResponse.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
public class DetectCustomLabelsResponse private constructor(builder: Builder) {
/**
* An array of custom labels detected in the input image.
*/
public val customLabels: List? = builder.customLabels
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DetectCustomLabelsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectCustomLabelsResponse(")
append("customLabels=$customLabels")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = customLabels?.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 DetectCustomLabelsResponse
if (customLabels != other.customLabels) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DetectCustomLabelsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of custom labels detected in the input image.
*/
public var customLabels: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DetectCustomLabelsResponse) : this() {
this.customLabels = x.customLabels
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DetectCustomLabelsResponse = DetectCustomLabelsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy