All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.OracleSettingsDocumentSerializer.kt Maven / Gradle / Ivy

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.OracleSettings
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 serializeOracleSettingsDocument(serializer: Serializer, input: OracleSettings) {
    val ACCESSALTERNATEDIRECTLY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AccessAlternateDirectly"))
    val ADDSUPPLEMENTALLOGGING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AddSupplementalLogging"))
    val ADDITIONALARCHIVEDLOGDESTID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("AdditionalArchivedLogDestId"))
    val ALLOWSELECTNESTEDTABLES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AllowSelectNestedTables"))
    val ARCHIVEDLOGDESTID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ArchivedLogDestId"))
    val ARCHIVEDLOGSONLY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ArchivedLogsOnly"))
    val ASMPASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AsmPassword"))
    val ASMSERVER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AsmServer"))
    val ASMUSER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AsmUser"))
    val AUTHENTICATIONMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("AuthenticationMethod"))
    val CHARLENGTHSEMANTICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CharLengthSemantics"))
    val CONVERTTIMESTAMPWITHZONETOUTC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ConvertTimestampWithZoneToUTC"))
    val DATABASENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatabaseName"))
    val DIRECTPATHNOLOG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("DirectPathNoLog"))
    val DIRECTPATHPARALLELLOAD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("DirectPathParallelLoad"))
    val ENABLEHOMOGENOUSTABLESPACE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnableHomogenousTablespace"))
    val EXTRAARCHIVEDLOGDESTIDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("ExtraArchivedLogDestIds"))
    val FAILTASKSONLOBTRUNCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("FailTasksOnLobTruncation"))
    val NUMBERDATATYPESCALE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("NumberDatatypeScale"))
    val OPENTRANSACTIONWINDOW_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("OpenTransactionWindow"))
    val ORACLEPATHPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("OraclePathPrefix"))
    val PARALLELASMREADTHREADS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ParallelAsmReadThreads"))
    val PASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Password"))
    val PORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Port"))
    val READAHEADBLOCKS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ReadAheadBlocks"))
    val READTABLESPACENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ReadTableSpaceName"))
    val REPLACEPATHPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ReplacePathPrefix"))
    val RETRYINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RetryInterval"))
    val SECRETSMANAGERACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerAccessRoleArn"))
    val SECRETSMANAGERORACLEASMACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerOracleAsmAccessRoleArn"))
    val SECRETSMANAGERORACLEASMSECRETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerOracleAsmSecretId"))
    val SECRETSMANAGERSECRETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretsManagerSecretId"))
    val SECURITYDBENCRYPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecurityDbEncryption"))
    val SECURITYDBENCRYPTIONNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecurityDbEncryptionName"))
    val SERVERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServerName"))
    val SPATIALDATAOPTIONTOGEOJSONFUNCTIONNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SpatialDataOptionToGeoJsonFunctionName"))
    val STANDBYDELAYTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StandbyDelayTime"))
    val TRIMSPACEINCHAR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("TrimSpaceInChar"))
    val USEALTERNATEFOLDERFORONLINE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseAlternateFolderForOnline"))
    val USEBFILE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseBFile"))
    val USEDIRECTPATHFULLLOAD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseDirectPathFullLoad"))
    val USELOGMINERREADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseLogminerReader"))
    val USEPATHPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("UsePathPrefix"))
    val USERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Username"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ACCESSALTERNATEDIRECTLY_DESCRIPTOR)
        field(ADDSUPPLEMENTALLOGGING_DESCRIPTOR)
        field(ADDITIONALARCHIVEDLOGDESTID_DESCRIPTOR)
        field(ALLOWSELECTNESTEDTABLES_DESCRIPTOR)
        field(ARCHIVEDLOGDESTID_DESCRIPTOR)
        field(ARCHIVEDLOGSONLY_DESCRIPTOR)
        field(ASMPASSWORD_DESCRIPTOR)
        field(ASMSERVER_DESCRIPTOR)
        field(ASMUSER_DESCRIPTOR)
        field(AUTHENTICATIONMETHOD_DESCRIPTOR)
        field(CHARLENGTHSEMANTICS_DESCRIPTOR)
        field(CONVERTTIMESTAMPWITHZONETOUTC_DESCRIPTOR)
        field(DATABASENAME_DESCRIPTOR)
        field(DIRECTPATHNOLOG_DESCRIPTOR)
        field(DIRECTPATHPARALLELLOAD_DESCRIPTOR)
        field(ENABLEHOMOGENOUSTABLESPACE_DESCRIPTOR)
        field(EXTRAARCHIVEDLOGDESTIDS_DESCRIPTOR)
        field(FAILTASKSONLOBTRUNCATION_DESCRIPTOR)
        field(NUMBERDATATYPESCALE_DESCRIPTOR)
        field(OPENTRANSACTIONWINDOW_DESCRIPTOR)
        field(ORACLEPATHPREFIX_DESCRIPTOR)
        field(PARALLELASMREADTHREADS_DESCRIPTOR)
        field(PASSWORD_DESCRIPTOR)
        field(PORT_DESCRIPTOR)
        field(READAHEADBLOCKS_DESCRIPTOR)
        field(READTABLESPACENAME_DESCRIPTOR)
        field(REPLACEPATHPREFIX_DESCRIPTOR)
        field(RETRYINTERVAL_DESCRIPTOR)
        field(SECRETSMANAGERACCESSROLEARN_DESCRIPTOR)
        field(SECRETSMANAGERORACLEASMACCESSROLEARN_DESCRIPTOR)
        field(SECRETSMANAGERORACLEASMSECRETID_DESCRIPTOR)
        field(SECRETSMANAGERSECRETID_DESCRIPTOR)
        field(SECURITYDBENCRYPTION_DESCRIPTOR)
        field(SECURITYDBENCRYPTIONNAME_DESCRIPTOR)
        field(SERVERNAME_DESCRIPTOR)
        field(SPATIALDATAOPTIONTOGEOJSONFUNCTIONNAME_DESCRIPTOR)
        field(STANDBYDELAYTIME_DESCRIPTOR)
        field(TRIMSPACEINCHAR_DESCRIPTOR)
        field(USEALTERNATEFOLDERFORONLINE_DESCRIPTOR)
        field(USEBFILE_DESCRIPTOR)
        field(USEDIRECTPATHFULLLOAD_DESCRIPTOR)
        field(USELOGMINERREADER_DESCRIPTOR)
        field(USEPATHPREFIX_DESCRIPTOR)
        field(USERNAME_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.addSupplementalLogging?.let { field(ADDSUPPLEMENTALLOGGING_DESCRIPTOR, it) }
        input.archivedLogDestId?.let { field(ARCHIVEDLOGDESTID_DESCRIPTOR, it) }
        input.additionalArchivedLogDestId?.let { field(ADDITIONALARCHIVEDLOGDESTID_DESCRIPTOR, it) }
        if (input.extraArchivedLogDestIds != null) {
            listField(EXTRAARCHIVEDLOGDESTIDS_DESCRIPTOR) {
                for (el0 in input.extraArchivedLogDestIds) {
                    serializeInt(el0)
                }
            }
        }
        input.allowSelectNestedTables?.let { field(ALLOWSELECTNESTEDTABLES_DESCRIPTOR, it) }
        input.parallelAsmReadThreads?.let { field(PARALLELASMREADTHREADS_DESCRIPTOR, it) }
        input.readAheadBlocks?.let { field(READAHEADBLOCKS_DESCRIPTOR, it) }
        input.accessAlternateDirectly?.let { field(ACCESSALTERNATEDIRECTLY_DESCRIPTOR, it) }
        input.useAlternateFolderForOnline?.let { field(USEALTERNATEFOLDERFORONLINE_DESCRIPTOR, it) }
        input.oraclePathPrefix?.let { field(ORACLEPATHPREFIX_DESCRIPTOR, it) }
        input.usePathPrefix?.let { field(USEPATHPREFIX_DESCRIPTOR, it) }
        input.replacePathPrefix?.let { field(REPLACEPATHPREFIX_DESCRIPTOR, it) }
        input.enableHomogenousTablespace?.let { field(ENABLEHOMOGENOUSTABLESPACE_DESCRIPTOR, it) }
        input.directPathNoLog?.let { field(DIRECTPATHNOLOG_DESCRIPTOR, it) }
        input.archivedLogsOnly?.let { field(ARCHIVEDLOGSONLY_DESCRIPTOR, it) }
        input.asmPassword?.let { field(ASMPASSWORD_DESCRIPTOR, it) }
        input.asmServer?.let { field(ASMSERVER_DESCRIPTOR, it) }
        input.asmUser?.let { field(ASMUSER_DESCRIPTOR, it) }
        input.charLengthSemantics?.let { field(CHARLENGTHSEMANTICS_DESCRIPTOR, it.value) }
        input.databaseName?.let { field(DATABASENAME_DESCRIPTOR, it) }
        input.directPathParallelLoad?.let { field(DIRECTPATHPARALLELLOAD_DESCRIPTOR, it) }
        input.failTasksOnLobTruncation?.let { field(FAILTASKSONLOBTRUNCATION_DESCRIPTOR, it) }
        input.numberDatatypeScale?.let { field(NUMBERDATATYPESCALE_DESCRIPTOR, it) }
        input.password?.let { field(PASSWORD_DESCRIPTOR, it) }
        input.port?.let { field(PORT_DESCRIPTOR, it) }
        input.readTableSpaceName?.let { field(READTABLESPACENAME_DESCRIPTOR, it) }
        input.retryInterval?.let { field(RETRYINTERVAL_DESCRIPTOR, it) }
        input.securityDbEncryption?.let { field(SECURITYDBENCRYPTION_DESCRIPTOR, it) }
        input.securityDbEncryptionName?.let { field(SECURITYDBENCRYPTIONNAME_DESCRIPTOR, it) }
        input.serverName?.let { field(SERVERNAME_DESCRIPTOR, it) }
        input.spatialDataOptionToGeoJsonFunctionName?.let { field(SPATIALDATAOPTIONTOGEOJSONFUNCTIONNAME_DESCRIPTOR, it) }
        input.standbyDelayTime?.let { field(STANDBYDELAYTIME_DESCRIPTOR, it) }
        input.username?.let { field(USERNAME_DESCRIPTOR, it) }
        input.useBFile?.let { field(USEBFILE_DESCRIPTOR, it) }
        input.useDirectPathFullLoad?.let { field(USEDIRECTPATHFULLLOAD_DESCRIPTOR, it) }
        input.useLogminerReader?.let { field(USELOGMINERREADER_DESCRIPTOR, it) }
        input.secretsManagerAccessRoleArn?.let { field(SECRETSMANAGERACCESSROLEARN_DESCRIPTOR, it) }
        input.secretsManagerSecretId?.let { field(SECRETSMANAGERSECRETID_DESCRIPTOR, it) }
        input.secretsManagerOracleAsmAccessRoleArn?.let { field(SECRETSMANAGERORACLEASMACCESSROLEARN_DESCRIPTOR, it) }
        input.secretsManagerOracleAsmSecretId?.let { field(SECRETSMANAGERORACLEASMSECRETID_DESCRIPTOR, it) }
        input.trimSpaceInChar?.let { field(TRIMSPACEINCHAR_DESCRIPTOR, it) }
        input.convertTimestampWithZoneToUtc?.let { field(CONVERTTIMESTAMPWITHZONETOUTC_DESCRIPTOR, it) }
        input.openTransactionWindow?.let { field(OPENTRANSACTIONWINDOW_DESCRIPTOR, it) }
        input.authenticationMethod?.let { field(AUTHENTICATIONMETHOD_DESCRIPTOR, it.value) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy