commonMain.aws.sdk.kotlin.services.signer.model.HashAlgorithm.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signer-jvm Show documentation
Show all versions of signer-jvm Show documentation
The AWS SDK for Kotlin client for signer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.signer.model
import kotlin.collections.List
sealed class HashAlgorithm {
abstract val value: kotlin.String
object Sha1 : aws.sdk.kotlin.services.signer.model.HashAlgorithm() {
override val value: kotlin.String = "SHA1"
override fun toString(): kotlin.String = value
}
object Sha256 : aws.sdk.kotlin.services.signer.model.HashAlgorithm() {
override val value: kotlin.String = "SHA256"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.signer.model.HashAlgorithm() {
override fun toString(): kotlin.String = value
}
companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.signer.model.HashAlgorithm = when(str) {
"SHA1" -> Sha1
"SHA256" -> Sha256
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
Sha1,
Sha256
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy