commonMain.aws.sdk.kotlin.services.elastictranscoder.serde.JobInputDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elastictranscoder-jvm Show documentation
Show all versions of elastictranscoder-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Transcoder
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elastictranscoder.serde
import aws.sdk.kotlin.services.elastictranscoder.model.JobInput
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 serializeJobInputDocument(serializer: Serializer, input: JobInput) {
val ASPECTRATIO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AspectRatio"))
val CONTAINER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Container"))
val DETECTEDPROPERTIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DetectedProperties"))
val ENCRYPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Encryption"))
val FRAMERATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("FrameRate"))
val INPUTCAPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputCaptions"))
val INTERLACED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Interlaced"))
val KEY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Key"))
val RESOLUTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Resolution"))
val TIMESPAN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("TimeSpan"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ASPECTRATIO_DESCRIPTOR)
field(CONTAINER_DESCRIPTOR)
field(DETECTEDPROPERTIES_DESCRIPTOR)
field(ENCRYPTION_DESCRIPTOR)
field(FRAMERATE_DESCRIPTOR)
field(INPUTCAPTIONS_DESCRIPTOR)
field(INTERLACED_DESCRIPTOR)
field(KEY_DESCRIPTOR)
field(RESOLUTION_DESCRIPTOR)
field(TIMESPAN_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.key?.let { field(KEY_DESCRIPTOR, it) }
input.frameRate?.let { field(FRAMERATE_DESCRIPTOR, it) }
input.resolution?.let { field(RESOLUTION_DESCRIPTOR, it) }
input.aspectRatio?.let { field(ASPECTRATIO_DESCRIPTOR, it) }
input.interlaced?.let { field(INTERLACED_DESCRIPTOR, it) }
input.container?.let { field(CONTAINER_DESCRIPTOR, it) }
input.encryption?.let { field(ENCRYPTION_DESCRIPTOR, it, ::serializeEncryptionDocument) }
input.timeSpan?.let { field(TIMESPAN_DESCRIPTOR, it, ::serializeTimeSpanDocument) }
input.inputCaptions?.let { field(INPUTCAPTIONS_DESCRIPTOR, it, ::serializeInputCaptionsDocument) }
input.detectedProperties?.let { field(DETECTEDPROPERTIES_DESCRIPTOR, it, ::serializeDetectedPropertiesDocument) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy