commonMain.aws.sdk.kotlin.services.transcribestreaming.model.MedicalEntity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transcribestreaming-jvm Show documentation
Show all versions of transcribestreaming-jvm Show documentation
The AWS SDK for Kotlin client for Transcribe Streaming
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribestreaming.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains entities identified as personal health information (PHI) in your transcription output, along with various associated attributes. Examples include category, confidence score, type, stability score, and start and end times.
*/
public class MedicalEntity private constructor(builder: Builder) {
/**
* The category of information identified. The only category is `PHI`.
*/
public val category: kotlin.String? = builder.category
/**
* The confidence score associated with the identified PHI entity in your audio.
*
* Confidence scores are values between 0 and 1. A larger value indicates a higher probability that the identified entity correctly matches the entity spoken in your media.
*/
public val confidence: kotlin.Double? = builder.confidence
/**
* The word or words identified as PHI.
*/
public val content: kotlin.String? = builder.content
/**
* The end time, in milliseconds, of the utterance that was identified as PHI.
*/
public val endTime: kotlin.Double = builder.endTime
/**
* The start time, in milliseconds, of the utterance that was identified as PHI.
*/
public val startTime: kotlin.Double = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribestreaming.model.MedicalEntity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MedicalEntity(")
append("category=$category,")
append("confidence=$confidence,")
append("content=$content,")
append("endTime=$endTime,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = category?.hashCode() ?: 0
result = 31 * result + (confidence?.hashCode() ?: 0)
result = 31 * result + (content?.hashCode() ?: 0)
result = 31 * result + (endTime.hashCode())
result = 31 * result + (startTime.hashCode())
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 MedicalEntity
if (category != other.category) return false
if (!(confidence?.equals(other.confidence) ?: (other.confidence == null))) return false
if (content != other.content) return false
if (!(endTime?.equals(other.endTime) ?: (other.endTime == null))) return false
if (!(startTime?.equals(other.startTime) ?: (other.startTime == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.MedicalEntity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The category of information identified. The only category is `PHI`.
*/
public var category: kotlin.String? = null
/**
* The confidence score associated with the identified PHI entity in your audio.
*
* Confidence scores are values between 0 and 1. A larger value indicates a higher probability that the identified entity correctly matches the entity spoken in your media.
*/
public var confidence: kotlin.Double? = null
/**
* The word or words identified as PHI.
*/
public var content: kotlin.String? = null
/**
* The end time, in milliseconds, of the utterance that was identified as PHI.
*/
public var endTime: kotlin.Double = 0.0
/**
* The start time, in milliseconds, of the utterance that was identified as PHI.
*/
public var startTime: kotlin.Double = 0.0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.MedicalEntity) : this() {
this.category = x.category
this.confidence = x.confidence
this.content = x.content
this.endTime = x.endTime
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribestreaming.model.MedicalEntity = MedicalEntity(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy