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

commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.Command.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.snowdevicemanagement.model



/**
 * The command given to the device to execute.
 */
public sealed class Command {
    /**
     * Reboots the device.
     */
    public data class Reboot(val value: aws.sdk.kotlin.services.snowdevicemanagement.model.Reboot) : aws.sdk.kotlin.services.snowdevicemanagement.model.Command() {
    }

    /**
     * Unlocks the device.
     */
    public data class Unlock(val value: aws.sdk.kotlin.services.snowdevicemanagement.model.Unlock) : aws.sdk.kotlin.services.snowdevicemanagement.model.Command() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.snowdevicemanagement.model.Command() {
    }

    /**
     * Casts this [Command] as a [Reboot] and retrieves its [aws.sdk.kotlin.services.snowdevicemanagement.model.Reboot] value. Throws an exception if the [Command] is not a
     * [Reboot].
     */
    public fun asReboot(): aws.sdk.kotlin.services.snowdevicemanagement.model.Reboot = (this as Command.Reboot).value

    /**
     * Casts this [Command] as a [Reboot] and retrieves its [aws.sdk.kotlin.services.snowdevicemanagement.model.Reboot] value. Returns null if the [Command] is not a [Reboot].
     */
    public fun asRebootOrNull(): aws.sdk.kotlin.services.snowdevicemanagement.model.Reboot? = (this as? Command.Reboot)?.value

    /**
     * Casts this [Command] as a [Unlock] and retrieves its [aws.sdk.kotlin.services.snowdevicemanagement.model.Unlock] value. Throws an exception if the [Command] is not a
     * [Unlock].
     */
    public fun asUnlock(): aws.sdk.kotlin.services.snowdevicemanagement.model.Unlock = (this as Command.Unlock).value

    /**
     * Casts this [Command] as a [Unlock] and retrieves its [aws.sdk.kotlin.services.snowdevicemanagement.model.Unlock] value. Returns null if the [Command] is not a [Unlock].
     */
    public fun asUnlockOrNull(): aws.sdk.kotlin.services.snowdevicemanagement.model.Unlock? = (this as? Command.Unlock)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy