commonMain.aws.sdk.kotlin.services.transcribestreaming.model.ConfigurationEvent.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
/**
* Allows you to set audio channel definitions and post-call analytics settings.
*/
public class ConfigurationEvent private constructor(builder: Builder) {
/**
* Indicates which speaker is on which audio channel.
*/
public val channelDefinitions: List? = builder.channelDefinitions
/**
* Provides additional optional settings for your Call Analytics post-call request, including encryption and output locations for your redacted transcript.
*
* `PostCallAnalyticsSettings` provides you with the same insights as a Call Analytics post-call transcription. Refer to [Post-call analytics](https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) for more information on this feature.
*/
public val postCallAnalyticsSettings: aws.sdk.kotlin.services.transcribestreaming.model.PostCallAnalyticsSettings? = builder.postCallAnalyticsSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribestreaming.model.ConfigurationEvent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfigurationEvent(")
append("channelDefinitions=$channelDefinitions,")
append("postCallAnalyticsSettings=$postCallAnalyticsSettings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelDefinitions?.hashCode() ?: 0
result = 31 * result + (postCallAnalyticsSettings?.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 ConfigurationEvent
if (channelDefinitions != other.channelDefinitions) return false
if (postCallAnalyticsSettings != other.postCallAnalyticsSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.ConfigurationEvent = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates which speaker is on which audio channel.
*/
public var channelDefinitions: List? = null
/**
* Provides additional optional settings for your Call Analytics post-call request, including encryption and output locations for your redacted transcript.
*
* `PostCallAnalyticsSettings` provides you with the same insights as a Call Analytics post-call transcription. Refer to [Post-call analytics](https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) for more information on this feature.
*/
public var postCallAnalyticsSettings: aws.sdk.kotlin.services.transcribestreaming.model.PostCallAnalyticsSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.ConfigurationEvent) : this() {
this.channelDefinitions = x.channelDefinitions
this.postCallAnalyticsSettings = x.postCallAnalyticsSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribestreaming.model.ConfigurationEvent = ConfigurationEvent(this)
/**
* construct an [aws.sdk.kotlin.services.transcribestreaming.model.PostCallAnalyticsSettings] inside the given [block]
*/
public fun postCallAnalyticsSettings(block: aws.sdk.kotlin.services.transcribestreaming.model.PostCallAnalyticsSettings.Builder.() -> kotlin.Unit) {
this.postCallAnalyticsSettings = aws.sdk.kotlin.services.transcribestreaming.model.PostCallAnalyticsSettings.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy