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