commonMain.aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert-jvm Show documentation
Show all versions of mediaconvert-jvm Show documentation
The AWS SDK for Kotlin client for MediaConvert
// 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
}
}
}