commonMain.aws.sdk.kotlin.services.elastictranscoder.serde.CreateJobOutputDocumentSerializer.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.CreateJobOutput
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 serializeCreateJobOutputDocument(serializer: Serializer, input: CreateJobOutput) {
val ALBUMART_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AlbumArt"))
val CAPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Captions"))
val COMPOSITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Composition"))
val ENCRYPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Encryption"))
val KEY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Key"))
val PRESETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("PresetId"))
val ROTATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Rotate"))
val SEGMENTDURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SegmentDuration"))
val THUMBNAILENCRYPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ThumbnailEncryption"))
val THUMBNAILPATTERN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ThumbnailPattern"))
val WATERMARKS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Watermarks"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ALBUMART_DESCRIPTOR)
field(CAPTIONS_DESCRIPTOR)
field(COMPOSITION_DESCRIPTOR)
field(ENCRYPTION_DESCRIPTOR)
field(KEY_DESCRIPTOR)
field(PRESETID_DESCRIPTOR)
field(ROTATE_DESCRIPTOR)
field(SEGMENTDURATION_DESCRIPTOR)
field(THUMBNAILENCRYPTION_DESCRIPTOR)
field(THUMBNAILPATTERN_DESCRIPTOR)
field(WATERMARKS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.key?.let { field(KEY_DESCRIPTOR, it) }
input.thumbnailPattern?.let { field(THUMBNAILPATTERN_DESCRIPTOR, it) }
input.thumbnailEncryption?.let { field(THUMBNAILENCRYPTION_DESCRIPTOR, it, ::serializeEncryptionDocument) }
input.rotate?.let { field(ROTATE_DESCRIPTOR, it) }
input.presetId?.let { field(PRESETID_DESCRIPTOR, it) }
input.segmentDuration?.let { field(SEGMENTDURATION_DESCRIPTOR, it) }
if (input.watermarks != null) {
listField(WATERMARKS_DESCRIPTOR) {
for (el0 in input.watermarks) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeJobWatermarkDocument))
}
}
}
input.albumArt?.let { field(ALBUMART_DESCRIPTOR, it, ::serializeJobAlbumArtDocument) }
if (input.composition != null) {
listField(COMPOSITION_DESCRIPTOR) {
for (el0 in input.composition) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeClipDocument))
}
}
}
input.captions?.let { field(CAPTIONS_DESCRIPTOR, it, ::serializeCaptionsDocument) }
input.encryption?.let { field(ENCRYPTION_DESCRIPTOR, it, ::serializeEncryptionDocument) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy