
commonMain.aws.sdk.kotlin.services.ssm.model.NodeAttributeName.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import kotlin.collections.List
public sealed class NodeAttributeName {
public abstract val value: kotlin.String
public object AgentVersion : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
override val value: kotlin.String = "AgentVersion"
override fun toString(): kotlin.String = "AgentVersion"
}
public object PlatformName : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
override val value: kotlin.String = "PlatformName"
override fun toString(): kotlin.String = "PlatformName"
}
public object PlatformType : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
override val value: kotlin.String = "PlatformType"
override fun toString(): kotlin.String = "PlatformType"
}
public object PlatformVersion : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
override val value: kotlin.String = "PlatformVersion"
override fun toString(): kotlin.String = "PlatformVersion"
}
public object Region : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
override val value: kotlin.String = "Region"
override fun toString(): kotlin.String = "Region"
}
public object ResourceType : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
override val value: kotlin.String = "ResourceType"
override fun toString(): kotlin.String = "ResourceType"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.ssm.model.NodeAttributeName() {
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.ssm.model.NodeAttributeName = when (value) {
"AgentVersion" -> AgentVersion
"PlatformName" -> PlatformName
"PlatformType" -> PlatformType
"PlatformVersion" -> PlatformVersion
"Region" -> Region
"ResourceType" -> ResourceType
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AgentVersion,
PlatformName,
PlatformType,
PlatformVersion,
Region,
ResourceType,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy