commonMain.aws.sdk.kotlin.services.mediaconvert.model.ImageInserter.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
/**
* Use the image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each input or output individually. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/graphic-overlay.html. This setting is disabled by default.
*/
public class ImageInserter private constructor(builder: Builder) {
/**
* Specify the images that you want to overlay on your video. The images must be PNG or TGA files.
*/
public val insertableImages: List? = builder.insertableImages
/**
* Specify the reference white level, in nits, for all of your image inserter images. Use to correct brightness levels within HDR10 outputs. For 1,000 nit peak brightness displays, we recommend that you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, or specify an integer from 100 to 1000.
*/
public val sdrReferenceWhiteLevel: kotlin.Int? = builder.sdrReferenceWhiteLevel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.ImageInserter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageInserter(")
append("insertableImages=$insertableImages,")
append("sdrReferenceWhiteLevel=$sdrReferenceWhiteLevel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = insertableImages?.hashCode() ?: 0
result = 31 * result + (sdrReferenceWhiteLevel ?: 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 ImageInserter
if (insertableImages != other.insertableImages) return false
if (sdrReferenceWhiteLevel != other.sdrReferenceWhiteLevel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.ImageInserter = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specify the images that you want to overlay on your video. The images must be PNG or TGA files.
*/
public var insertableImages: List? = null
/**
* Specify the reference white level, in nits, for all of your image inserter images. Use to correct brightness levels within HDR10 outputs. For 1,000 nit peak brightness displays, we recommend that you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, or specify an integer from 100 to 1000.
*/
public var sdrReferenceWhiteLevel: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.ImageInserter) : this() {
this.insertableImages = x.insertableImages
this.sdrReferenceWhiteLevel = x.sdrReferenceWhiteLevel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.ImageInserter = ImageInserter(this)
internal fun correctErrors(): Builder {
return this
}
}
}