commonMain.aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connectcontactlens-jvm Show documentation
Show all versions of connectcontactlens-jvm Show documentation
The AWS SDK for Kotlin client for Connect Contact Lens
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcontactlens.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* For characters that were detected as issues, where they occur in the transcript.
*/
public class CharacterOffsets private constructor(builder: Builder) {
/**
* The beginning of the issue.
*/
public val beginOffsetChar: kotlin.Int? = builder.beginOffsetChar
/**
* The end of the issue.
*/
public val endOffsetChar: kotlin.Int? = builder.endOffsetChar
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CharacterOffsets(")
append("beginOffsetChar=$beginOffsetChar,")
append("endOffsetChar=$endOffsetChar")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = beginOffsetChar ?: 0
result = 31 * result + (endOffsetChar ?: 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 (beginOffsetChar != other.beginOffsetChar) return false
if (endOffsetChar != other.endOffsetChar) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The beginning of the issue.
*/
public var beginOffsetChar: kotlin.Int? = null
/**
* The end of the issue.
*/
public var endOffsetChar: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets) : this() {
this.beginOffsetChar = x.beginOffsetChar
this.endOffsetChar = x.endOffsetChar
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets = CharacterOffsets(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy