commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.OracleDataProviderSettingsDocumentDeserializer.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.DmsSslModeValue
import aws.sdk.kotlin.services.databasemigrationservice.model.OracleDataProviderSettings
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 deserializeOracleDataProviderSettingsDocument(deserializer: Deserializer): OracleDataProviderSettings {
val builder = OracleDataProviderSettings.Builder()
val ASMSERVER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AsmServer"))
val CERTIFICATEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CertificateArn"))
val DATABASENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatabaseName"))
val PORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Port"))
val SECRETSMANAGERORACLEASMACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerOracleAsmAccessRoleArn"))
val SECRETSMANAGERORACLEASMSECRETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerOracleAsmSecretId"))
val SECRETSMANAGERSECURITYDBENCRYPTIONACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerSecurityDbEncryptionAccessRoleArn"))
val SECRETSMANAGERSECURITYDBENCRYPTIONSECRETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerSecurityDbEncryptionSecretId"))
val SERVERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServerName"))
val SSLMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SslMode"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ASMSERVER_DESCRIPTOR)
field(CERTIFICATEARN_DESCRIPTOR)
field(DATABASENAME_DESCRIPTOR)
field(PORT_DESCRIPTOR)
field(SECRETSMANAGERORACLEASMACCESSROLEARN_DESCRIPTOR)
field(SECRETSMANAGERORACLEASMSECRETID_DESCRIPTOR)
field(SECRETSMANAGERSECURITYDBENCRYPTIONACCESSROLEARN_DESCRIPTOR)
field(SECRETSMANAGERSECURITYDBENCRYPTIONSECRETID_DESCRIPTOR)
field(SERVERNAME_DESCRIPTOR)
field(SSLMODE_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ASMSERVER_DESCRIPTOR.index -> builder.asmServer = deserializeString()
CERTIFICATEARN_DESCRIPTOR.index -> builder.certificateArn = deserializeString()
DATABASENAME_DESCRIPTOR.index -> builder.databaseName = deserializeString()
PORT_DESCRIPTOR.index -> builder.port = deserializeInt()
SECRETSMANAGERORACLEASMACCESSROLEARN_DESCRIPTOR.index -> builder.secretsManagerOracleAsmAccessRoleArn = deserializeString()
SECRETSMANAGERORACLEASMSECRETID_DESCRIPTOR.index -> builder.secretsManagerOracleAsmSecretId = deserializeString()
SECRETSMANAGERSECURITYDBENCRYPTIONACCESSROLEARN_DESCRIPTOR.index -> builder.secretsManagerSecurityDbEncryptionAccessRoleArn = deserializeString()
SECRETSMANAGERSECURITYDBENCRYPTIONSECRETID_DESCRIPTOR.index -> builder.secretsManagerSecurityDbEncryptionSecretId = deserializeString()
SERVERNAME_DESCRIPTOR.index -> builder.serverName = deserializeString()
SSLMODE_DESCRIPTOR.index -> builder.sslMode = deserializeString().let { DmsSslModeValue.fromValue(it) }
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy