commonMain.aws.sdk.kotlin.services.mediapackage.serde.HlsPackageDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediapackage-jvm Show documentation
Show all versions of mediapackage-jvm Show documentation
The AWS SDK for Kotlin client for MediaPackage
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.HlsPackage
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 serializeHlsPackageDocument(serializer: Serializer, input: HlsPackage) {
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 ENCRYPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("encryption"))
val INCLUDEDVBSUBTITLES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("includeDvbSubtitles"))
val INCLUDEIFRAMEONLYSTREAM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("includeIframeOnlyStream"))
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 SEGMENTDURATIONSECONDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("segmentDurationSeconds"))
val STREAMSELECTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("streamSelection"))
val USEAUDIORENDITIONGROUP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("useAudioRenditionGroup"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADMARKERS_DESCRIPTOR)
field(ADTRIGGERS_DESCRIPTOR)
field(ADSONDELIVERYRESTRICTIONS_DESCRIPTOR)
field(ENCRYPTION_DESCRIPTOR)
field(INCLUDEDVBSUBTITLES_DESCRIPTOR)
field(INCLUDEIFRAMEONLYSTREAM_DESCRIPTOR)
field(PLAYLISTTYPE_DESCRIPTOR)
field(PLAYLISTWINDOWSECONDS_DESCRIPTOR)
field(PROGRAMDATETIMEINTERVALSECONDS_DESCRIPTOR)
field(SEGMENTDURATIONSECONDS_DESCRIPTOR)
field(STREAMSELECTION_DESCRIPTOR)
field(USEAUDIORENDITIONGROUP_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.encryption?.let { field(ENCRYPTION_DESCRIPTOR, it, ::serializeHlsEncryptionDocument) }
input.includeDvbSubtitles?.let { field(INCLUDEDVBSUBTITLES_DESCRIPTOR, it) }
input.includeIframeOnlyStream?.let { field(INCLUDEIFRAMEONLYSTREAM_DESCRIPTOR, it) }
input.playlistType?.let { field(PLAYLISTTYPE_DESCRIPTOR, it.value) }
input.playlistWindowSeconds?.let { field(PLAYLISTWINDOWSECONDS_DESCRIPTOR, it) }
input.programDateTimeIntervalSeconds?.let { field(PROGRAMDATETIMEINTERVALSECONDS_DESCRIPTOR, it) }
input.segmentDurationSeconds?.let { field(SEGMENTDURATIONSECONDS_DESCRIPTOR, it) }
input.streamSelection?.let { field(STREAMSELECTION_DESCRIPTOR, it, ::serializeStreamSelectionDocument) }
input.useAudioRenditionGroup?.let { field(USEAUDIORENDITIONGROUP_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy