
commonMain.aws.sdk.kotlin.services.comprehendmedical.model.SnomedctConcept.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehendmedical.model
/**
* The SNOMED-CT concepts that the entity could refer to, along with a score indicating the likelihood of the match.
*/
public class SnomedctConcept private constructor(builder: Builder) {
/**
* The numeric ID for the SNOMED-CT concept.
*/
public val code: kotlin.String? = builder.code
/**
* The description of the SNOMED-CT concept.
*/
public val description: kotlin.String? = builder.description
/**
* The level of confidence Amazon Comprehend Medical has that the entity should be linked to the identified SNOMED-CT concept.
*/
public val score: kotlin.Float? = builder.score
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehendmedical.model.SnomedctConcept = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SnomedctConcept(")
append("code=$code,")
append("description=$description,")
append("score=$score")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = code?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (score?.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 SnomedctConcept
if (code != other.code) return false
if (description != other.description) return false
if (score != other.score) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehendmedical.model.SnomedctConcept = Builder(this).apply(block).build()
public class Builder {
/**
* The numeric ID for the SNOMED-CT concept.
*/
public var code: kotlin.String? = null
/**
* The description of the SNOMED-CT concept.
*/
public var description: kotlin.String? = null
/**
* The level of confidence Amazon Comprehend Medical has that the entity should be linked to the identified SNOMED-CT concept.
*/
public var score: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.SnomedctConcept) : this() {
this.code = x.code
this.description = x.description
this.score = x.score
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehendmedical.model.SnomedctConcept = SnomedctConcept(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy