commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.RedshiftSettingsDocumentSerializer.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.RedshiftSettings
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.Serializer
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 serializeRedshiftSettingsDocument(serializer: Serializer, input: RedshiftSettings) {
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)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.acceptAnyDate?.let { field(ACCEPTANYDATE_DESCRIPTOR, it) }
input.afterConnectScript?.let { field(AFTERCONNECTSCRIPT_DESCRIPTOR, it) }
input.bucketFolder?.let { field(BUCKETFOLDER_DESCRIPTOR, it) }
input.bucketName?.let { field(BUCKETNAME_DESCRIPTOR, it) }
input.caseSensitiveNames?.let { field(CASESENSITIVENAMES_DESCRIPTOR, it) }
input.compUpdate?.let { field(COMPUPDATE_DESCRIPTOR, it) }
input.connectionTimeout?.let { field(CONNECTIONTIMEOUT_DESCRIPTOR, it) }
input.databaseName?.let { field(DATABASENAME_DESCRIPTOR, it) }
input.dateFormat?.let { field(DATEFORMAT_DESCRIPTOR, it) }
input.emptyAsNull?.let { field(EMPTYASNULL_DESCRIPTOR, it) }
input.encryptionMode?.let { field(ENCRYPTIONMODE_DESCRIPTOR, it.value) }
input.explicitIds?.let { field(EXPLICITIDS_DESCRIPTOR, it) }
input.fileTransferUploadStreams?.let { field(FILETRANSFERUPLOADSTREAMS_DESCRIPTOR, it) }
input.loadTimeout?.let { field(LOADTIMEOUT_DESCRIPTOR, it) }
input.maxFileSize?.let { field(MAXFILESIZE_DESCRIPTOR, it) }
input.password?.let { field(PASSWORD_DESCRIPTOR, it) }
input.port?.let { field(PORT_DESCRIPTOR, it) }
input.removeQuotes?.let { field(REMOVEQUOTES_DESCRIPTOR, it) }
input.replaceInvalidChars?.let { field(REPLACEINVALIDCHARS_DESCRIPTOR, it) }
input.replaceChars?.let { field(REPLACECHARS_DESCRIPTOR, it) }
input.serverName?.let { field(SERVERNAME_DESCRIPTOR, it) }
input.serviceAccessRoleArn?.let { field(SERVICEACCESSROLEARN_DESCRIPTOR, it) }
input.serverSideEncryptionKmsKeyId?.let { field(SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR, it) }
input.timeFormat?.let { field(TIMEFORMAT_DESCRIPTOR, it) }
input.trimBlanks?.let { field(TRIMBLANKS_DESCRIPTOR, it) }
input.truncateColumns?.let { field(TRUNCATECOLUMNS_DESCRIPTOR, it) }
input.username?.let { field(USERNAME_DESCRIPTOR, it) }
input.writeBufferSize?.let { field(WRITEBUFFERSIZE_DESCRIPTOR, it) }
input.secretsManagerAccessRoleArn?.let { field(SECRETSMANAGERACCESSROLEARN_DESCRIPTOR, it) }
input.secretsManagerSecretId?.let { field(SECRETSMANAGERSECRETID_DESCRIPTOR, it) }
input.mapBooleanAsBoolean?.let { field(MAPBOOLEANASBOOLEAN_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy