commonMain.aws.sdk.kotlin.services.neptune.serde.ParameterDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.serde
import aws.sdk.kotlin.services.neptune.model.Parameter
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.formurl.FormUrlSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun serializeParameterDocument(serializer: Serializer, input: Parameter) {
val ALLOWEDVALUES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("AllowedValues"))
val APPLYMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, FormUrlSerialName("ApplyMethod"))
val APPLYTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("ApplyType"))
val DATATYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("DataType"))
val DESCRIPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("Description"))
val ISMODIFIABLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, FormUrlSerialName("IsModifiable"))
val MINIMUMENGINEVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("MinimumEngineVersion"))
val PARAMETERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("ParameterName"))
val PARAMETERVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("ParameterValue"))
val SOURCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("Source"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
trait(FormUrlSerialName("Parameter"))
field(ALLOWEDVALUES_DESCRIPTOR)
field(APPLYMETHOD_DESCRIPTOR)
field(APPLYTYPE_DESCRIPTOR)
field(DATATYPE_DESCRIPTOR)
field(DESCRIPTION_DESCRIPTOR)
field(ISMODIFIABLE_DESCRIPTOR)
field(MINIMUMENGINEVERSION_DESCRIPTOR)
field(PARAMETERNAME_DESCRIPTOR)
field(PARAMETERVALUE_DESCRIPTOR)
field(SOURCE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.parameterName?.let { field(PARAMETERNAME_DESCRIPTOR, it) }
input.parameterValue?.let { field(PARAMETERVALUE_DESCRIPTOR, it) }
input.description?.let { field(DESCRIPTION_DESCRIPTOR, it) }
input.source?.let { field(SOURCE_DESCRIPTOR, it) }
input.applyType?.let { field(APPLYTYPE_DESCRIPTOR, it) }
input.dataType?.let { field(DATATYPE_DESCRIPTOR, it) }
input.allowedValues?.let { field(ALLOWEDVALUES_DESCRIPTOR, it) }
input.isModifiable?.let { field(ISMODIFIABLE_DESCRIPTOR, it) }
input.minimumEngineVersion?.let { field(MINIMUMENGINEVERSION_DESCRIPTOR, it) }
input.applyMethod?.let { field(APPLYMETHOD_DESCRIPTOR, it.value) }
}
}