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

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

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

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



/**
 * A request to reboot an AWS Elemental device.
 */
public class RebootInputDeviceRequest private constructor(builder: Builder) {
    /**
     * Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
     */
    public val force: aws.sdk.kotlin.services.medialive.model.RebootInputDeviceForce? = builder.force
    /**
     * The unique ID of the input device to reboot. For example, hd-123456789abcdef.
     */
    public val inputDeviceId: kotlin.String? = requireNotNull(builder.inputDeviceId) { "A non-null value must be provided for inputDeviceId" }

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

    override fun toString(): kotlin.String = buildString {
        append("RebootInputDeviceRequest(")
        append("force=$force,")
        append("inputDeviceId=$inputDeviceId")
        append(")")
    }

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

        if (force != other.force) return false
        if (inputDeviceId != other.inputDeviceId) return false

        return true
    }

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

    public class Builder {
        /**
         * Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
         */
        public var force: aws.sdk.kotlin.services.medialive.model.RebootInputDeviceForce? = null
        /**
         * The unique ID of the input device to reboot. For example, hd-123456789abcdef.
         */
        public var inputDeviceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.RebootInputDeviceRequest) : this() {
            this.force = x.force
            this.inputDeviceId = x.inputDeviceId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy