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

commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codeguruprofiler.model

import kotlin.collections.List

public sealed class AgentParameterField {

    public abstract val value: kotlin.String

    /**
     * Maximum stack depth to be captured by the CodeGuru Profiler.
     */
    public object MaxStackDepth : aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField() {
        override val value: kotlin.String = "MaxStackDepth"
        override fun toString(): kotlin.String = value
    }

    /**
     * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent.
     */
    public object MemoryUsageLimitPercent : aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField() {
        override val value: kotlin.String = "MemoryUsageLimitPercent"
        override fun toString(): kotlin.String = value
    }

    /**
     * Minimum time in milliseconds between sending reports.
     */
    public object MinimumTimeForReportingInMilliseconds : aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField() {
        override val value: kotlin.String = "MinimumTimeForReportingInMilliseconds"
        override fun toString(): kotlin.String = value
    }

    /**
     * Reporting interval in milliseconds used to report profiles.
     */
    public object ReportingIntervalInMilliseconds : aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField() {
        override val value: kotlin.String = "ReportingIntervalInMilliseconds"
        override fun toString(): kotlin.String = value
    }

    /**
     * Sampling interval in milliseconds used to sample profiles.
     */
    public object SamplingIntervalInMilliseconds : aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField() {
        override val value: kotlin.String = "SamplingIntervalInMilliseconds"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.codeguruprofiler.model.AgentParameterField = when(str) {
            "MaxStackDepth" -> MaxStackDepth
            "MemoryUsageLimitPercent" -> MemoryUsageLimitPercent
            "MinimumTimeForReportingInMilliseconds" -> MinimumTimeForReportingInMilliseconds
            "ReportingIntervalInMilliseconds" -> ReportingIntervalInMilliseconds
            "SamplingIntervalInMilliseconds" -> SamplingIntervalInMilliseconds
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            MaxStackDepth,
            MemoryUsageLimitPercent,
            MinimumTimeForReportingInMilliseconds,
            ReportingIntervalInMilliseconds,
            SamplingIntervalInMilliseconds
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy