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

commonMain.aws.sdk.kotlin.services.fsx.model.ServiceLimit.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.fsx.model

import kotlin.collections.List

/**
 * The types of limits on your service utilization. Limits include file system count, total throughput capacity, total storage, and total user-initiated backups. These limits apply for a specific account in a specific Amazon Web Services Region. You can increase some of them by contacting Amazon Web Services Support.
 */
public sealed class ServiceLimit {
    public abstract val value: kotlin.String

    public object FileCacheCount : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "FILE_CACHE_COUNT"
        override fun toString(): kotlin.String = "FileCacheCount"
    }

    public object FileSystemCount : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "FILE_SYSTEM_COUNT"
        override fun toString(): kotlin.String = "FileSystemCount"
    }

    public object StorageVirtualMachinesPerFileSystem : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM"
        override fun toString(): kotlin.String = "StorageVirtualMachinesPerFileSystem"
    }

    public object TotalInProgressCopyBackups : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "TOTAL_IN_PROGRESS_COPY_BACKUPS"
        override fun toString(): kotlin.String = "TotalInProgressCopyBackups"
    }

    public object TotalSsdIops : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "TOTAL_SSD_IOPS"
        override fun toString(): kotlin.String = "TotalSsdIops"
    }

    public object TotalStorage : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "TOTAL_STORAGE"
        override fun toString(): kotlin.String = "TotalStorage"
    }

    public object TotalThroughputCapacity : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "TOTAL_THROUGHPUT_CAPACITY"
        override fun toString(): kotlin.String = "TotalThroughputCapacity"
    }

    public object TotalUserInitiatedBackups : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "TOTAL_USER_INITIATED_BACKUPS"
        override fun toString(): kotlin.String = "TotalUserInitiatedBackups"
    }

    public object TotalUserTags : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "TOTAL_USER_TAGS"
        override fun toString(): kotlin.String = "TotalUserTags"
    }

    public object VolumesPerFileSystem : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        override val value: kotlin.String = "VOLUMES_PER_FILE_SYSTEM"
        override fun toString(): kotlin.String = "VolumesPerFileSystem"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.fsx.model.ServiceLimit() {
        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.fsx.model.ServiceLimit = when (value) {
            "FILE_CACHE_COUNT" -> FileCacheCount
            "FILE_SYSTEM_COUNT" -> FileSystemCount
            "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM" -> StorageVirtualMachinesPerFileSystem
            "TOTAL_IN_PROGRESS_COPY_BACKUPS" -> TotalInProgressCopyBackups
            "TOTAL_SSD_IOPS" -> TotalSsdIops
            "TOTAL_STORAGE" -> TotalStorage
            "TOTAL_THROUGHPUT_CAPACITY" -> TotalThroughputCapacity
            "TOTAL_USER_INITIATED_BACKUPS" -> TotalUserInitiatedBackups
            "TOTAL_USER_TAGS" -> TotalUserTags
            "VOLUMES_PER_FILE_SYSTEM" -> VolumesPerFileSystem
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            FileCacheCount,
            FileSystemCount,
            StorageVirtualMachinesPerFileSystem,
            TotalInProgressCopyBackups,
            TotalSsdIops,
            TotalStorage,
            TotalThroughputCapacity,
            TotalUserInitiatedBackups,
            TotalUserTags,
            VolumesPerFileSystem,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy