commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.serde.GridViewConfigurationDocumentSerializer.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.GridViewConfiguration
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 serializeGridViewConfigurationDocument(serializer: Serializer, input: GridViewConfiguration) {
val ACTIVESPEAKERONLYCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ActiveSpeakerOnlyConfiguration"))
val CANVASORIENTATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CanvasOrientation"))
val CONTENTSHARELAYOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ContentShareLayout"))
val HORIZONTALLAYOUTCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("HorizontalLayoutConfiguration"))
val PRESENTERONLYCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("PresenterOnlyConfiguration"))
val VERTICALLAYOUTCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VerticalLayoutConfiguration"))
val VIDEOATTRIBUTE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VideoAttribute"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ACTIVESPEAKERONLYCONFIGURATION_DESCRIPTOR)
field(CANVASORIENTATION_DESCRIPTOR)
field(CONTENTSHARELAYOUT_DESCRIPTOR)
field(HORIZONTALLAYOUTCONFIGURATION_DESCRIPTOR)
field(PRESENTERONLYCONFIGURATION_DESCRIPTOR)
field(VERTICALLAYOUTCONFIGURATION_DESCRIPTOR)
field(VIDEOATTRIBUTE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(CONTENTSHARELAYOUT_DESCRIPTOR, input.contentShareLayout.value)
input.presenterOnlyConfiguration?.let { field(PRESENTERONLYCONFIGURATION_DESCRIPTOR, it, ::serializePresenterOnlyConfigurationDocument) }
input.activeSpeakerOnlyConfiguration?.let { field(ACTIVESPEAKERONLYCONFIGURATION_DESCRIPTOR, it, ::serializeActiveSpeakerOnlyConfigurationDocument) }
input.horizontalLayoutConfiguration?.let { field(HORIZONTALLAYOUTCONFIGURATION_DESCRIPTOR, it, ::serializeHorizontalLayoutConfigurationDocument) }
input.verticalLayoutConfiguration?.let { field(VERTICALLAYOUTCONFIGURATION_DESCRIPTOR, it, ::serializeVerticalLayoutConfigurationDocument) }
input.videoAttribute?.let { field(VIDEOATTRIBUTE_DESCRIPTOR, it, ::serializeVideoAttributeDocument) }
input.canvasOrientation?.let { field(CANVASORIENTATION_DESCRIPTOR, it.value) }
}
}