commonMain.aws.sdk.kotlin.services.proton.model.RepositorySyncStatus.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import kotlin.collections.List
public sealed class RepositorySyncStatus {
public abstract val value: kotlin.String
/**
* The repository sync attempt has failed.
*/
public object Failed : aws.sdk.kotlin.services.proton.model.RepositorySyncStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
/**
* A repository sync attempt has been created and will begin soon.
*/
public object Initiated : aws.sdk.kotlin.services.proton.model.RepositorySyncStatus() {
override val value: kotlin.String = "INITIATED"
override fun toString(): kotlin.String = "Initiated"
}
/**
* A repository sync attempt has started and work is being done to reconcile the branch.
*/
public object InProgress : aws.sdk.kotlin.services.proton.model.RepositorySyncStatus() {
override val value: kotlin.String = "IN_PROGRESS"
override fun toString(): kotlin.String = "InProgress"
}
/**
* The repository sync attempt didn't execute and was queued.
*/
public object Queued : aws.sdk.kotlin.services.proton.model.RepositorySyncStatus() {
override val value: kotlin.String = "QUEUED"
override fun toString(): kotlin.String = "Queued"
}
/**
* The repository sync attempt has completed successfully.
*/
public object Succeeded : aws.sdk.kotlin.services.proton.model.RepositorySyncStatus() {
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.RepositorySyncStatus() {
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.RepositorySyncStatus = when (value) {
"FAILED" -> Failed
"INITIATED" -> Initiated
"IN_PROGRESS" -> InProgress
"QUEUED" -> Queued
"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,
Queued,
Succeeded,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy