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

commonMain.aws.sdk.kotlin.services.medialive.transform.CaptionDestinationSettingsDocumentDeserializer.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.medialive.transform

import aws.sdk.kotlin.services.medialive.model.CaptionDestinationSettings
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 ARIBDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("aribDestinationSettings"))
    val BURNINDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("burnInDestinationSettings"))
    val DVBSUBDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("dvbSubDestinationSettings"))
    val EBUTTDDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ebuTtDDestinationSettings"))
    val EMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("embeddedDestinationSettings"))
    val EMBEDDEDPLUSSCTE20DESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("embeddedPlusScte20DestinationSettings"))
    val RTMPCAPTIONINFODESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("rtmpCaptionInfoDestinationSettings"))
    val SCTE20PLUSEMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("scte20PlusEmbeddedDestinationSettings"))
    val SCTE27DESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("scte27DestinationSettings"))
    val SMPTETTDESTINATIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("smpteTtDestinationSettings"))
    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(ARIBDESTINATIONSETTINGS_DESCRIPTOR)
        field(BURNINDESTINATIONSETTINGS_DESCRIPTOR)
        field(DVBSUBDESTINATIONSETTINGS_DESCRIPTOR)
        field(EBUTTDDESTINATIONSETTINGS_DESCRIPTOR)
        field(EMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR)
        field(EMBEDDEDPLUSSCTE20DESTINATIONSETTINGS_DESCRIPTOR)
        field(RTMPCAPTIONINFODESTINATIONSETTINGS_DESCRIPTOR)
        field(SCTE20PLUSEMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR)
        field(SCTE27DESTINATIONSETTINGS_DESCRIPTOR)
        field(SMPTETTDESTINATIONSETTINGS_DESCRIPTOR)
        field(TELETEXTDESTINATIONSETTINGS_DESCRIPTOR)
        field(TTMLDESTINATIONSETTINGS_DESCRIPTOR)
        field(WEBVTTDESTINATIONSETTINGS_DESCRIPTOR)
    }

    deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
        loop@while (true) {
            when (findNextFieldIndex()) {
                ARIBDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.aribDestinationSettings = deserializeAribDestinationSettingsDocument(deserializer)
                BURNINDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.burnInDestinationSettings = deserializeBurnInDestinationSettingsDocument(deserializer)
                DVBSUBDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.dvbSubDestinationSettings = deserializeDvbSubDestinationSettingsDocument(deserializer)
                EBUTTDDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.ebuTtDDestinationSettings = deserializeEbuTtDDestinationSettingsDocument(deserializer)
                EMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.embeddedDestinationSettings = deserializeEmbeddedDestinationSettingsDocument(deserializer)
                EMBEDDEDPLUSSCTE20DESTINATIONSETTINGS_DESCRIPTOR.index -> builder.embeddedPlusScte20DestinationSettings = deserializeEmbeddedPlusScte20DestinationSettingsDocument(deserializer)
                RTMPCAPTIONINFODESTINATIONSETTINGS_DESCRIPTOR.index -> builder.rtmpCaptionInfoDestinationSettings = deserializeRtmpCaptionInfoDestinationSettingsDocument(deserializer)
                SCTE20PLUSEMBEDDEDDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.scte20PlusEmbeddedDestinationSettings = deserializeScte20PlusEmbeddedDestinationSettingsDocument(deserializer)
                SCTE27DESTINATIONSETTINGS_DESCRIPTOR.index -> builder.scte27DestinationSettings = deserializeScte27DestinationSettingsDocument(deserializer)
                SMPTETTDESTINATIONSETTINGS_DESCRIPTOR.index -> builder.smpteTtDestinationSettings = deserializeSmpteTtDestinationSettingsDocument(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()
            }
        }
    }
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy