All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.medialive.model.InputLossFailoverSettings.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.medialive.model



/**
 * MediaLive will perform a failover if content is not detected in this input for the specified period.
 */
public class InputLossFailoverSettings private constructor(builder: Builder) {
    /**
     * The amount of time (in milliseconds) that no input is detected. After that time, an input failover will occur.
     */
    public val inputLossThresholdMsec: kotlin.Int = builder.inputLossThresholdMsec

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputLossFailoverSettings = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("InputLossFailoverSettings(")
        append("inputLossThresholdMsec=$inputLossThresholdMsec")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inputLossThresholdMsec
        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 InputLossFailoverSettings

        if (inputLossThresholdMsec != other.inputLossThresholdMsec) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputLossFailoverSettings = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The amount of time (in milliseconds) that no input is detected. After that time, an input failover will occur.
         */
        public var inputLossThresholdMsec: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputLossFailoverSettings) : this() {
            this.inputLossThresholdMsec = x.inputLossThresholdMsec
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.InputLossFailoverSettings = InputLossFailoverSettings(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy