
commonMain.aws.sdk.kotlin.services.mediaconvert.serde.CaptionDestinationSettingsDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.serde
import aws.sdk.kotlin.services.mediaconvert.model.CaptionDestinationSettings
import aws.sdk.kotlin.services.mediaconvert.model.CaptionDestinationType
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeCaptionDestinationSettingsDocument(deserializer: Deserializer): CaptionDestinationSettings {
val builder = CaptionDestinationSettings.Builder()
val BURNINDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("burninDestinationSettings"))
val DESTINATIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("destinationType"))
val DVBSUBDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("dvbSubDestinationSettings"))
val EMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("embeddedDestinationSettings"))
val IMSCDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("imscDestinationSettings"))
val SCCDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("sccDestinationSettings"))
val SRTDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("srtDestinationSettings"))
val TELETEXTDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("teletextDestinationSettings"))
val TTMLDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ttmlDestinationSettings"))
val WEBVTTDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("webvttDestinationSettings"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(BURNINDESTINATIONSETTINGS_DESCRIPTOR)
field(DESTINATIONTYPE_DESCRIPTOR)
field(DVBSUBDESTINATIONSETTINGS_DESCRIPTOR)
field(EMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR)
field(IMSCDESTINATIONSETTINGS_DESCRIPTOR)
field(SCCDESTINATIONSETTINGS_DESCRIPTOR)
field(SRTDESTINATIONSETTINGS_DESCRIPTOR)
field(TELETEXTDESTINATIONSETTINGS_DESCRIPTOR)
field(TTMLDESTINATIONSETTINGS_DESCRIPTOR)
field(WEBVTTDESTINATIONSETTINGS_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
BURNINDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.burninDestinationSettings = deserializeBurninDestinationSettingsDocument(deserializer)
DESTINATIONTYPE_DESCRIPTOR.index -> builder.destinationType = deserializeString().let { CaptionDestinationType.fromValue(it) }
DVBSUBDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.dvbSubDestinationSettings = deserializeDvbSubDestinationSettingsDocument(deserializer)
EMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.embeddedDestinationSettings = deserializeEmbeddedDestinationSettingsDocument(deserializer)
IMSCDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.imscDestinationSettings = deserializeImscDestinationSettingsDocument(deserializer)
SCCDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.sccDestinationSettings = deserializeSccDestinationSettingsDocument(deserializer)
SRTDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.srtDestinationSettings = deserializeSrtDestinationSettingsDocument(deserializer)
TELETEXTDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.teletextDestinationSettings = deserializeTeletextDestinationSettingsDocument(deserializer)
TTMLDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.ttmlDestinationSettings = deserializeTtmlDestinationSettingsDocument(deserializer)
WEBVTTDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.webvttDestinationSettings = deserializeWebvttDestinationSettingsDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy