commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.serde.AmazonTranscribeCallAnalyticsProcessorConfigurationDocumentSerializer.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.serde
import aws.sdk.kotlin.services.chimesdkmediapipelines.model.AmazonTranscribeCallAnalyticsProcessorConfiguration
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 serializeAmazonTranscribeCallAnalyticsProcessorConfigurationDocument(serializer: Serializer, input: AmazonTranscribeCallAnalyticsProcessorConfiguration) {
val CALLANALYTICSSTREAMCATEGORIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("CallAnalyticsStreamCategories"))
val CONTENTIDENTIFICATIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ContentIdentificationType"))
val CONTENTREDACTIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ContentRedactionType"))
val ENABLEPARTIALRESULTSSTABILIZATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnablePartialResultsStabilization"))
val FILTERPARTIALRESULTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("FilterPartialResults"))
val LANGUAGECODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("LanguageCode"))
val LANGUAGEMODELNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LanguageModelName"))
val PARTIALRESULTSSTABILITY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PartialResultsStability"))
val PIIENTITYTYPES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("PiiEntityTypes"))
val POSTCALLANALYTICSSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("PostCallAnalyticsSettings"))
val VOCABULARYFILTERMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("VocabularyFilterMethod"))
val VOCABULARYFILTERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VocabularyFilterName"))
val VOCABULARYNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VocabularyName"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CALLANALYTICSSTREAMCATEGORIES_DESCRIPTOR)
field(CONTENTIDENTIFICATIONTYPE_DESCRIPTOR)
field(CONTENTREDACTIONTYPE_DESCRIPTOR)
field(ENABLEPARTIALRESULTSSTABILIZATION_DESCRIPTOR)
field(FILTERPARTIALRESULTS_DESCRIPTOR)
field(LANGUAGECODE_DESCRIPTOR)
field(LANGUAGEMODELNAME_DESCRIPTOR)
field(PARTIALRESULTSSTABILITY_DESCRIPTOR)
field(PIIENTITYTYPES_DESCRIPTOR)
field(POSTCALLANALYTICSSETTINGS_DESCRIPTOR)
field(VOCABULARYFILTERMETHOD_DESCRIPTOR)
field(VOCABULARYFILTERNAME_DESCRIPTOR)
field(VOCABULARYNAME_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(LANGUAGECODE_DESCRIPTOR, input.languageCode.value)
input.vocabularyName?.let { field(VOCABULARYNAME_DESCRIPTOR, it) }
input.vocabularyFilterName?.let { field(VOCABULARYFILTERNAME_DESCRIPTOR, it) }
input.vocabularyFilterMethod?.let { field(VOCABULARYFILTERMETHOD_DESCRIPTOR, it.value) }
input.languageModelName?.let { field(LANGUAGEMODELNAME_DESCRIPTOR, it) }
if (input.enablePartialResultsStabilization != false) field(ENABLEPARTIALRESULTSSTABILIZATION_DESCRIPTOR, input.enablePartialResultsStabilization)
input.partialResultsStability?.let { field(PARTIALRESULTSSTABILITY_DESCRIPTOR, it.value) }
input.contentIdentificationType?.let { field(CONTENTIDENTIFICATIONTYPE_DESCRIPTOR, it.value) }
input.contentRedactionType?.let { field(CONTENTREDACTIONTYPE_DESCRIPTOR, it.value) }
input.piiEntityTypes?.let { field(PIIENTITYTYPES_DESCRIPTOR, it) }
if (input.filterPartialResults != false) field(FILTERPARTIALRESULTS_DESCRIPTOR, input.filterPartialResults)
input.postCallAnalyticsSettings?.let { field(POSTCALLANALYTICSSETTINGS_DESCRIPTOR, it, ::serializePostCallAnalyticsSettingsDocument) }
if (input.callAnalyticsStreamCategories != null) {
listField(CALLANALYTICSSTREAMCATEGORIES_DESCRIPTOR) {
for (el0 in input.callAnalyticsStreamCategories) {
serializeString(el0)
}
}
}
}
}