commonMain.aws.sdk.kotlin.services.mediaconvert.transform.HlsEncryptionSettingsDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert Show documentation
Show all versions of mediaconvert Show documentation
The AWS SDK for Kotlin client for MediaConvert
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.transform
import aws.sdk.kotlin.services.mediaconvert.model.HlsEncryptionSettings
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun serializeHlsEncryptionSettingsDocument(serializer: Serializer, input: HlsEncryptionSettings) {
val CONSTANTINITIALIZATIONVECTOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("constantInitializationVector"))
val ENCRYPTIONMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("encryptionMethod"))
val INITIALIZATIONVECTORINMANIFEST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("initializationVectorInManifest"))
val OFFLINEENCRYPTED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("offlineEncrypted"))
val SPEKEKEYPROVIDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("spekeKeyProvider"))
val STATICKEYPROVIDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("staticKeyProvider"))
val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("type"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CONSTANTINITIALIZATIONVECTOR_DESCRIPTOR)
field(ENCRYPTIONMETHOD_DESCRIPTOR)
field(INITIALIZATIONVECTORINMANIFEST_DESCRIPTOR)
field(OFFLINEENCRYPTED_DESCRIPTOR)
field(SPEKEKEYPROVIDER_DESCRIPTOR)
field(STATICKEYPROVIDER_DESCRIPTOR)
field(TYPE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.constantInitializationVector?.let { field(CONSTANTINITIALIZATIONVECTOR_DESCRIPTOR, it) }
input.encryptionMethod?.let { field(ENCRYPTIONMETHOD_DESCRIPTOR, it.value) }
input.initializationVectorInManifest?.let { field(INITIALIZATIONVECTORINMANIFEST_DESCRIPTOR, it.value) }
input.offlineEncrypted?.let { field(OFFLINEENCRYPTED_DESCRIPTOR, it.value) }
input.spekeKeyProvider?.let { field(SPEKEKEYPROVIDER_DESCRIPTOR, it, ::serializeSpekeKeyProviderDocument) }
input.staticKeyProvider?.let { field(STATICKEYPROVIDER_DESCRIPTOR, it, ::serializeStaticKeyProviderDocument) }
input.type?.let { field(TYPE_DESCRIPTOR, it.value) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy