commonMain.aws.sdk.kotlin.services.iotfleetwise.model.VehicleState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleetwise-jvm Show documentation
Show all versions of iotfleetwise-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetWise
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotfleetwise.model
import kotlin.collections.List
public sealed class VehicleState {
public abstract val value: kotlin.String
public object Created : aws.sdk.kotlin.services.iotfleetwise.model.VehicleState() {
override val value: kotlin.String = "CREATED"
override fun toString(): kotlin.String = "Created"
}
public object Deleting : aws.sdk.kotlin.services.iotfleetwise.model.VehicleState() {
override val value: kotlin.String = "DELETING"
override fun toString(): kotlin.String = "Deleting"
}
public object Healthy : aws.sdk.kotlin.services.iotfleetwise.model.VehicleState() {
override val value: kotlin.String = "HEALTHY"
override fun toString(): kotlin.String = "Healthy"
}
public object Ready : aws.sdk.kotlin.services.iotfleetwise.model.VehicleState() {
override val value: kotlin.String = "READY"
override fun toString(): kotlin.String = "Ready"
}
public object Suspended : aws.sdk.kotlin.services.iotfleetwise.model.VehicleState() {
override val value: kotlin.String = "SUSPENDED"
override fun toString(): kotlin.String = "Suspended"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotfleetwise.model.VehicleState() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.iotfleetwise.model.VehicleState = when (value) {
"CREATED" -> Created
"DELETING" -> Deleting
"HEALTHY" -> Healthy
"READY" -> Ready
"SUSPENDED" -> Suspended
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Created,
Deleting,
Healthy,
Ready,
Suspended,
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy