
commonMain.aws.sdk.kotlin.services.comprehendmedical.model.SnomedctDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehendmedical.model
/**
* The information about the revision of the SNOMED-CT ontology in the response. Specifically, the details include the SNOMED-CT edition, language, and version date.
*/
public class SnomedctDetails private constructor(builder: Builder) {
/**
* The edition of SNOMED-CT used. The edition used for the InferSNOMEDCT editions is the US edition.
*/
public val edition: kotlin.String? = builder.edition
/**
* The language used in the SNOMED-CT ontology. All Amazon Comprehend Medical operations are US English (en).
*/
public val language: kotlin.String? = builder.language
/**
* The version date of the SNOMED-CT ontology used.
*/
public val versionDate: kotlin.String? = builder.versionDate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehendmedical.model.SnomedctDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SnomedctDetails(")
append("edition=$edition,")
append("language=$language,")
append("versionDate=$versionDate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = edition?.hashCode() ?: 0
result = 31 * result + (language?.hashCode() ?: 0)
result = 31 * result + (versionDate?.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 SnomedctDetails
if (edition != other.edition) return false
if (language != other.language) return false
if (versionDate != other.versionDate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehendmedical.model.SnomedctDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The edition of SNOMED-CT used. The edition used for the InferSNOMEDCT editions is the US edition.
*/
public var edition: kotlin.String? = null
/**
* The language used in the SNOMED-CT ontology. All Amazon Comprehend Medical operations are US English (en).
*/
public var language: kotlin.String? = null
/**
* The version date of the SNOMED-CT ontology used.
*/
public var versionDate: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.SnomedctDetails) : this() {
this.edition = x.edition
this.language = x.language
this.versionDate = x.versionDate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehendmedical.model.SnomedctDetails = SnomedctDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy