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

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

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

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



/**
 * Timecode Burnin Settings
 */
public class TimecodeBurninSettings private constructor(builder: Builder) {
    /**
     * Choose a timecode burn-in font size
     */
    public val fontSize: aws.sdk.kotlin.services.medialive.model.TimecodeBurninFontSize? = builder.fontSize
    /**
     * Choose a timecode burn-in output position
     */
    public val position: aws.sdk.kotlin.services.medialive.model.TimecodeBurninPosition? = builder.position
    /**
     * Create a timecode burn-in prefix (optional)
     */
    public val prefix: kotlin.String? = builder.prefix

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

    override fun toString(): kotlin.String = buildString {
        append("TimecodeBurninSettings(")
        append("fontSize=$fontSize,")
        append("position=$position,")
        append("prefix=$prefix")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fontSize?.hashCode() ?: 0
        result = 31 * result + (position?.hashCode() ?: 0)
        result = 31 * result + (prefix?.hashCode() ?: 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 TimecodeBurninSettings

        if (fontSize != other.fontSize) return false
        if (position != other.position) return false
        if (prefix != other.prefix) return false

        return true
    }

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

    public class Builder {
        /**
         * Choose a timecode burn-in font size
         */
        public var fontSize: aws.sdk.kotlin.services.medialive.model.TimecodeBurninFontSize? = null
        /**
         * Choose a timecode burn-in output position
         */
        public var position: aws.sdk.kotlin.services.medialive.model.TimecodeBurninPosition? = null
        /**
         * Create a timecode burn-in prefix (optional)
         */
        public var prefix: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.TimecodeBurninSettings) : this() {
            this.fontSize = x.fontSize
            this.position = x.position
            this.prefix = x.prefix
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy