commonMain.aws.sdk.kotlin.services.neptune.serde.DbEngineVersionDocumentDeserializer.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.DbEngineVersion
import aws.smithy.kotlin.runtime.serde.getOrDeserializeErr
import aws.smithy.kotlin.runtime.serde.parseBoolean
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
import aws.smithy.kotlin.runtime.serde.xml.tryData
internal fun deserializeDbEngineVersionDocument(reader: XmlTagReader): DbEngineVersion {
val builder = DbEngineVersion.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// Engine com.amazonaws.neptune#DBEngineVersion$Engine
"Engine" -> builder.engine = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// EngineVersion com.amazonaws.neptune#DBEngineVersion$EngineVersion
"EngineVersion" -> builder.engineVersion = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// DBParameterGroupFamily com.amazonaws.neptune#DBEngineVersion$DBParameterGroupFamily
"DBParameterGroupFamily" -> builder.dbParameterGroupFamily = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// DBEngineDescription com.amazonaws.neptune#DBEngineVersion$DBEngineDescription
"DBEngineDescription" -> builder.dbEngineDescription = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// DBEngineVersionDescription com.amazonaws.neptune#DBEngineVersion$DBEngineVersionDescription
"DBEngineVersionDescription" -> builder.dbEngineVersionDescription = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// DefaultCharacterSet com.amazonaws.neptune#DBEngineVersion$DefaultCharacterSet
"DefaultCharacterSet" -> builder.defaultCharacterSet = deserializeCharacterSetDocument(curr)
// SupportedCharacterSets com.amazonaws.neptune#DBEngineVersion$SupportedCharacterSets
"SupportedCharacterSets" -> builder.supportedCharacterSets = deserializeSupportedCharacterSetsListShape(curr)
// ValidUpgradeTarget com.amazonaws.neptune#DBEngineVersion$ValidUpgradeTarget
"ValidUpgradeTarget" -> builder.validUpgradeTarget = deserializeValidUpgradeTargetListShape(curr)
// SupportedTimezones com.amazonaws.neptune#DBEngineVersion$SupportedTimezones
"SupportedTimezones" -> builder.supportedTimezones = deserializeSupportedTimezonesListShape(curr)
// ExportableLogTypes com.amazonaws.neptune#DBEngineVersion$ExportableLogTypes
"ExportableLogTypes" -> builder.exportableLogTypes = deserializeLogTypeListShape(curr)
// SupportsLogExportsToCloudwatchLogs com.amazonaws.neptune#DBEngineVersion$SupportsLogExportsToCloudwatchLogs
"SupportsLogExportsToCloudwatchLogs" -> builder.supportsLogExportsToCloudwatchLogs = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// SupportsReadReplica com.amazonaws.neptune#DBEngineVersion$SupportsReadReplica
"SupportsReadReplica" -> builder.supportsReadReplica = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// SupportsGlobalDatabases com.amazonaws.neptune#DBEngineVersion$SupportsGlobalDatabases
"SupportsGlobalDatabases" -> builder.supportsGlobalDatabases = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}