commonMain.aws.sdk.kotlin.services.transcribestreaming.model.CharacterOffsets.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
/**
* Provides the location, using character count, in your transcript where a match is identified. For example, the location of an issue or a category match within a segment.
*/
public class CharacterOffsets private constructor(builder: Builder) {
/**
* Provides the character count of the first character where a match is identified. For example, the first character associated with an issue or a category match in a segment transcript.
*/
public val begin: kotlin.Int? = builder.begin
/**
* Provides the character count of the last character where a match is identified. For example, the last character associated with an issue or a category match in a segment transcript.
*/
public val end: kotlin.Int? = builder.end
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribestreaming.model.CharacterOffsets = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CharacterOffsets(")
append("begin=$begin,")
append("end=$end")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = begin ?: 0
result = 31 * result + (end ?: 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 CharacterOffsets
if (begin != other.begin) return false
if (end != other.end) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.CharacterOffsets = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides the character count of the first character where a match is identified. For example, the first character associated with an issue or a category match in a segment transcript.
*/
public var begin: kotlin.Int? = null
/**
* Provides the character count of the last character where a match is identified. For example, the last character associated with an issue or a category match in a segment transcript.
*/
public var end: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.CharacterOffsets) : this() {
this.begin = x.begin
this.end = x.end
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribestreaming.model.CharacterOffsets = CharacterOffsets(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy