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

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

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Setting for HDR10+ metadata insertion
 */
public class Hdr10Plus private constructor(builder: Builder) {
    /**
     * Specify the HDR10+ mastering display normalized peak luminance, in nits. This is the normalized actual peak luminance of the mastering display, as defined by ST 2094-40.
     */
    public val masteringMonitorNits: kotlin.Int? = builder.masteringMonitorNits
    /**
     * Specify the HDR10+ target display nominal peak luminance, in nits. This is the nominal maximum luminance of the target display as defined by ST 2094-40.
     */
    public val targetMonitorNits: kotlin.Int? = builder.targetMonitorNits

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

    override fun toString(): kotlin.String = buildString {
        append("Hdr10Plus(")
        append("masteringMonitorNits=$masteringMonitorNits,")
        append("targetMonitorNits=$targetMonitorNits")
        append(")")
    }

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

        if (masteringMonitorNits != other.masteringMonitorNits) return false
        if (targetMonitorNits != other.targetMonitorNits) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specify the HDR10+ mastering display normalized peak luminance, in nits. This is the normalized actual peak luminance of the mastering display, as defined by ST 2094-40.
         */
        public var masteringMonitorNits: kotlin.Int? = null
        /**
         * Specify the HDR10+ target display nominal peak luminance, in nits. This is the nominal maximum luminance of the target display as defined by ST 2094-40.
         */
        public var targetMonitorNits: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus) : this() {
            this.masteringMonitorNits = x.masteringMonitorNits
            this.targetMonitorNits = x.targetMonitorNits
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy