All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.freetier.model.Dimension.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.freetier.model

import kotlin.collections.List

public sealed class Dimension {
    public abstract val value: kotlin.String

    public object Description : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "DESCRIPTION"
        override fun toString(): kotlin.String = "Description"
    }

    public object FreeTierType : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "FREE_TIER_TYPE"
        override fun toString(): kotlin.String = "FreeTierType"
    }

    public object Operation : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "OPERATION"
        override fun toString(): kotlin.String = "Operation"
    }

    public object Region : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "REGION"
        override fun toString(): kotlin.String = "Region"
    }

    public object Service : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "SERVICE"
        override fun toString(): kotlin.String = "Service"
    }

    public object UsagePercentage : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "USAGE_PERCENTAGE"
        override fun toString(): kotlin.String = "UsagePercentage"
    }

    public object UsageType : aws.sdk.kotlin.services.freetier.model.Dimension() {
        override val value: kotlin.String = "USAGE_TYPE"
        override fun toString(): kotlin.String = "UsageType"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.freetier.model.Dimension() {
        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.freetier.model.Dimension = when (value) {
            "DESCRIPTION" -> Description
            "FREE_TIER_TYPE" -> FreeTierType
            "OPERATION" -> Operation
            "REGION" -> Region
            "SERVICE" -> Service
            "USAGE_PERCENTAGE" -> UsagePercentage
            "USAGE_TYPE" -> UsageType
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Description,
            FreeTierType,
            Operation,
            Region,
            Service,
            UsagePercentage,
            UsageType,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy