commonMain.aws.sdk.kotlin.services.backup.model.BackupVaultEvent.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import kotlin.collections.List
public sealed class BackupVaultEvent {
public abstract val value: kotlin.String
public object BackupJobCompleted : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_JOB_COMPLETED"
override fun toString(): kotlin.String = "BackupJobCompleted"
}
public object BackupJobExpired : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_JOB_EXPIRED"
override fun toString(): kotlin.String = "BackupJobExpired"
}
public object BackupJobFailed : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_JOB_FAILED"
override fun toString(): kotlin.String = "BackupJobFailed"
}
public object BackupJobStarted : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_JOB_STARTED"
override fun toString(): kotlin.String = "BackupJobStarted"
}
public object BackupJobSuccessful : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_JOB_SUCCESSFUL"
override fun toString(): kotlin.String = "BackupJobSuccessful"
}
public object BackupPlanCreated : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_PLAN_CREATED"
override fun toString(): kotlin.String = "BackupPlanCreated"
}
public object BackupPlanModified : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "BACKUP_PLAN_MODIFIED"
override fun toString(): kotlin.String = "BackupPlanModified"
}
public object CopyJobFailed : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "COPY_JOB_FAILED"
override fun toString(): kotlin.String = "CopyJobFailed"
}
public object CopyJobStarted : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "COPY_JOB_STARTED"
override fun toString(): kotlin.String = "CopyJobStarted"
}
public object CopyJobSuccessful : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "COPY_JOB_SUCCESSFUL"
override fun toString(): kotlin.String = "CopyJobSuccessful"
}
public object RecoveryPointModified : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "RECOVERY_POINT_MODIFIED"
override fun toString(): kotlin.String = "RecoveryPointModified"
}
public object RestoreJobCompleted : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "RESTORE_JOB_COMPLETED"
override fun toString(): kotlin.String = "RestoreJobCompleted"
}
public object RestoreJobFailed : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "RESTORE_JOB_FAILED"
override fun toString(): kotlin.String = "RestoreJobFailed"
}
public object RestoreJobStarted : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "RESTORE_JOB_STARTED"
override fun toString(): kotlin.String = "RestoreJobStarted"
}
public object RestoreJobSuccessful : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "RESTORE_JOB_SUCCESSFUL"
override fun toString(): kotlin.String = "RestoreJobSuccessful"
}
public object S3BackupObjectFailed : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "S3_BACKUP_OBJECT_FAILED"
override fun toString(): kotlin.String = "S3BackupObjectFailed"
}
public object S3RestoreObjectFailed : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
override val value: kotlin.String = "S3_RESTORE_OBJECT_FAILED"
override fun toString(): kotlin.String = "S3RestoreObjectFailed"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.backup.model.BackupVaultEvent() {
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.backup.model.BackupVaultEvent = when (value) {
"BACKUP_JOB_COMPLETED" -> BackupJobCompleted
"BACKUP_JOB_EXPIRED" -> BackupJobExpired
"BACKUP_JOB_FAILED" -> BackupJobFailed
"BACKUP_JOB_STARTED" -> BackupJobStarted
"BACKUP_JOB_SUCCESSFUL" -> BackupJobSuccessful
"BACKUP_PLAN_CREATED" -> BackupPlanCreated
"BACKUP_PLAN_MODIFIED" -> BackupPlanModified
"COPY_JOB_FAILED" -> CopyJobFailed
"COPY_JOB_STARTED" -> CopyJobStarted
"COPY_JOB_SUCCESSFUL" -> CopyJobSuccessful
"RECOVERY_POINT_MODIFIED" -> RecoveryPointModified
"RESTORE_JOB_COMPLETED" -> RestoreJobCompleted
"RESTORE_JOB_FAILED" -> RestoreJobFailed
"RESTORE_JOB_STARTED" -> RestoreJobStarted
"RESTORE_JOB_SUCCESSFUL" -> RestoreJobSuccessful
"S3_BACKUP_OBJECT_FAILED" -> S3BackupObjectFailed
"S3_RESTORE_OBJECT_FAILED" -> S3RestoreObjectFailed
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
BackupJobCompleted,
BackupJobExpired,
BackupJobFailed,
BackupJobStarted,
BackupJobSuccessful,
BackupPlanCreated,
BackupPlanModified,
CopyJobFailed,
CopyJobStarted,
CopyJobSuccessful,
RecoveryPointModified,
RestoreJobCompleted,
RestoreJobFailed,
RestoreJobStarted,
RestoreJobSuccessful,
S3BackupObjectFailed,
S3RestoreObjectFailed,
)
}
}