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

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

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

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



/**
 * Settings that describe the active source from the input device, and the video characteristics of that source.
 */
public class InputDeviceHdSettings private constructor(builder: Builder) {
    /**
     * If you specified Auto as the configured input, specifies which of the sources is currently active (SDI or HDMI).
     */
    public val activeInput: aws.sdk.kotlin.services.medialive.model.InputDeviceActiveInput? = builder.activeInput
    /**
     * The source at the input device that is currently active. You can specify this source.
     */
    public val configuredInput: aws.sdk.kotlin.services.medialive.model.InputDeviceConfiguredInput? = builder.configuredInput
    /**
     * The state of the input device.
     */
    public val deviceState: aws.sdk.kotlin.services.medialive.model.InputDeviceState? = builder.deviceState
    /**
     * The frame rate of the video source.
     */
    public val framerate: kotlin.Double = builder.framerate
    /**
     * The height of the video source, in pixels.
     */
    public val height: kotlin.Int = builder.height
    /**
     * The Link device's buffer size (latency) in milliseconds (ms). You can specify this value.
     */
    public val latencyMs: kotlin.Int = builder.latencyMs
    /**
     * The current maximum bitrate for ingesting this source, in bits per second. You can specify this maximum.
     */
    public val maxBitrate: kotlin.Int = builder.maxBitrate
    /**
     * The scan type of the video source.
     */
    public val scanType: aws.sdk.kotlin.services.medialive.model.InputDeviceScanType? = builder.scanType
    /**
     * The width of the video source, in pixels.
     */
    public val width: kotlin.Int = builder.width

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

    override fun toString(): kotlin.String = buildString {
        append("InputDeviceHdSettings(")
        append("activeInput=$activeInput,")
        append("configuredInput=$configuredInput,")
        append("deviceState=$deviceState,")
        append("framerate=$framerate,")
        append("height=$height,")
        append("latencyMs=$latencyMs,")
        append("maxBitrate=$maxBitrate,")
        append("scanType=$scanType,")
        append("width=$width")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = activeInput?.hashCode() ?: 0
        result = 31 * result + (configuredInput?.hashCode() ?: 0)
        result = 31 * result + (deviceState?.hashCode() ?: 0)
        result = 31 * result + (framerate.hashCode())
        result = 31 * result + (height)
        result = 31 * result + (latencyMs)
        result = 31 * result + (maxBitrate)
        result = 31 * result + (scanType?.hashCode() ?: 0)
        result = 31 * result + (width)
        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 InputDeviceHdSettings

        if (activeInput != other.activeInput) return false
        if (configuredInput != other.configuredInput) return false
        if (deviceState != other.deviceState) return false
        if (framerate != other.framerate) return false
        if (height != other.height) return false
        if (latencyMs != other.latencyMs) return false
        if (maxBitrate != other.maxBitrate) return false
        if (scanType != other.scanType) return false
        if (width != other.width) return false

        return true
    }

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

    public class Builder {
        /**
         * If you specified Auto as the configured input, specifies which of the sources is currently active (SDI or HDMI).
         */
        public var activeInput: aws.sdk.kotlin.services.medialive.model.InputDeviceActiveInput? = null
        /**
         * The source at the input device that is currently active. You can specify this source.
         */
        public var configuredInput: aws.sdk.kotlin.services.medialive.model.InputDeviceConfiguredInput? = null
        /**
         * The state of the input device.
         */
        public var deviceState: aws.sdk.kotlin.services.medialive.model.InputDeviceState? = null
        /**
         * The frame rate of the video source.
         */
        public var framerate: kotlin.Double = 0.0
        /**
         * The height of the video source, in pixels.
         */
        public var height: kotlin.Int = 0
        /**
         * The Link device's buffer size (latency) in milliseconds (ms). You can specify this value.
         */
        public var latencyMs: kotlin.Int = 0
        /**
         * The current maximum bitrate for ingesting this source, in bits per second. You can specify this maximum.
         */
        public var maxBitrate: kotlin.Int = 0
        /**
         * The scan type of the video source.
         */
        public var scanType: aws.sdk.kotlin.services.medialive.model.InputDeviceScanType? = null
        /**
         * The width of the video source, in pixels.
         */
        public var width: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputDeviceHdSettings) : this() {
            this.activeInput = x.activeInput
            this.configuredInput = x.configuredInput
            this.deviceState = x.deviceState
            this.framerate = x.framerate
            this.height = x.height
            this.latencyMs = x.latencyMs
            this.maxBitrate = x.maxBitrate
            this.scanType = x.scanType
            this.width = x.width
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy