All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.serde.MediaInsightsPipelineConfigurationElementDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show 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.MediaInsightsPipelineConfigurationElement
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 serializeMediaInsightsPipelineConfigurationElementDocument(serializer: Serializer, input: MediaInsightsPipelineConfigurationElement) {
    val AMAZONTRANSCRIBECALLANALYTICSPROCESSORCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AmazonTranscribeCallAnalyticsProcessorConfiguration"))
    val AMAZONTRANSCRIBEPROCESSORCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AmazonTranscribeProcessorConfiguration"))
    val KINESISDATASTREAMSINKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("KinesisDataStreamSinkConfiguration"))
    val LAMBDAFUNCTIONSINKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("LambdaFunctionSinkConfiguration"))
    val S3RECORDINGSINKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3RecordingSinkConfiguration"))
    val SNSTOPICSINKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SnsTopicSinkConfiguration"))
    val SQSQUEUESINKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SqsQueueSinkConfiguration"))
    val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Type"))
    val VOICEANALYTICSPROCESSORCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VoiceAnalyticsProcessorConfiguration"))
    val VOICEENHANCEMENTSINKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VoiceEnhancementSinkConfiguration"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(AMAZONTRANSCRIBECALLANALYTICSPROCESSORCONFIGURATION_DESCRIPTOR)
        field(AMAZONTRANSCRIBEPROCESSORCONFIGURATION_DESCRIPTOR)
        field(KINESISDATASTREAMSINKCONFIGURATION_DESCRIPTOR)
        field(LAMBDAFUNCTIONSINKCONFIGURATION_DESCRIPTOR)
        field(S3RECORDINGSINKCONFIGURATION_DESCRIPTOR)
        field(SNSTOPICSINKCONFIGURATION_DESCRIPTOR)
        field(SQSQUEUESINKCONFIGURATION_DESCRIPTOR)
        field(TYPE_DESCRIPTOR)
        field(VOICEANALYTICSPROCESSORCONFIGURATION_DESCRIPTOR)
        field(VOICEENHANCEMENTSINKCONFIGURATION_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(TYPE_DESCRIPTOR, input.type.value)
        input.amazonTranscribeCallAnalyticsProcessorConfiguration?.let { field(AMAZONTRANSCRIBECALLANALYTICSPROCESSORCONFIGURATION_DESCRIPTOR, it, ::serializeAmazonTranscribeCallAnalyticsProcessorConfigurationDocument) }
        input.amazonTranscribeProcessorConfiguration?.let { field(AMAZONTRANSCRIBEPROCESSORCONFIGURATION_DESCRIPTOR, it, ::serializeAmazonTranscribeProcessorConfigurationDocument) }
        input.kinesisDataStreamSinkConfiguration?.let { field(KINESISDATASTREAMSINKCONFIGURATION_DESCRIPTOR, it, ::serializeKinesisDataStreamSinkConfigurationDocument) }
        input.s3RecordingSinkConfiguration?.let { field(S3RECORDINGSINKCONFIGURATION_DESCRIPTOR, it, ::serializeS3RecordingSinkConfigurationDocument) }
        input.voiceAnalyticsProcessorConfiguration?.let { field(VOICEANALYTICSPROCESSORCONFIGURATION_DESCRIPTOR, it, ::serializeVoiceAnalyticsProcessorConfigurationDocument) }
        input.lambdaFunctionSinkConfiguration?.let { field(LAMBDAFUNCTIONSINKCONFIGURATION_DESCRIPTOR, it, ::serializeLambdaFunctionSinkConfigurationDocument) }
        input.sqsQueueSinkConfiguration?.let { field(SQSQUEUESINKCONFIGURATION_DESCRIPTOR, it, ::serializeSqsQueueSinkConfigurationDocument) }
        input.snsTopicSinkConfiguration?.let { field(SNSTOPICSINKCONFIGURATION_DESCRIPTOR, it, ::serializeSnsTopicSinkConfigurationDocument) }
        input.voiceEnhancementSinkConfiguration?.let { field(VOICEENHANCEMENTSINKCONFIGURATION_DESCRIPTOR, it, ::serializeVoiceEnhancementSinkConfigurationDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy