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

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

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

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



/**
 * Statmux rate control settings
 */
public class MultiplexStatmuxVideoSettings private constructor(builder: Builder) {
    /**
     * Maximum statmux bitrate.
     */
    public val maximumBitrate: kotlin.Int = builder.maximumBitrate
    /**
     * Minimum statmux bitrate.
     */
    public val minimumBitrate: kotlin.Int = builder.minimumBitrate
    /**
     * The purpose of the priority is to use a combination of the\nmultiplex rate control algorithm and the QVBR capability of the\nencoder to prioritize the video quality of some channels in a\nmultiplex over others. Channels that have a higher priority will\nget higher video quality at the expense of the video quality of\nother channels in the multiplex with lower priority.
     */
    public val priority: kotlin.Int = builder.priority

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

    override fun toString(): kotlin.String = buildString {
        append("MultiplexStatmuxVideoSettings(")
        append("maximumBitrate=$maximumBitrate,")
        append("minimumBitrate=$minimumBitrate,")
        append("priority=$priority")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maximumBitrate
        result = 31 * result + (minimumBitrate)
        result = 31 * result + (priority)
        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 MultiplexStatmuxVideoSettings

        if (maximumBitrate != other.maximumBitrate) return false
        if (minimumBitrate != other.minimumBitrate) return false
        if (priority != other.priority) return false

        return true
    }

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

    public class Builder {
        /**
         * Maximum statmux bitrate.
         */
        public var maximumBitrate: kotlin.Int = 0
        /**
         * Minimum statmux bitrate.
         */
        public var minimumBitrate: kotlin.Int = 0
        /**
         * The purpose of the priority is to use a combination of the\nmultiplex rate control algorithm and the QVBR capability of the\nencoder to prioritize the video quality of some channels in a\nmultiplex over others. Channels that have a higher priority will\nget higher video quality at the expense of the video quality of\nother channels in the multiplex with lower priority.
         */
        public var priority: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.MultiplexStatmuxVideoSettings) : this() {
            this.maximumBitrate = x.maximumBitrate
            this.minimumBitrate = x.minimumBitrate
            this.priority = x.priority
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy