commonMain.aws.sdk.kotlin.services.cloudsearch.model.OptionState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.model
import kotlin.collections.List
/**
* The state of processing a change to an option. One of:
* + RequiresIndexDocuments: The option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
* + Processing: The option's latest value is in the process of being activated.
* + Active: The option's latest value is fully deployed.
* + FailedToValidate: The option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
*/
public sealed class OptionState {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.cloudsearch.model.OptionState() {
override val value: kotlin.String = "Active"
override fun toString(): kotlin.String = "Active"
}
public object FailedToValidate : aws.sdk.kotlin.services.cloudsearch.model.OptionState() {
override val value: kotlin.String = "FailedToValidate"
override fun toString(): kotlin.String = "FailedToValidate"
}
public object Processing : aws.sdk.kotlin.services.cloudsearch.model.OptionState() {
override val value: kotlin.String = "Processing"
override fun toString(): kotlin.String = "Processing"
}
public object RequiresIndexDocuments : aws.sdk.kotlin.services.cloudsearch.model.OptionState() {
override val value: kotlin.String = "RequiresIndexDocuments"
override fun toString(): kotlin.String = "RequiresIndexDocuments"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.cloudsearch.model.OptionState() {
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.cloudsearch.model.OptionState = when (value) {
"Active" -> Active
"FailedToValidate" -> FailedToValidate
"Processing" -> Processing
"RequiresIndexDocuments" -> RequiresIndexDocuments
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Active,
FailedToValidate,
Processing,
RequiresIndexDocuments,
)
}
}