commonMain.aws.sdk.kotlin.services.connectcontactlens.model.IssueDetected.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcontactlens.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Potential issues that are detected based on an artificial intelligence analysis of each turn in the conversation.
*/
public class IssueDetected private constructor(builder: Builder) {
/**
* The offset for when the issue was detected in the segment.
*/
public val characterOffsets: aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets? = builder.characterOffsets
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcontactlens.model.IssueDetected = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IssueDetected(")
append("characterOffsets=$characterOffsets")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = characterOffsets?.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 IssueDetected
if (characterOffsets != other.characterOffsets) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcontactlens.model.IssueDetected = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The offset for when the issue was detected in the segment.
*/
public var characterOffsets: aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcontactlens.model.IssueDetected) : this() {
this.characterOffsets = x.characterOffsets
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcontactlens.model.IssueDetected = IssueDetected(this)
/**
* construct an [aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets] inside the given [block]
*/
public fun characterOffsets(block: aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets.Builder.() -> kotlin.Unit) {
this.characterOffsets = aws.sdk.kotlin.services.connectcontactlens.model.CharacterOffsets.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy