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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.DolbyVisionLevel6Metadata.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Use these settings when you set DolbyVisionLevel6Mode to SPECIFY to override the MaxCLL and MaxFALL values in your input with new values.
 */
public class DolbyVisionLevel6Metadata private constructor(builder: Builder) {
    /**
     * Maximum Content Light Level. Static HDR metadata that corresponds to the brightest pixel in the entire stream. Measured in nits.
     */
    public val maxCll: kotlin.Int? = builder.maxCll
    /**
     * Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the highest frame-average brightness in the entire stream. Measured in nits.
     */
    public val maxFall: kotlin.Int? = builder.maxFall

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

    override fun toString(): kotlin.String = buildString {
        append("DolbyVisionLevel6Metadata(")
        append("maxCll=$maxCll,")
        append("maxFall=$maxFall")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxCll ?: 0
        result = 31 * result + (maxFall ?: 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 DolbyVisionLevel6Metadata

        if (maxCll != other.maxCll) return false
        if (maxFall != other.maxFall) return false

        return true
    }

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

    public class Builder {
        /**
         * Maximum Content Light Level. Static HDR metadata that corresponds to the brightest pixel in the entire stream. Measured in nits.
         */
        public var maxCll: kotlin.Int? = null
        /**
         * Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the highest frame-average brightness in the entire stream. Measured in nits.
         */
        public var maxFall: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.DolbyVisionLevel6Metadata) : this() {
            this.maxCll = x.maxCll
            this.maxFall = x.maxFall
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy