commonMain.aws.sdk.kotlin.services.sagemakermetrics.model.PutMetricsErrorCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakermetrics-jvm Show documentation
Show all versions of sagemakermetrics-jvm Show documentation
The AWS Kotlin client for SageMaker Metrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakermetrics.model
import kotlin.collections.List
public sealed class PutMetricsErrorCode {
public abstract val value: kotlin.String
public object ConflictError : aws.sdk.kotlin.services.sagemakermetrics.model.PutMetricsErrorCode() {
override val value: kotlin.String = "CONFLICT_ERROR"
override fun toString(): kotlin.String = "ConflictError"
}
public object InternalError : aws.sdk.kotlin.services.sagemakermetrics.model.PutMetricsErrorCode() {
override val value: kotlin.String = "INTERNAL_ERROR"
override fun toString(): kotlin.String = "InternalError"
}
public object MetricLimitExceeded : aws.sdk.kotlin.services.sagemakermetrics.model.PutMetricsErrorCode() {
override val value: kotlin.String = "METRIC_LIMIT_EXCEEDED"
override fun toString(): kotlin.String = "MetricLimitExceeded"
}
public object ValidationError : aws.sdk.kotlin.services.sagemakermetrics.model.PutMetricsErrorCode() {
override val value: kotlin.String = "VALIDATION_ERROR"
override fun toString(): kotlin.String = "ValidationError"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.sagemakermetrics.model.PutMetricsErrorCode() {
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.sagemakermetrics.model.PutMetricsErrorCode = when (value) {
"CONFLICT_ERROR" -> ConflictError
"INTERNAL_ERROR" -> InternalError
"METRIC_LIMIT_EXCEEDED" -> MetricLimitExceeded
"VALIDATION_ERROR" -> ValidationError
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
ConflictError,
InternalError,
MetricLimitExceeded,
ValidationError,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy