commonMain.aws.sdk.kotlin.services.connectcontactlens.model.RealtimeContactAnalysisSegment.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
/**
* An analyzed segment for a real-time analysis session.
*/
public class RealtimeContactAnalysisSegment private constructor(builder: Builder) {
/**
* The matched category rules.
*/
public val categories: aws.sdk.kotlin.services.connectcontactlens.model.Categories? = builder.categories
/**
* Information about the post-contact summary.
*/
public val postContactSummary: aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummary? = builder.postContactSummary
/**
* The analyzed transcript.
*/
public val transcript: aws.sdk.kotlin.services.connectcontactlens.model.Transcript? = builder.transcript
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcontactlens.model.RealtimeContactAnalysisSegment = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RealtimeContactAnalysisSegment(")
append("categories=$categories,")
append("postContactSummary=$postContactSummary,")
append("transcript=$transcript")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = categories?.hashCode() ?: 0
result = 31 * result + (postContactSummary?.hashCode() ?: 0)
result = 31 * result + (transcript?.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 RealtimeContactAnalysisSegment
if (categories != other.categories) return false
if (postContactSummary != other.postContactSummary) return false
if (transcript != other.transcript) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcontactlens.model.RealtimeContactAnalysisSegment = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The matched category rules.
*/
public var categories: aws.sdk.kotlin.services.connectcontactlens.model.Categories? = null
/**
* Information about the post-contact summary.
*/
public var postContactSummary: aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummary? = null
/**
* The analyzed transcript.
*/
public var transcript: aws.sdk.kotlin.services.connectcontactlens.model.Transcript? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcontactlens.model.RealtimeContactAnalysisSegment) : this() {
this.categories = x.categories
this.postContactSummary = x.postContactSummary
this.transcript = x.transcript
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcontactlens.model.RealtimeContactAnalysisSegment = RealtimeContactAnalysisSegment(this)
/**
* construct an [aws.sdk.kotlin.services.connectcontactlens.model.Categories] inside the given [block]
*/
public fun categories(block: aws.sdk.kotlin.services.connectcontactlens.model.Categories.Builder.() -> kotlin.Unit) {
this.categories = aws.sdk.kotlin.services.connectcontactlens.model.Categories.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummary] inside the given [block]
*/
public fun postContactSummary(block: aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummary.Builder.() -> kotlin.Unit) {
this.postContactSummary = aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummary.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.connectcontactlens.model.Transcript] inside the given [block]
*/
public fun transcript(block: aws.sdk.kotlin.services.connectcontactlens.model.Transcript.Builder.() -> kotlin.Unit) {
this.transcript = aws.sdk.kotlin.services.connectcontactlens.model.Transcript.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy