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

commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.Frequency.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.lookoutmetrics.model

import kotlin.collections.List

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

    public object P1D : aws.sdk.kotlin.services.lookoutmetrics.model.Frequency() {
        override val value: kotlin.String = "P1D"
        override fun toString(): kotlin.String = "P1D"
    }

    public object Pt10M : aws.sdk.kotlin.services.lookoutmetrics.model.Frequency() {
        override val value: kotlin.String = "PT10M"
        override fun toString(): kotlin.String = "Pt10M"
    }

    public object Pt1H : aws.sdk.kotlin.services.lookoutmetrics.model.Frequency() {
        override val value: kotlin.String = "PT1H"
        override fun toString(): kotlin.String = "Pt1H"
    }

    public object Pt5M : aws.sdk.kotlin.services.lookoutmetrics.model.Frequency() {
        override val value: kotlin.String = "PT5M"
        override fun toString(): kotlin.String = "Pt5M"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lookoutmetrics.model.Frequency() {
        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.lookoutmetrics.model.Frequency = when (value) {
            "P1D" -> P1D
            "PT10M" -> Pt10M
            "PT1H" -> Pt1H
            "PT5M" -> Pt5M
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            P1D,
            Pt10M,
            Pt1H,
            Pt5M,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy