
commonMain.aws.sdk.kotlin.services.transcribe.model.LanguageCodeItem.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribe.model
/**
* Provides information on the speech contained in a discreet utterance when multi-language identification is enabled in your request. This utterance represents a block of speech consisting of one language, preceded or followed by a block of speech in a different language.
*/
public class LanguageCodeItem private constructor(builder: Builder) {
/**
* Provides the total time, in seconds, each identified language is spoken in your media.
*/
public val durationInSeconds: kotlin.Float? = builder.durationInSeconds
/**
* Provides the language code for each language identified in your media.
*/
public val languageCode: aws.sdk.kotlin.services.transcribe.model.LanguageCode? = builder.languageCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribe.model.LanguageCodeItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LanguageCodeItem(")
append("durationInSeconds=$durationInSeconds,")
append("languageCode=$languageCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = durationInSeconds?.hashCode() ?: 0
result = 31 * result + (languageCode?.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 LanguageCodeItem
if (durationInSeconds != other.durationInSeconds) return false
if (languageCode != other.languageCode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribe.model.LanguageCodeItem = Builder(this).apply(block).build()
public class Builder {
/**
* Provides the total time, in seconds, each identified language is spoken in your media.
*/
public var durationInSeconds: kotlin.Float? = null
/**
* Provides the language code for each language identified in your media.
*/
public var languageCode: aws.sdk.kotlin.services.transcribe.model.LanguageCode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribe.model.LanguageCodeItem) : this() {
this.durationInSeconds = x.durationInSeconds
this.languageCode = x.languageCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribe.model.LanguageCodeItem = LanguageCodeItem(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy