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

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

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

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



/**
 * Input Loss Behavior
 */
public class InputLossBehavior private constructor(builder: Builder) {
    /**
     * Documentation update needed
     */
    public val blackFrameMsec: kotlin.Int = builder.blackFrameMsec
    /**
     * When input loss image type is "color" this field specifies the color to use. Value: 6 hex characters representing the values of RGB.
     */
    public val inputLossImageColor: kotlin.String? = builder.inputLossImageColor
    /**
     * When input loss image type is "slate" these fields specify the parameters for accessing the slate.
     */
    public val inputLossImageSlate: aws.sdk.kotlin.services.medialive.model.InputLocation? = builder.inputLossImageSlate
    /**
     * Indicates whether to substitute a solid color or a slate into the output after input loss exceeds blackFrameMsec.
     */
    public val inputLossImageType: aws.sdk.kotlin.services.medialive.model.InputLossImageType? = builder.inputLossImageType
    /**
     * Documentation update needed
     */
    public val repeatFrameMsec: kotlin.Int = builder.repeatFrameMsec

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

    override fun toString(): kotlin.String = buildString {
        append("InputLossBehavior(")
        append("blackFrameMsec=$blackFrameMsec,")
        append("inputLossImageColor=$inputLossImageColor,")
        append("inputLossImageSlate=$inputLossImageSlate,")
        append("inputLossImageType=$inputLossImageType,")
        append("repeatFrameMsec=$repeatFrameMsec")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = blackFrameMsec
        result = 31 * result + (inputLossImageColor?.hashCode() ?: 0)
        result = 31 * result + (inputLossImageSlate?.hashCode() ?: 0)
        result = 31 * result + (inputLossImageType?.hashCode() ?: 0)
        result = 31 * result + (repeatFrameMsec)
        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 InputLossBehavior

        if (blackFrameMsec != other.blackFrameMsec) return false
        if (inputLossImageColor != other.inputLossImageColor) return false
        if (inputLossImageSlate != other.inputLossImageSlate) return false
        if (inputLossImageType != other.inputLossImageType) return false
        if (repeatFrameMsec != other.repeatFrameMsec) return false

        return true
    }

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

    public class Builder {
        /**
         * Documentation update needed
         */
        public var blackFrameMsec: kotlin.Int = 0
        /**
         * When input loss image type is "color" this field specifies the color to use. Value: 6 hex characters representing the values of RGB.
         */
        public var inputLossImageColor: kotlin.String? = null
        /**
         * When input loss image type is "slate" these fields specify the parameters for accessing the slate.
         */
        public var inputLossImageSlate: aws.sdk.kotlin.services.medialive.model.InputLocation? = null
        /**
         * Indicates whether to substitute a solid color or a slate into the output after input loss exceeds blackFrameMsec.
         */
        public var inputLossImageType: aws.sdk.kotlin.services.medialive.model.InputLossImageType? = null
        /**
         * Documentation update needed
         */
        public var repeatFrameMsec: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputLossBehavior) : this() {
            this.blackFrameMsec = x.blackFrameMsec
            this.inputLossImageColor = x.inputLossImageColor
            this.inputLossImageSlate = x.inputLossImageSlate
            this.inputLossImageType = x.inputLossImageType
            this.repeatFrameMsec = x.repeatFrameMsec
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.InputLocation] inside the given [block]
         */
        public fun inputLossImageSlate(block: aws.sdk.kotlin.services.medialive.model.InputLocation.Builder.() -> kotlin.Unit) {
            this.inputLossImageSlate = aws.sdk.kotlin.services.medialive.model.InputLocation.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy