commonMain.aws.sdk.kotlin.services.transcribestreaming.model.MedicalAlternative.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
/**
* A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of `Items`, `Entities`, or `Transcript`.
*/
public class MedicalAlternative private constructor(builder: Builder) {
/**
* Contains entities identified as personal health information (PHI) in your transcription output.
*/
public val entities: List? = builder.entities
/**
* Contains words, phrases, or punctuation marks in your transcription output.
*/
public val items: List? = builder.items
/**
* Contains transcribed text.
*/
public val transcript: kotlin.String? = builder.transcript
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribestreaming.model.MedicalAlternative = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MedicalAlternative(")
append("entities=$entities,")
append("items=$items,")
append("transcript=$transcript")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entities?.hashCode() ?: 0
result = 31 * result + (items?.hashCode() ?: 0)
result = 31 * result + (transcript?.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 MedicalAlternative
if (entities != other.entities) return false
if (items != other.items) return false
if (transcript != other.transcript) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.MedicalAlternative = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains entities identified as personal health information (PHI) in your transcription output.
*/
public var entities: List? = null
/**
* Contains words, phrases, or punctuation marks in your transcription output.
*/
public var items: List? = null
/**
* Contains transcribed text.
*/
public var transcript: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.MedicalAlternative) : this() {
this.entities = x.entities
this.items = x.items
this.transcript = x.transcript
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribestreaming.model.MedicalAlternative = MedicalAlternative(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy