commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.RdsConfigurationDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.serde
import aws.sdk.kotlin.services.databasemigrationservice.model.RdsConfiguration
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeRdsConfigurationDocument(deserializer: Deserializer): RdsConfiguration {
val builder = RdsConfiguration.Builder()
val DEPLOYMENTOPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DeploymentOption"))
val ENGINEEDITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EngineEdition"))
val ENGINEVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EngineVersion"))
val INSTANCEMEMORY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("InstanceMemory"))
val INSTANCETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("InstanceType"))
val INSTANCEVCPU_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("InstanceVcpu"))
val STORAGEIOPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StorageIops"))
val STORAGESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StorageSize"))
val STORAGETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("StorageType"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(DEPLOYMENTOPTION_DESCRIPTOR)
field(ENGINEEDITION_DESCRIPTOR)
field(ENGINEVERSION_DESCRIPTOR)
field(INSTANCEMEMORY_DESCRIPTOR)
field(INSTANCETYPE_DESCRIPTOR)
field(INSTANCEVCPU_DESCRIPTOR)
field(STORAGEIOPS_DESCRIPTOR)
field(STORAGESIZE_DESCRIPTOR)
field(STORAGETYPE_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
DEPLOYMENTOPTION_DESCRIPTOR.index -> builder.deploymentOption = deserializeString()
ENGINEEDITION_DESCRIPTOR.index -> builder.engineEdition = deserializeString()
ENGINEVERSION_DESCRIPTOR.index -> builder.engineVersion = deserializeString()
INSTANCEMEMORY_DESCRIPTOR.index -> builder.instanceMemory = deserializeDouble()
INSTANCETYPE_DESCRIPTOR.index -> builder.instanceType = deserializeString()
INSTANCEVCPU_DESCRIPTOR.index -> builder.instanceVcpu = deserializeDouble()
STORAGEIOPS_DESCRIPTOR.index -> builder.storageIops = deserializeInt()
STORAGESIZE_DESCRIPTOR.index -> builder.storageSize = deserializeInt()
STORAGETYPE_DESCRIPTOR.index -> builder.storageType = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy