commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.RedshiftSettingsDocumentDeserializer.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.EncryptionModeValue
import aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftSettings
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 deserializeRedshiftSettingsDocument(deserializer: Deserializer): RedshiftSettings {
val builder = RedshiftSettings.Builder()
val ACCEPTANYDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AcceptAnyDate"))
val AFTERCONNECTSCRIPT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AfterConnectScript"))
val BUCKETFOLDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BucketFolder"))
val BUCKETNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BucketName"))
val CASESENSITIVENAMES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CaseSensitiveNames"))
val COMPUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CompUpdate"))
val CONNECTIONTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ConnectionTimeout"))
val DATABASENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatabaseName"))
val DATEFORMAT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DateFormat"))
val EMPTYASNULL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EmptyAsNull"))
val ENCRYPTIONMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("EncryptionMode"))
val EXPLICITIDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ExplicitIds"))
val FILETRANSFERUPLOADSTREAMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("FileTransferUploadStreams"))
val LOADTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("LoadTimeout"))
val MAPBOOLEANASBOOLEAN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("MapBooleanAsBoolean"))
val MAXFILESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxFileSize"))
val PASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Password"))
val PORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Port"))
val REMOVEQUOTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveQuotes"))
val REPLACECHARS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ReplaceChars"))
val REPLACEINVALIDCHARS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ReplaceInvalidChars"))
val SECRETSMANAGERACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerAccessRoleArn"))
val SECRETSMANAGERSECRETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerSecretId"))
val SERVERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServerName"))
val SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServerSideEncryptionKmsKeyId"))
val SERVICEACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServiceAccessRoleArn"))
val TIMEFORMAT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TimeFormat"))
val TRIMBLANKS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("TrimBlanks"))
val TRUNCATECOLUMNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("TruncateColumns"))
val USERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Username"))
val WRITEBUFFERSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("WriteBufferSize"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ACCEPTANYDATE_DESCRIPTOR)
field(AFTERCONNECTSCRIPT_DESCRIPTOR)
field(BUCKETFOLDER_DESCRIPTOR)
field(BUCKETNAME_DESCRIPTOR)
field(CASESENSITIVENAMES_DESCRIPTOR)
field(COMPUPDATE_DESCRIPTOR)
field(CONNECTIONTIMEOUT_DESCRIPTOR)
field(DATABASENAME_DESCRIPTOR)
field(DATEFORMAT_DESCRIPTOR)
field(EMPTYASNULL_DESCRIPTOR)
field(ENCRYPTIONMODE_DESCRIPTOR)
field(EXPLICITIDS_DESCRIPTOR)
field(FILETRANSFERUPLOADSTREAMS_DESCRIPTOR)
field(LOADTIMEOUT_DESCRIPTOR)
field(MAPBOOLEANASBOOLEAN_DESCRIPTOR)
field(MAXFILESIZE_DESCRIPTOR)
field(PASSWORD_DESCRIPTOR)
field(PORT_DESCRIPTOR)
field(REMOVEQUOTES_DESCRIPTOR)
field(REPLACECHARS_DESCRIPTOR)
field(REPLACEINVALIDCHARS_DESCRIPTOR)
field(SECRETSMANAGERACCESSROLEARN_DESCRIPTOR)
field(SECRETSMANAGERSECRETID_DESCRIPTOR)
field(SERVERNAME_DESCRIPTOR)
field(SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR)
field(SERVICEACCESSROLEARN_DESCRIPTOR)
field(TIMEFORMAT_DESCRIPTOR)
field(TRIMBLANKS_DESCRIPTOR)
field(TRUNCATECOLUMNS_DESCRIPTOR)
field(USERNAME_DESCRIPTOR)
field(WRITEBUFFERSIZE_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ACCEPTANYDATE_DESCRIPTOR.index -> builder.acceptAnyDate = deserializeBoolean()
AFTERCONNECTSCRIPT_DESCRIPTOR.index -> builder.afterConnectScript = deserializeString()
BUCKETFOLDER_DESCRIPTOR.index -> builder.bucketFolder = deserializeString()
BUCKETNAME_DESCRIPTOR.index -> builder.bucketName = deserializeString()
CASESENSITIVENAMES_DESCRIPTOR.index -> builder.caseSensitiveNames = deserializeBoolean()
COMPUPDATE_DESCRIPTOR.index -> builder.compUpdate = deserializeBoolean()
CONNECTIONTIMEOUT_DESCRIPTOR.index -> builder.connectionTimeout = deserializeInt()
DATABASENAME_DESCRIPTOR.index -> builder.databaseName = deserializeString()
DATEFORMAT_DESCRIPTOR.index -> builder.dateFormat = deserializeString()
EMPTYASNULL_DESCRIPTOR.index -> builder.emptyAsNull = deserializeBoolean()
ENCRYPTIONMODE_DESCRIPTOR.index -> builder.encryptionMode = deserializeString().let { EncryptionModeValue.fromValue(it) }
EXPLICITIDS_DESCRIPTOR.index -> builder.explicitIds = deserializeBoolean()
FILETRANSFERUPLOADSTREAMS_DESCRIPTOR.index -> builder.fileTransferUploadStreams = deserializeInt()
LOADTIMEOUT_DESCRIPTOR.index -> builder.loadTimeout = deserializeInt()
MAPBOOLEANASBOOLEAN_DESCRIPTOR.index -> builder.mapBooleanAsBoolean = deserializeBoolean()
MAXFILESIZE_DESCRIPTOR.index -> builder.maxFileSize = deserializeInt()
PASSWORD_DESCRIPTOR.index -> builder.password = deserializeString()
PORT_DESCRIPTOR.index -> builder.port = deserializeInt()
REMOVEQUOTES_DESCRIPTOR.index -> builder.removeQuotes = deserializeBoolean()
REPLACECHARS_DESCRIPTOR.index -> builder.replaceChars = deserializeString()
REPLACEINVALIDCHARS_DESCRIPTOR.index -> builder.replaceInvalidChars = deserializeString()
SECRETSMANAGERACCESSROLEARN_DESCRIPTOR.index -> builder.secretsManagerAccessRoleArn = deserializeString()
SECRETSMANAGERSECRETID_DESCRIPTOR.index -> builder.secretsManagerSecretId = deserializeString()
SERVERNAME_DESCRIPTOR.index -> builder.serverName = deserializeString()
SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR.index -> builder.serverSideEncryptionKmsKeyId = deserializeString()
SERVICEACCESSROLEARN_DESCRIPTOR.index -> builder.serviceAccessRoleArn = deserializeString()
TIMEFORMAT_DESCRIPTOR.index -> builder.timeFormat = deserializeString()
TRIMBLANKS_DESCRIPTOR.index -> builder.trimBlanks = deserializeBoolean()
TRUNCATECOLUMNS_DESCRIPTOR.index -> builder.truncateColumns = deserializeBoolean()
USERNAME_DESCRIPTOR.index -> builder.username = deserializeString()
WRITEBUFFERSIZE_DESCRIPTOR.index -> builder.writeBufferSize = deserializeInt()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy