commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.serde.AmazonTranscribeProcessorConfigurationDocumentSerializer.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.AmazonTranscribeProcessorConfiguration
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 serializeAmazonTranscribeProcessorConfigurationDocument(serializer: Serializer, input: AmazonTranscribeProcessorConfiguration) {
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 IDENTIFYLANGUAGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IdentifyLanguage"))
val IDENTIFYMULTIPLELANGUAGES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IdentifyMultipleLanguages"))
val LANGUAGECODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("LanguageCode"))
val LANGUAGEMODELNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LanguageModelName"))
val LANGUAGEOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LanguageOptions"))
val PARTIALRESULTSSTABILITY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PartialResultsStability"))
val PIIENTITYTYPES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("PiiEntityTypes"))
val PREFERREDLANGUAGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PreferredLanguage"))
val SHOWSPEAKERLABEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ShowSpeakerLabel"))
val VOCABULARYFILTERMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("VocabularyFilterMethod"))
val VOCABULARYFILTERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VocabularyFilterName"))
val VOCABULARYFILTERNAMES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VocabularyFilterNames"))
val VOCABULARYNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VocabularyName"))
val VOCABULARYNAMES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VocabularyNames"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CONTENTIDENTIFICATIONTYPE_DESCRIPTOR)
field(CONTENTREDACTIONTYPE_DESCRIPTOR)
field(ENABLEPARTIALRESULTSSTABILIZATION_DESCRIPTOR)
field(FILTERPARTIALRESULTS_DESCRIPTOR)
field(IDENTIFYLANGUAGE_DESCRIPTOR)
field(IDENTIFYMULTIPLELANGUAGES_DESCRIPTOR)
field(LANGUAGECODE_DESCRIPTOR)
field(LANGUAGEMODELNAME_DESCRIPTOR)
field(LANGUAGEOPTIONS_DESCRIPTOR)
field(PARTIALRESULTSSTABILITY_DESCRIPTOR)
field(PIIENTITYTYPES_DESCRIPTOR)
field(PREFERREDLANGUAGE_DESCRIPTOR)
field(SHOWSPEAKERLABEL_DESCRIPTOR)
field(VOCABULARYFILTERMETHOD_DESCRIPTOR)
field(VOCABULARYFILTERNAME_DESCRIPTOR)
field(VOCABULARYFILTERNAMES_DESCRIPTOR)
field(VOCABULARYNAME_DESCRIPTOR)
field(VOCABULARYNAMES_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.languageCode?.let { field(LANGUAGECODE_DESCRIPTOR, it.value) }
input.vocabularyName?.let { field(VOCABULARYNAME_DESCRIPTOR, it) }
input.vocabularyFilterName?.let { field(VOCABULARYFILTERNAME_DESCRIPTOR, it) }
input.vocabularyFilterMethod?.let { field(VOCABULARYFILTERMETHOD_DESCRIPTOR, it.value) }
if (input.showSpeakerLabel != false) field(SHOWSPEAKERLABEL_DESCRIPTOR, input.showSpeakerLabel)
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) }
input.languageModelName?.let { field(LANGUAGEMODELNAME_DESCRIPTOR, it) }
if (input.filterPartialResults != false) field(FILTERPARTIALRESULTS_DESCRIPTOR, input.filterPartialResults)
if (input.identifyLanguage != false) field(IDENTIFYLANGUAGE_DESCRIPTOR, input.identifyLanguage)
if (input.identifyMultipleLanguages != false) field(IDENTIFYMULTIPLELANGUAGES_DESCRIPTOR, input.identifyMultipleLanguages)
input.languageOptions?.let { field(LANGUAGEOPTIONS_DESCRIPTOR, it) }
input.preferredLanguage?.let { field(PREFERREDLANGUAGE_DESCRIPTOR, it.value) }
input.vocabularyNames?.let { field(VOCABULARYNAMES_DESCRIPTOR, it) }
input.vocabularyFilterNames?.let { field(VOCABULARYFILTERNAMES_DESCRIPTOR, it) }
}
}