
commonMain.aws.sdk.kotlin.services.medialive.model.AudioSilenceFailoverSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for AudioSilenceFailoverSettings
*/
public class AudioSilenceFailoverSettings private constructor(builder: Builder) {
/**
* The name of the audio selector in the input that MediaLive should monitor to detect silence. Select your most important rendition. If you didn't create an audio selector in this input, leave blank.
*/
public val audioSelectorName: kotlin.String? = builder.audioSelectorName
/**
* The amount of time (in milliseconds) that the active input must be silent before automatic input failover occurs. Silence is defined as audio loss or audio quieter than -50 dBFS.
*/
public val audioSilenceThresholdMsec: kotlin.Int = builder.audioSilenceThresholdMsec
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.AudioSilenceFailoverSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AudioSilenceFailoverSettings(")
append("audioSelectorName=$audioSelectorName,")
append("audioSilenceThresholdMsec=$audioSilenceThresholdMsec")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = audioSelectorName?.hashCode() ?: 0
result = 31 * result + (audioSilenceThresholdMsec)
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 AudioSilenceFailoverSettings
if (audioSelectorName != other.audioSelectorName) return false
if (audioSilenceThresholdMsec != other.audioSilenceThresholdMsec) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.AudioSilenceFailoverSettings = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the audio selector in the input that MediaLive should monitor to detect silence. Select your most important rendition. If you didn't create an audio selector in this input, leave blank.
*/
public var audioSelectorName: kotlin.String? = null
/**
* The amount of time (in milliseconds) that the active input must be silent before automatic input failover occurs. Silence is defined as audio loss or audio quieter than -50 dBFS.
*/
public var audioSilenceThresholdMsec: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.AudioSilenceFailoverSettings) : this() {
this.audioSelectorName = x.audioSelectorName
this.audioSilenceThresholdMsec = x.audioSilenceThresholdMsec
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.AudioSilenceFailoverSettings = AudioSilenceFailoverSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy