commonMain.aws.sdk.kotlin.services.deadline.model.UsageGroupByField.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import kotlin.collections.List
public sealed class UsageGroupByField {
public abstract val value: kotlin.String
public object FleetId : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "FLEET_ID"
override fun toString(): kotlin.String = "FleetId"
}
public object InstanceType : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "INSTANCE_TYPE"
override fun toString(): kotlin.String = "InstanceType"
}
public object JobId : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "JOB_ID"
override fun toString(): kotlin.String = "JobId"
}
public object LicenseProduct : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "LICENSE_PRODUCT"
override fun toString(): kotlin.String = "LicenseProduct"
}
public object QueueId : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "QUEUE_ID"
override fun toString(): kotlin.String = "QueueId"
}
public object UsageType : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "USAGE_TYPE"
override fun toString(): kotlin.String = "UsageType"
}
public object UserId : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
override val value: kotlin.String = "USER_ID"
override fun toString(): kotlin.String = "UserId"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.UsageGroupByField() {
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.deadline.model.UsageGroupByField = when (value) {
"FLEET_ID" -> FleetId
"INSTANCE_TYPE" -> InstanceType
"JOB_ID" -> JobId
"LICENSE_PRODUCT" -> LicenseProduct
"QUEUE_ID" -> QueueId
"USAGE_TYPE" -> UsageType
"USER_ID" -> UserId
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
FleetId,
InstanceType,
JobId,
LicenseProduct,
QueueId,
UsageType,
UserId,
)
}
}