All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.model.DecryptionMode.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model

import kotlin.collections.List

/**
 * Specify the encryption mode that you used to encrypt your input files.
 */
public sealed class DecryptionMode {

    public abstract val value: kotlin.String

    public object AesCbc : aws.sdk.kotlin.services.mediaconvert.model.DecryptionMode() {
        override val value: kotlin.String = "AES_CBC"
        override fun toString(): kotlin.String = value
    }

    public object AesCtr : aws.sdk.kotlin.services.mediaconvert.model.DecryptionMode() {
        override val value: kotlin.String = "AES_CTR"
        override fun toString(): kotlin.String = value
    }

    public object AesGcm : aws.sdk.kotlin.services.mediaconvert.model.DecryptionMode() {
        override val value: kotlin.String = "AES_GCM"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.DecryptionMode() {
        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.mediaconvert.model.DecryptionMode = when(str) {
            "AES_CBC" -> AesCbc
            "AES_CTR" -> AesCtr
            "AES_GCM" -> AesGcm
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            AesCbc,
            AesCtr,
            AesGcm
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy