
commonMain.aws.sdk.kotlin.services.comprehendmedical.model.Characters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehendmedical.model
/**
* The number of characters in the input text to be analyzed.
*/
public class Characters private constructor(builder: Builder) {
/**
* The number of characters present in the input text document as processed by Amazon Comprehend Medical.
*/
public val originalTextCharacters: kotlin.Int? = builder.originalTextCharacters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehendmedical.model.Characters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Characters(")
append("originalTextCharacters=$originalTextCharacters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = originalTextCharacters ?: 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 Characters
if (originalTextCharacters != other.originalTextCharacters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehendmedical.model.Characters = Builder(this).apply(block).build()
public class Builder {
/**
* The number of characters present in the input text document as processed by Amazon Comprehend Medical.
*/
public var originalTextCharacters: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.Characters) : this() {
this.originalTextCharacters = x.originalTextCharacters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehendmedical.model.Characters = Characters(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy