commonMain.aws.sdk.kotlin.services.connectcontactlens.model.PointOfInterest.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
/**
* The section of the contact audio where that category rule was detected.
*/
public class PointOfInterest private constructor(builder: Builder) {
/**
* The beginning offset in milliseconds where the category rule was detected.
*/
public val beginOffsetMillis: kotlin.Int? = builder.beginOffsetMillis
/**
* The ending offset in milliseconds where the category rule was detected.
*/
public val endOffsetMillis: kotlin.Int? = builder.endOffsetMillis
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcontactlens.model.PointOfInterest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PointOfInterest(")
append("beginOffsetMillis=$beginOffsetMillis,")
append("endOffsetMillis=$endOffsetMillis")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = beginOffsetMillis ?: 0
result = 31 * result + (endOffsetMillis ?: 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 PointOfInterest
if (beginOffsetMillis != other.beginOffsetMillis) return false
if (endOffsetMillis != other.endOffsetMillis) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcontactlens.model.PointOfInterest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The beginning offset in milliseconds where the category rule was detected.
*/
public var beginOffsetMillis: kotlin.Int? = null
/**
* The ending offset in milliseconds where the category rule was detected.
*/
public var endOffsetMillis: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcontactlens.model.PointOfInterest) : this() {
this.beginOffsetMillis = x.beginOffsetMillis
this.endOffsetMillis = x.endOffsetMillis
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcontactlens.model.PointOfInterest = PointOfInterest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy