
commonMain.aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
import kotlin.collections.List
public sealed class IdentityResolutionJobStatus {
public abstract val value: kotlin.String
public object Completed : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "COMPLETED"
override fun toString(): kotlin.String = value
}
public object Failed : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = value
}
public object FindMatching : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "FIND_MATCHING"
override fun toString(): kotlin.String = value
}
public object Merging : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "MERGING"
override fun toString(): kotlin.String = value
}
public object PartialSuccess : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "PARTIAL_SUCCESS"
override fun toString(): kotlin.String = value
}
public object Pending : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "PENDING"
override fun toString(): kotlin.String = value
}
public object Preprocessing : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override val value: kotlin.String = "PREPROCESSING"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus() {
override fun toString(): kotlin.String = value
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.customerprofiles.model.IdentityResolutionJobStatus = when(str) {
"COMPLETED" -> Completed
"FAILED" -> Failed
"FIND_MATCHING" -> FindMatching
"MERGING" -> Merging
"PARTIAL_SUCCESS" -> PartialSuccess
"PENDING" -> Pending
"PREPROCESSING" -> Preprocessing
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
Completed,
Failed,
FindMatching,
Merging,
PartialSuccess,
Pending,
Preprocessing
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy