commonMain.aws.sdk.kotlin.services.neptune.serde.OrderableDbInstanceOptionDocumentDeserializer.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.OrderableDbInstanceOption
import aws.smithy.kotlin.runtime.serde.getOrDeserializeErr
import aws.smithy.kotlin.runtime.serde.parseBoolean
import aws.smithy.kotlin.runtime.serde.parseDouble
import aws.smithy.kotlin.runtime.serde.parseInt
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
import aws.smithy.kotlin.runtime.serde.xml.tryData
internal fun deserializeOrderableDbInstanceOptionDocument(reader: XmlTagReader): OrderableDbInstanceOption {
val builder = OrderableDbInstanceOption.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// Engine com.amazonaws.neptune#OrderableDBInstanceOption$Engine
"Engine" -> builder.engine = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// EngineVersion com.amazonaws.neptune#OrderableDBInstanceOption$EngineVersion
"EngineVersion" -> builder.engineVersion = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// DBInstanceClass com.amazonaws.neptune#OrderableDBInstanceOption$DBInstanceClass
"DBInstanceClass" -> builder.dbInstanceClass = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// LicenseModel com.amazonaws.neptune#OrderableDBInstanceOption$LicenseModel
"LicenseModel" -> builder.licenseModel = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// AvailabilityZones com.amazonaws.neptune#OrderableDBInstanceOption$AvailabilityZones
"AvailabilityZones" -> builder.availabilityZones = deserializeAvailabilityZoneListShape(curr)
// MultiAZCapable com.amazonaws.neptune#OrderableDBInstanceOption$MultiAZCapable
"MultiAZCapable" -> builder.multiAzCapable = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// ReadReplicaCapable com.amazonaws.neptune#OrderableDBInstanceOption$ReadReplicaCapable
"ReadReplicaCapable" -> builder.readReplicaCapable = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// Vpc com.amazonaws.neptune#OrderableDBInstanceOption$Vpc
"Vpc" -> builder.vpc = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// SupportsStorageEncryption com.amazonaws.neptune#OrderableDBInstanceOption$SupportsStorageEncryption
"SupportsStorageEncryption" -> builder.supportsStorageEncryption = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// StorageType com.amazonaws.neptune#OrderableDBInstanceOption$StorageType
"StorageType" -> builder.storageType = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.neptune#String`)" }
// SupportsIops com.amazonaws.neptune#OrderableDBInstanceOption$SupportsIops
"SupportsIops" -> builder.supportsIops = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// SupportsEnhancedMonitoring com.amazonaws.neptune#OrderableDBInstanceOption$SupportsEnhancedMonitoring
"SupportsEnhancedMonitoring" -> builder.supportsEnhancedMonitoring = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// SupportsIAMDatabaseAuthentication com.amazonaws.neptune#OrderableDBInstanceOption$SupportsIAMDatabaseAuthentication
"SupportsIAMDatabaseAuthentication" -> builder.supportsIamDatabaseAuthentication = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// SupportsPerformanceInsights com.amazonaws.neptune#OrderableDBInstanceOption$SupportsPerformanceInsights
"SupportsPerformanceInsights" -> builder.supportsPerformanceInsights = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
// MinStorageSize com.amazonaws.neptune#OrderableDBInstanceOption$MinStorageSize
"MinStorageSize" -> builder.minStorageSize = curr.tryData()
.parseInt()
.getOrDeserializeErr { "expected (integer: `com.amazonaws.neptune#IntegerOptional`)" }
// MaxStorageSize com.amazonaws.neptune#OrderableDBInstanceOption$MaxStorageSize
"MaxStorageSize" -> builder.maxStorageSize = curr.tryData()
.parseInt()
.getOrDeserializeErr { "expected (integer: `com.amazonaws.neptune#IntegerOptional`)" }
// MinIopsPerDbInstance com.amazonaws.neptune#OrderableDBInstanceOption$MinIopsPerDbInstance
"MinIopsPerDbInstance" -> builder.minIopsPerDbInstance = curr.tryData()
.parseInt()
.getOrDeserializeErr { "expected (integer: `com.amazonaws.neptune#IntegerOptional`)" }
// MaxIopsPerDbInstance com.amazonaws.neptune#OrderableDBInstanceOption$MaxIopsPerDbInstance
"MaxIopsPerDbInstance" -> builder.maxIopsPerDbInstance = curr.tryData()
.parseInt()
.getOrDeserializeErr { "expected (integer: `com.amazonaws.neptune#IntegerOptional`)" }
// MinIopsPerGib com.amazonaws.neptune#OrderableDBInstanceOption$MinIopsPerGib
"MinIopsPerGib" -> builder.minIopsPerGib = curr.tryData()
.parseDouble()
.getOrDeserializeErr { "expected (double: `com.amazonaws.neptune#DoubleOptional`)" }
// MaxIopsPerGib com.amazonaws.neptune#OrderableDBInstanceOption$MaxIopsPerGib
"MaxIopsPerGib" -> builder.maxIopsPerGib = curr.tryData()
.parseDouble()
.getOrDeserializeErr { "expected (double: `com.amazonaws.neptune#DoubleOptional`)" }
// SupportsGlobalDatabases com.amazonaws.neptune#OrderableDBInstanceOption$SupportsGlobalDatabases
"SupportsGlobalDatabases" -> builder.supportsGlobalDatabases = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.neptune#Boolean`)" }
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}