
commonMain.aws.sdk.kotlin.services.eks.model.AddonIssueCode.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eks.model
import kotlin.collections.List
public sealed class AddonIssueCode {
public abstract val value: kotlin.String
public object AccessDenied : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "AccessDenied"
override fun toString(): kotlin.String = "AccessDenied"
}
public object AdmissionRequestDenied : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "AdmissionRequestDenied"
override fun toString(): kotlin.String = "AdmissionRequestDenied"
}
public object ClusterUnreachable : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "ClusterUnreachable"
override fun toString(): kotlin.String = "ClusterUnreachable"
}
public object ConfigurationConflict : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "ConfigurationConflict"
override fun toString(): kotlin.String = "ConfigurationConflict"
}
public object InsufficientNumberOfReplicas : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "InsufficientNumberOfReplicas"
override fun toString(): kotlin.String = "InsufficientNumberOfReplicas"
}
public object InternalFailure : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "InternalFailure"
override fun toString(): kotlin.String = "InternalFailure"
}
public object K8SResourceNotFound : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "K8sResourceNotFound"
override fun toString(): kotlin.String = "K8SResourceNotFound"
}
public object UnsupportedAddonModification : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
override val value: kotlin.String = "UnsupportedAddonModification"
override fun toString(): kotlin.String = "UnsupportedAddonModification"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.eks.model.AddonIssueCode() {
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.eks.model.AddonIssueCode = when (value) {
"AccessDenied" -> AccessDenied
"AdmissionRequestDenied" -> AdmissionRequestDenied
"ClusterUnreachable" -> ClusterUnreachable
"ConfigurationConflict" -> ConfigurationConflict
"InsufficientNumberOfReplicas" -> InsufficientNumberOfReplicas
"InternalFailure" -> InternalFailure
"K8sResourceNotFound" -> K8SResourceNotFound
"UnsupportedAddonModification" -> UnsupportedAddonModification
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AccessDenied,
AdmissionRequestDenied,
ClusterUnreachable,
ConfigurationConflict,
InsufficientNumberOfReplicas,
InternalFailure,
K8SResourceNotFound,
UnsupportedAddonModification,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy