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

commonMain.aws.sdk.kotlin.services.mediapackage.serde.HlsManifestCreateOrUpdateParametersDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediapackage.serde

import aws.sdk.kotlin.services.mediapackage.model.HlsManifestCreateOrUpdateParameters
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 serializeHlsManifestCreateOrUpdateParametersDocument(serializer: Serializer, input: HlsManifestCreateOrUpdateParameters) {
    val ADMARKERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("adMarkers"))
    val ADTRIGGERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("adTriggers"))
    val ADSONDELIVERYRESTRICTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("adsOnDeliveryRestrictions"))
    val ID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("id"))
    val INCLUDEIFRAMEONLYSTREAM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("includeIframeOnlyStream"))
    val MANIFESTNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("manifestName"))
    val PLAYLISTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("playlistType"))
    val PLAYLISTWINDOWSECONDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("playlistWindowSeconds"))
    val PROGRAMDATETIMEINTERVALSECONDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("programDateTimeIntervalSeconds"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ADMARKERS_DESCRIPTOR)
        field(ADTRIGGERS_DESCRIPTOR)
        field(ADSONDELIVERYRESTRICTIONS_DESCRIPTOR)
        field(ID_DESCRIPTOR)
        field(INCLUDEIFRAMEONLYSTREAM_DESCRIPTOR)
        field(MANIFESTNAME_DESCRIPTOR)
        field(PLAYLISTTYPE_DESCRIPTOR)
        field(PLAYLISTWINDOWSECONDS_DESCRIPTOR)
        field(PROGRAMDATETIMEINTERVALSECONDS_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.adMarkers?.let { field(ADMARKERS_DESCRIPTOR, it.value) }
        if (input.adTriggers != null) {
            listField(ADTRIGGERS_DESCRIPTOR) {
                for (el0 in input.adTriggers) {
                    serializeString(el0.value)
                }
            }
        }
        input.adsOnDeliveryRestrictions?.let { field(ADSONDELIVERYRESTRICTIONS_DESCRIPTOR, it.value) }
        input.id?.let { field(ID_DESCRIPTOR, it) }
        input.includeIframeOnlyStream?.let { field(INCLUDEIFRAMEONLYSTREAM_DESCRIPTOR, it) }
        input.manifestName?.let { field(MANIFESTNAME_DESCRIPTOR, it) }
        input.playlistType?.let { field(PLAYLISTTYPE_DESCRIPTOR, it.value) }
        input.playlistWindowSeconds?.let { field(PLAYLISTWINDOWSECONDS_DESCRIPTOR, it) }
        input.programDateTimeIntervalSeconds?.let { field(PROGRAMDATETIMEINTERVALSECONDS_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy