commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.serde.ArtifactsConcatenationConfigurationDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmediapipelines-jvm Show documentation
Show all versions of chimesdkmediapipelines-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Media Pipelines
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.serde
import aws.sdk.kotlin.services.chimesdkmediapipelines.model.ArtifactsConcatenationConfiguration
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeArtifactsConcatenationConfigurationDocument(deserializer: Deserializer): ArtifactsConcatenationConfiguration {
val builder = ArtifactsConcatenationConfiguration.Builder()
val AUDIO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Audio"))
val COMPOSITEDVIDEO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CompositedVideo"))
val CONTENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Content"))
val DATACHANNEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DataChannel"))
val MEETINGEVENTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("MeetingEvents"))
val TRANSCRIPTIONMESSAGES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("TranscriptionMessages"))
val VIDEO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Video"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AUDIO_DESCRIPTOR)
field(COMPOSITEDVIDEO_DESCRIPTOR)
field(CONTENT_DESCRIPTOR)
field(DATACHANNEL_DESCRIPTOR)
field(MEETINGEVENTS_DESCRIPTOR)
field(TRANSCRIPTIONMESSAGES_DESCRIPTOR)
field(VIDEO_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
AUDIO_DESCRIPTOR.index -> builder.audio = deserializeAudioConcatenationConfigurationDocument(deserializer)
COMPOSITEDVIDEO_DESCRIPTOR.index -> builder.compositedVideo = deserializeCompositedVideoConcatenationConfigurationDocument(deserializer)
CONTENT_DESCRIPTOR.index -> builder.content = deserializeContentConcatenationConfigurationDocument(deserializer)
DATACHANNEL_DESCRIPTOR.index -> builder.dataChannel = deserializeDataChannelConcatenationConfigurationDocument(deserializer)
MEETINGEVENTS_DESCRIPTOR.index -> builder.meetingEvents = deserializeMeetingEventsConcatenationConfigurationDocument(deserializer)
TRANSCRIPTIONMESSAGES_DESCRIPTOR.index -> builder.transcriptionMessages = deserializeTranscriptionMessagesConcatenationConfigurationDocument(deserializer)
VIDEO_DESCRIPTOR.index -> builder.video = deserializeVideoConcatenationConfigurationDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}