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

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

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

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



/**
 * For motion overlays that don't have a built-in frame rate, specify the frame rate of the overlay in frames per second, as a fraction. For example, specify 24 fps as 24/1. The overlay frame rate doesn't need to match the frame rate of the underlying video.
 */
public class MotionImageInsertionFramerate private constructor(builder: Builder) {
    /**
     * The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
     */
    public val framerateDenominator: kotlin.Int? = builder.framerateDenominator
    /**
     * The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
     */
    public val framerateNumerator: kotlin.Int? = builder.framerateNumerator

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

    override fun toString(): kotlin.String = buildString {
        append("MotionImageInsertionFramerate(")
        append("framerateDenominator=$framerateDenominator,")
        append("framerateNumerator=$framerateNumerator")
        append(")")
    }

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

        if (framerateDenominator != other.framerateDenominator) return false
        if (framerateNumerator != other.framerateNumerator) return false

        return true
    }

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

    public class Builder {
        /**
         * The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
         */
        public var framerateDenominator: kotlin.Int? = null
        /**
         * The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
         */
        public var framerateNumerator: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.MotionImageInsertionFramerate) : this() {
            this.framerateDenominator = x.framerateDenominator
            this.framerateNumerator = x.framerateNumerator
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy