commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.Command.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowdevicemanagement Show documentation
Show all versions of snowdevicemanagement Show documentation
The AWS Kotlin client for Snow Device Management
// 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