
commonMain.aws.sdk.kotlin.services.comprehend.model.EntityRecognitionConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
/**
* Configuration required for an entity recognition model.
*/
public class EntityRecognitionConfig private constructor(builder: Builder) {
/**
* Up to 25 entity types that the model is trained to recognize.
*/
public val entityTypes: List? = builder.entityTypes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.EntityRecognitionConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EntityRecognitionConfig(")
append("entityTypes=$entityTypes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entityTypes?.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 EntityRecognitionConfig
if (entityTypes != other.entityTypes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.EntityRecognitionConfig = Builder(this).apply(block).build()
public class Builder {
/**
* Up to 25 entity types that the model is trained to recognize.
*/
public var entityTypes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.EntityRecognitionConfig) : this() {
this.entityTypes = x.entityTypes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.EntityRecognitionConfig = EntityRecognitionConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy