commonMain.aws.sdk.kotlin.services.freetier.model.MatchOption.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freetier-jvm Show documentation
Show all versions of freetier-jvm Show documentation
The AWS SDK for Kotlin client for FreeTier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.freetier.model
import kotlin.collections.List
public sealed class MatchOption {
public abstract val value: kotlin.String
public object Contains : aws.sdk.kotlin.services.freetier.model.MatchOption() {
override val value: kotlin.String = "CONTAINS"
override fun toString(): kotlin.String = "Contains"
}
public object EndsWith : aws.sdk.kotlin.services.freetier.model.MatchOption() {
override val value: kotlin.String = "ENDS_WITH"
override fun toString(): kotlin.String = "EndsWith"
}
public object Equals : aws.sdk.kotlin.services.freetier.model.MatchOption() {
override val value: kotlin.String = "EQUALS"
override fun toString(): kotlin.String = "Equals"
}
public object GreaterThanOrEqual : aws.sdk.kotlin.services.freetier.model.MatchOption() {
override val value: kotlin.String = "GREATER_THAN_OR_EQUAL"
override fun toString(): kotlin.String = "GreaterThanOrEqual"
}
public object StartsWith : aws.sdk.kotlin.services.freetier.model.MatchOption() {
override val value: kotlin.String = "STARTS_WITH"
override fun toString(): kotlin.String = "StartsWith"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.freetier.model.MatchOption() {
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.MatchOption = when (value) {
"CONTAINS" -> Contains
"ENDS_WITH" -> EndsWith
"EQUALS" -> Equals
"GREATER_THAN_OR_EQUAL" -> GreaterThanOrEqual
"STARTS_WITH" -> StartsWith
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Contains,
EndsWith,
Equals,
GreaterThanOrEqual,
StartsWith,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy