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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.MicrosoftSqlServerSettingsDocumentSerializer.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.MicrosoftSqlServerSettings
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 serializeMicrosoftSqlServerSettingsDocument(serializer: Serializer, input: MicrosoftSqlServerSettings) {
    val AUTHENTICATIONMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("AuthenticationMethod"))
    val BCPPACKETSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("BcpPacketSize"))
    val CONTROLTABLESFILEGROUP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ControlTablesFileGroup"))
    val DATABASENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatabaseName"))
    val FORCELOBLOOKUP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ForceLobLookup"))
    val PASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Password"))
    val PORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Port"))
    val QUERYSINGLEALWAYSONNODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("QuerySingleAlwaysOnNode"))
    val READBACKUPONLY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ReadBackupOnly"))
    val SAFEGUARDPOLICY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SafeguardPolicy"))
    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 TLOGACCESSMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("TlogAccessMode"))
    val TRIMSPACEINCHAR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("TrimSpaceInChar"))
    val USEBCPFULLLOAD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseBcpFullLoad"))
    val USETHIRDPARTYBACKUPDEVICE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseThirdPartyBackupDevice"))
    val USERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Username"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(AUTHENTICATIONMETHOD_DESCRIPTOR)
        field(BCPPACKETSIZE_DESCRIPTOR)
        field(CONTROLTABLESFILEGROUP_DESCRIPTOR)
        field(DATABASENAME_DESCRIPTOR)
        field(FORCELOBLOOKUP_DESCRIPTOR)
        field(PASSWORD_DESCRIPTOR)
        field(PORT_DESCRIPTOR)
        field(QUERYSINGLEALWAYSONNODE_DESCRIPTOR)
        field(READBACKUPONLY_DESCRIPTOR)
        field(SAFEGUARDPOLICY_DESCRIPTOR)
        field(SECRETSMANAGERACCESSROLEARN_DESCRIPTOR)
        field(SECRETSMANAGERSECRETID_DESCRIPTOR)
        field(SERVERNAME_DESCRIPTOR)
        field(TLOGACCESSMODE_DESCRIPTOR)
        field(TRIMSPACEINCHAR_DESCRIPTOR)
        field(USEBCPFULLLOAD_DESCRIPTOR)
        field(USETHIRDPARTYBACKUPDEVICE_DESCRIPTOR)
        field(USERNAME_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.port?.let { field(PORT_DESCRIPTOR, it) }
        input.bcpPacketSize?.let { field(BCPPACKETSIZE_DESCRIPTOR, it) }
        input.databaseName?.let { field(DATABASENAME_DESCRIPTOR, it) }
        input.controlTablesFileGroup?.let { field(CONTROLTABLESFILEGROUP_DESCRIPTOR, it) }
        input.password?.let { field(PASSWORD_DESCRIPTOR, it) }
        input.querySingleAlwaysOnNode?.let { field(QUERYSINGLEALWAYSONNODE_DESCRIPTOR, it) }
        input.readBackupOnly?.let { field(READBACKUPONLY_DESCRIPTOR, it) }
        input.safeguardPolicy?.let { field(SAFEGUARDPOLICY_DESCRIPTOR, it.value) }
        input.serverName?.let { field(SERVERNAME_DESCRIPTOR, it) }
        input.username?.let { field(USERNAME_DESCRIPTOR, it) }
        input.useBcpFullLoad?.let { field(USEBCPFULLLOAD_DESCRIPTOR, it) }
        input.useThirdPartyBackupDevice?.let { field(USETHIRDPARTYBACKUPDEVICE_DESCRIPTOR, it) }
        input.secretsManagerAccessRoleArn?.let { field(SECRETSMANAGERACCESSROLEARN_DESCRIPTOR, it) }
        input.secretsManagerSecretId?.let { field(SECRETSMANAGERSECRETID_DESCRIPTOR, it) }
        input.trimSpaceInChar?.let { field(TRIMSPACEINCHAR_DESCRIPTOR, it) }
        input.tlogAccessMode?.let { field(TLOGACCESSMODE_DESCRIPTOR, it.value) }
        input.forceLobLookup?.let { field(FORCELOBLOOKUP_DESCRIPTOR, it) }
        input.authenticationMethod?.let { field(AUTHENTICATIONMETHOD_DESCRIPTOR, it.value) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy