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

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

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

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



/**
 * Frame Capture Settings
 */
public class FrameCaptureSettings private constructor(builder: Builder) {
    /**
     * The frequency at which to capture frames for inclusion in the output. May be specified in either seconds or milliseconds, as specified by captureIntervalUnits.
     */
    public val captureInterval: kotlin.Int = builder.captureInterval
    /**
     * Unit for the frame capture interval.
     */
    public val captureIntervalUnits: aws.sdk.kotlin.services.medialive.model.FrameCaptureIntervalUnit? = builder.captureIntervalUnits
    /**
     * Timecode burn-in settings
     */
    public val timecodeBurninSettings: aws.sdk.kotlin.services.medialive.model.TimecodeBurninSettings? = builder.timecodeBurninSettings

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

    override fun toString(): kotlin.String = buildString {
        append("FrameCaptureSettings(")
        append("captureInterval=$captureInterval,")
        append("captureIntervalUnits=$captureIntervalUnits,")
        append("timecodeBurninSettings=$timecodeBurninSettings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = captureInterval
        result = 31 * result + (captureIntervalUnits?.hashCode() ?: 0)
        result = 31 * result + (timecodeBurninSettings?.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 FrameCaptureSettings

        if (captureInterval != other.captureInterval) return false
        if (captureIntervalUnits != other.captureIntervalUnits) return false
        if (timecodeBurninSettings != other.timecodeBurninSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * The frequency at which to capture frames for inclusion in the output. May be specified in either seconds or milliseconds, as specified by captureIntervalUnits.
         */
        public var captureInterval: kotlin.Int = 0
        /**
         * Unit for the frame capture interval.
         */
        public var captureIntervalUnits: aws.sdk.kotlin.services.medialive.model.FrameCaptureIntervalUnit? = null
        /**
         * Timecode burn-in settings
         */
        public var timecodeBurninSettings: aws.sdk.kotlin.services.medialive.model.TimecodeBurninSettings? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.FrameCaptureSettings) : this() {
            this.captureInterval = x.captureInterval
            this.captureIntervalUnits = x.captureIntervalUnits
            this.timecodeBurninSettings = x.timecodeBurninSettings
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.TimecodeBurninSettings] inside the given [block]
         */
        public fun timecodeBurninSettings(block: aws.sdk.kotlin.services.medialive.model.TimecodeBurninSettings.Builder.() -> kotlin.Unit) {
            this.timecodeBurninSettings = aws.sdk.kotlin.services.medialive.model.TimecodeBurninSettings.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy