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

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

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

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



/**
 * A request to update an input device.
 */
public class UpdateInputDeviceRequest private constructor(builder: Builder) {
    /**
     * The settings that you want to apply to the HD input device.
     */
    public val hdDeviceSettings: aws.sdk.kotlin.services.medialive.model.InputDeviceConfigurableSettings? = builder.hdDeviceSettings
    /**
     * The unique ID of the input device. For example, hd-123456789abcdef.
     */
    public val inputDeviceId: kotlin.String? = requireNotNull(builder.inputDeviceId) { "A non-null value must be provided for inputDeviceId" }
    /**
     * The name that you assigned to this input device (not the unique ID).
     */
    public val name: kotlin.String? = builder.name
    /**
     * The settings that you want to apply to the UHD input device.
     */
    public val uhdDeviceSettings: aws.sdk.kotlin.services.medialive.model.InputDeviceConfigurableSettings? = builder.uhdDeviceSettings

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateInputDeviceRequest(")
        append("hdDeviceSettings=$hdDeviceSettings,")
        append("inputDeviceId=$inputDeviceId,")
        append("name=$name,")
        append("uhdDeviceSettings=$uhdDeviceSettings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = hdDeviceSettings?.hashCode() ?: 0
        result = 31 * result + (inputDeviceId?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (uhdDeviceSettings?.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 UpdateInputDeviceRequest

        if (hdDeviceSettings != other.hdDeviceSettings) return false
        if (inputDeviceId != other.inputDeviceId) return false
        if (name != other.name) return false
        if (uhdDeviceSettings != other.uhdDeviceSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * The settings that you want to apply to the HD input device.
         */
        public var hdDeviceSettings: aws.sdk.kotlin.services.medialive.model.InputDeviceConfigurableSettings? = null
        /**
         * The unique ID of the input device. For example, hd-123456789abcdef.
         */
        public var inputDeviceId: kotlin.String? = null
        /**
         * The name that you assigned to this input device (not the unique ID).
         */
        public var name: kotlin.String? = null
        /**
         * The settings that you want to apply to the UHD input device.
         */
        public var uhdDeviceSettings: aws.sdk.kotlin.services.medialive.model.InputDeviceConfigurableSettings? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.UpdateInputDeviceRequest) : this() {
            this.hdDeviceSettings = x.hdDeviceSettings
            this.inputDeviceId = x.inputDeviceId
            this.name = x.name
            this.uhdDeviceSettings = x.uhdDeviceSettings
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy