commonMain.aws.sdk.kotlin.services.mediaconvert.transform.InputDocumentSerializer.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.Input
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 serializeInputDocument(serializer: Serializer, input: Input) {
val AUDIOSELECTORGROUPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Map, JsonSerialName("audioSelectorGroups"))
val AUDIOSELECTORS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Map, JsonSerialName("audioSelectors"))
val CAPTIONSELECTORS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Map, JsonSerialName("captionSelectors"))
val CROP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("crop"))
val DEBLOCKFILTER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("deblockFilter"))
val DECRYPTIONSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("decryptionSettings"))
val DENOISEFILTER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("denoiseFilter"))
val DOLBYVISIONMETADATAXML_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("dolbyVisionMetadataXml"))
val FILEINPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("fileInput"))
val FILTERENABLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("filterEnable"))
val FILTERSTRENGTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("filterStrength"))
val IMAGEINSERTER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("imageInserter"))
val INPUTCLIPPINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("inputClippings"))
val INPUTSCANTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("inputScanType"))
val POSITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("position"))
val PROGRAMNUMBER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("programNumber"))
val PSICONTROL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("psiControl"))
val SUPPLEMENTALIMPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("supplementalImps"))
val TIMECODESOURCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("timecodeSource"))
val TIMECODESTART_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("timecodeStart"))
val VIDEOGENERATOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("videoGenerator"))
val VIDEOSELECTOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("videoSelector"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AUDIOSELECTORGROUPS_DESCRIPTOR)
field(AUDIOSELECTORS_DESCRIPTOR)
field(CAPTIONSELECTORS_DESCRIPTOR)
field(CROP_DESCRIPTOR)
field(DEBLOCKFILTER_DESCRIPTOR)
field(DECRYPTIONSETTINGS_DESCRIPTOR)
field(DENOISEFILTER_DESCRIPTOR)
field(DOLBYVISIONMETADATAXML_DESCRIPTOR)
field(FILEINPUT_DESCRIPTOR)
field(FILTERENABLE_DESCRIPTOR)
field(FILTERSTRENGTH_DESCRIPTOR)
field(IMAGEINSERTER_DESCRIPTOR)
field(INPUTCLIPPINGS_DESCRIPTOR)
field(INPUTSCANTYPE_DESCRIPTOR)
field(POSITION_DESCRIPTOR)
field(PROGRAMNUMBER_DESCRIPTOR)
field(PSICONTROL_DESCRIPTOR)
field(SUPPLEMENTALIMPS_DESCRIPTOR)
field(TIMECODESOURCE_DESCRIPTOR)
field(TIMECODESTART_DESCRIPTOR)
field(VIDEOGENERATOR_DESCRIPTOR)
field(VIDEOSELECTOR_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.audioSelectorGroups != null) {
mapField(AUDIOSELECTORGROUPS_DESCRIPTOR) {
input.audioSelectorGroups.forEach { (key, value) -> entry(key, asSdkSerializable(value, ::serializeAudioSelectorGroupDocument)) }
}
}
if (input.audioSelectors != null) {
mapField(AUDIOSELECTORS_DESCRIPTOR) {
input.audioSelectors.forEach { (key, value) -> entry(key, asSdkSerializable(value, ::serializeAudioSelectorDocument)) }
}
}
if (input.captionSelectors != null) {
mapField(CAPTIONSELECTORS_DESCRIPTOR) {
input.captionSelectors.forEach { (key, value) -> entry(key, asSdkSerializable(value, ::serializeCaptionSelectorDocument)) }
}
}
input.crop?.let { field(CROP_DESCRIPTOR, it, ::serializeRectangleDocument) }
input.deblockFilter?.let { field(DEBLOCKFILTER_DESCRIPTOR, it.value) }
input.decryptionSettings?.let { field(DECRYPTIONSETTINGS_DESCRIPTOR, it, ::serializeInputDecryptionSettingsDocument) }
input.denoiseFilter?.let { field(DENOISEFILTER_DESCRIPTOR, it.value) }
input.dolbyVisionMetadataXml?.let { field(DOLBYVISIONMETADATAXML_DESCRIPTOR, it) }
input.fileInput?.let { field(FILEINPUT_DESCRIPTOR, it) }
input.filterEnable?.let { field(FILTERENABLE_DESCRIPTOR, it.value) }
if (input.filterStrength != 0) field(FILTERSTRENGTH_DESCRIPTOR, input.filterStrength)
input.imageInserter?.let { field(IMAGEINSERTER_DESCRIPTOR, it, ::serializeImageInserterDocument) }
if (input.inputClippings != null) {
listField(INPUTCLIPPINGS_DESCRIPTOR) {
for (el0 in input.inputClippings) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeInputClippingDocument))
}
}
}
input.inputScanType?.let { field(INPUTSCANTYPE_DESCRIPTOR, it.value) }
input.position?.let { field(POSITION_DESCRIPTOR, it, ::serializeRectangleDocument) }
if (input.programNumber != 0) field(PROGRAMNUMBER_DESCRIPTOR, input.programNumber)
input.psiControl?.let { field(PSICONTROL_DESCRIPTOR, it.value) }
if (input.supplementalImps != null) {
listField(SUPPLEMENTALIMPS_DESCRIPTOR) {
for (el0 in input.supplementalImps) {
serializeString(el0)
}
}
}
input.timecodeSource?.let { field(TIMECODESOURCE_DESCRIPTOR, it.value) }
input.timecodeStart?.let { field(TIMECODESTART_DESCRIPTOR, it) }
input.videoGenerator?.let { field(VIDEOGENERATOR_DESCRIPTOR, it, ::serializeInputVideoGeneratorDocument) }
input.videoSelector?.let { field(VIDEOSELECTOR_DESCRIPTOR, it, ::serializeVideoSelectorDocument) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy