commonMain.aws.sdk.kotlin.services.proton.model.ResourceSyncStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import kotlin.collections.List
public sealed class ResourceSyncStatus {
public abstract val value: kotlin.String
/**
* Syncing has failed.
*/
public object Failed : aws.sdk.kotlin.services.proton.model.ResourceSyncStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
/**
* A sync attempt has been created and will begin soon.
*/
public object Initiated : aws.sdk.kotlin.services.proton.model.ResourceSyncStatus() {
override val value: kotlin.String = "INITIATED"
override fun toString(): kotlin.String = "Initiated"
}
/**
* Syncing has started and work is being done to reconcile state.
*/
public object InProgress : aws.sdk.kotlin.services.proton.model.ResourceSyncStatus() {
override val value: kotlin.String = "IN_PROGRESS"
override fun toString(): kotlin.String = "InProgress"
}
/**
* Syncing has completed successfully.
*/
public object Succeeded : aws.sdk.kotlin.services.proton.model.ResourceSyncStatus() {
override val value: kotlin.String = "SUCCEEDED"
override fun toString(): kotlin.String = "Succeeded"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.proton.model.ResourceSyncStatus() {
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.proton.model.ResourceSyncStatus = when (value) {
"FAILED" -> Failed
"INITIATED" -> Initiated
"IN_PROGRESS" -> InProgress
"SUCCEEDED" -> Succeeded
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Failed,
Initiated,
InProgress,
Succeeded,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy