commonMain.aws.sdk.kotlin.services.resourcegroups.model.QueryErrorCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resourcegroups-jvm Show documentation
Show all versions of resourcegroups-jvm Show documentation
The AWS SDK for Kotlin client for Resource Groups
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resourcegroups.model
import kotlin.collections.List
public sealed class QueryErrorCode {
public abstract val value: kotlin.String
public object CloudformationStackInactive : aws.sdk.kotlin.services.resourcegroups.model.QueryErrorCode() {
override val value: kotlin.String = "CLOUDFORMATION_STACK_INACTIVE"
override fun toString(): kotlin.String = "CloudformationStackInactive"
}
public object CloudformationStackNotExisting : aws.sdk.kotlin.services.resourcegroups.model.QueryErrorCode() {
override val value: kotlin.String = "CLOUDFORMATION_STACK_NOT_EXISTING"
override fun toString(): kotlin.String = "CloudformationStackNotExisting"
}
public object CloudformationStackUnassumableRole : aws.sdk.kotlin.services.resourcegroups.model.QueryErrorCode() {
override val value: kotlin.String = "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
override fun toString(): kotlin.String = "CloudformationStackUnassumableRole"
}
public object ResourceTypeNotSupported : aws.sdk.kotlin.services.resourcegroups.model.QueryErrorCode() {
override val value: kotlin.String = "RESOURCE_TYPE_NOT_SUPPORTED"
override fun toString(): kotlin.String = "ResourceTypeNotSupported"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.resourcegroups.model.QueryErrorCode() {
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.resourcegroups.model.QueryErrorCode = when (value) {
"CLOUDFORMATION_STACK_INACTIVE" -> CloudformationStackInactive
"CLOUDFORMATION_STACK_NOT_EXISTING" -> CloudformationStackNotExisting
"CLOUDFORMATION_STACK_UNASSUMABLE_ROLE" -> CloudformationStackUnassumableRole
"RESOURCE_TYPE_NOT_SUPPORTED" -> ResourceTypeNotSupported
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
CloudformationStackInactive,
CloudformationStackNotExisting,
CloudformationStackUnassumableRole,
ResourceTypeNotSupported,
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy