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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.S3SettingsDocumentSerializer.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.S3Settings
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 serializeS3SettingsDocument(serializer: Serializer, input: S3Settings) {
    val ADDCOLUMNNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AddColumnName"))
    val ADDTRAILINGPADDINGCHARACTER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AddTrailingPaddingCharacter"))
    val BUCKETFOLDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BucketFolder"))
    val BUCKETNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BucketName"))
    val CANNEDACLFOROBJECTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CannedAclForObjects"))
    val CDCINSERTSANDUPDATES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CdcInsertsAndUpdates"))
    val CDCINSERTSONLY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CdcInsertsOnly"))
    val CDCMAXBATCHINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("CdcMaxBatchInterval"))
    val CDCMINFILESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("CdcMinFileSize"))
    val CDCPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CdcPath"))
    val COMPRESSIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CompressionType"))
    val CSVDELIMITER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CsvDelimiter"))
    val CSVNOSUPVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CsvNoSupValue"))
    val CSVNULLVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CsvNullValue"))
    val CSVROWDELIMITER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CsvRowDelimiter"))
    val DATAFORMAT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("DataFormat"))
    val DATAPAGESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DataPageSize"))
    val DATEPARTITIONDELIMITER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("DatePartitionDelimiter"))
    val DATEPARTITIONENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("DatePartitionEnabled"))
    val DATEPARTITIONSEQUENCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("DatePartitionSequence"))
    val DATEPARTITIONTIMEZONE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatePartitionTimezone"))
    val DICTPAGESIZELIMIT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DictPageSizeLimit"))
    val ENABLESTATISTICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnableStatistics"))
    val ENCODINGTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("EncodingType"))
    val ENCRYPTIONMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("EncryptionMode"))
    val EXPECTEDBUCKETOWNER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ExpectedBucketOwner"))
    val EXTERNALTABLEDEFINITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ExternalTableDefinition"))
    val GLUECATALOGGENERATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("GlueCatalogGeneration"))
    val IGNOREHEADERROWS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("IgnoreHeaderRows"))
    val INCLUDEOPFORFULLLOAD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludeOpForFullLoad"))
    val MAXFILESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxFileSize"))
    val PARQUETTIMESTAMPINMILLISECOND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ParquetTimestampInMillisecond"))
    val PARQUETVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ParquetVersion"))
    val PRESERVETRANSACTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PreserveTransactions"))
    val RFC4180_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("Rfc4180"))
    val ROWGROUPLENGTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RowGroupLength"))
    val SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServerSideEncryptionKmsKeyId"))
    val SERVICEACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServiceAccessRoleArn"))
    val TIMESTAMPCOLUMNNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TimestampColumnName"))
    val USECSVNOSUPVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseCsvNoSupValue"))
    val USETASKSTARTTIMEFORFULLLOADTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseTaskStartTimeForFullLoadTimestamp"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ADDCOLUMNNAME_DESCRIPTOR)
        field(ADDTRAILINGPADDINGCHARACTER_DESCRIPTOR)
        field(BUCKETFOLDER_DESCRIPTOR)
        field(BUCKETNAME_DESCRIPTOR)
        field(CANNEDACLFOROBJECTS_DESCRIPTOR)
        field(CDCINSERTSANDUPDATES_DESCRIPTOR)
        field(CDCINSERTSONLY_DESCRIPTOR)
        field(CDCMAXBATCHINTERVAL_DESCRIPTOR)
        field(CDCMINFILESIZE_DESCRIPTOR)
        field(CDCPATH_DESCRIPTOR)
        field(COMPRESSIONTYPE_DESCRIPTOR)
        field(CSVDELIMITER_DESCRIPTOR)
        field(CSVNOSUPVALUE_DESCRIPTOR)
        field(CSVNULLVALUE_DESCRIPTOR)
        field(CSVROWDELIMITER_DESCRIPTOR)
        field(DATAFORMAT_DESCRIPTOR)
        field(DATAPAGESIZE_DESCRIPTOR)
        field(DATEPARTITIONDELIMITER_DESCRIPTOR)
        field(DATEPARTITIONENABLED_DESCRIPTOR)
        field(DATEPARTITIONSEQUENCE_DESCRIPTOR)
        field(DATEPARTITIONTIMEZONE_DESCRIPTOR)
        field(DICTPAGESIZELIMIT_DESCRIPTOR)
        field(ENABLESTATISTICS_DESCRIPTOR)
        field(ENCODINGTYPE_DESCRIPTOR)
        field(ENCRYPTIONMODE_DESCRIPTOR)
        field(EXPECTEDBUCKETOWNER_DESCRIPTOR)
        field(EXTERNALTABLEDEFINITION_DESCRIPTOR)
        field(GLUECATALOGGENERATION_DESCRIPTOR)
        field(IGNOREHEADERROWS_DESCRIPTOR)
        field(INCLUDEOPFORFULLLOAD_DESCRIPTOR)
        field(MAXFILESIZE_DESCRIPTOR)
        field(PARQUETTIMESTAMPINMILLISECOND_DESCRIPTOR)
        field(PARQUETVERSION_DESCRIPTOR)
        field(PRESERVETRANSACTIONS_DESCRIPTOR)
        field(RFC4180_DESCRIPTOR)
        field(ROWGROUPLENGTH_DESCRIPTOR)
        field(SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR)
        field(SERVICEACCESSROLEARN_DESCRIPTOR)
        field(TIMESTAMPCOLUMNNAME_DESCRIPTOR)
        field(USECSVNOSUPVALUE_DESCRIPTOR)
        field(USETASKSTARTTIMEFORFULLLOADTIMESTAMP_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.serviceAccessRoleArn?.let { field(SERVICEACCESSROLEARN_DESCRIPTOR, it) }
        input.externalTableDefinition?.let { field(EXTERNALTABLEDEFINITION_DESCRIPTOR, it) }
        input.csvRowDelimiter?.let { field(CSVROWDELIMITER_DESCRIPTOR, it) }
        input.csvDelimiter?.let { field(CSVDELIMITER_DESCRIPTOR, it) }
        input.bucketFolder?.let { field(BUCKETFOLDER_DESCRIPTOR, it) }
        input.bucketName?.let { field(BUCKETNAME_DESCRIPTOR, it) }
        input.compressionType?.let { field(COMPRESSIONTYPE_DESCRIPTOR, it.value) }
        input.encryptionMode?.let { field(ENCRYPTIONMODE_DESCRIPTOR, it.value) }
        input.serverSideEncryptionKmsKeyId?.let { field(SERVERSIDEENCRYPTIONKMSKEYID_DESCRIPTOR, it) }
        input.dataFormat?.let { field(DATAFORMAT_DESCRIPTOR, it.value) }
        input.encodingType?.let { field(ENCODINGTYPE_DESCRIPTOR, it.value) }
        input.dictPageSizeLimit?.let { field(DICTPAGESIZELIMIT_DESCRIPTOR, it) }
        input.rowGroupLength?.let { field(ROWGROUPLENGTH_DESCRIPTOR, it) }
        input.dataPageSize?.let { field(DATAPAGESIZE_DESCRIPTOR, it) }
        input.parquetVersion?.let { field(PARQUETVERSION_DESCRIPTOR, it.value) }
        input.enableStatistics?.let { field(ENABLESTATISTICS_DESCRIPTOR, it) }
        input.includeOpForFullLoad?.let { field(INCLUDEOPFORFULLLOAD_DESCRIPTOR, it) }
        input.cdcInsertsOnly?.let { field(CDCINSERTSONLY_DESCRIPTOR, it) }
        input.timestampColumnName?.let { field(TIMESTAMPCOLUMNNAME_DESCRIPTOR, it) }
        input.parquetTimestampInMillisecond?.let { field(PARQUETTIMESTAMPINMILLISECOND_DESCRIPTOR, it) }
        input.cdcInsertsAndUpdates?.let { field(CDCINSERTSANDUPDATES_DESCRIPTOR, it) }
        input.datePartitionEnabled?.let { field(DATEPARTITIONENABLED_DESCRIPTOR, it) }
        input.datePartitionSequence?.let { field(DATEPARTITIONSEQUENCE_DESCRIPTOR, it.value) }
        input.datePartitionDelimiter?.let { field(DATEPARTITIONDELIMITER_DESCRIPTOR, it.value) }
        input.useCsvNoSupValue?.let { field(USECSVNOSUPVALUE_DESCRIPTOR, it) }
        input.csvNoSupValue?.let { field(CSVNOSUPVALUE_DESCRIPTOR, it) }
        input.preserveTransactions?.let { field(PRESERVETRANSACTIONS_DESCRIPTOR, it) }
        input.cdcPath?.let { field(CDCPATH_DESCRIPTOR, it) }
        input.useTaskStartTimeForFullLoadTimestamp?.let { field(USETASKSTARTTIMEFORFULLLOADTIMESTAMP_DESCRIPTOR, it) }
        input.cannedAclForObjects?.let { field(CANNEDACLFOROBJECTS_DESCRIPTOR, it.value) }
        input.addColumnName?.let { field(ADDCOLUMNNAME_DESCRIPTOR, it) }
        input.cdcMaxBatchInterval?.let { field(CDCMAXBATCHINTERVAL_DESCRIPTOR, it) }
        input.cdcMinFileSize?.let { field(CDCMINFILESIZE_DESCRIPTOR, it) }
        input.csvNullValue?.let { field(CSVNULLVALUE_DESCRIPTOR, it) }
        input.ignoreHeaderRows?.let { field(IGNOREHEADERROWS_DESCRIPTOR, it) }
        input.maxFileSize?.let { field(MAXFILESIZE_DESCRIPTOR, it) }
        input.rfc4180?.let { field(RFC4180_DESCRIPTOR, it) }
        input.datePartitionTimezone?.let { field(DATEPARTITIONTIMEZONE_DESCRIPTOR, it) }
        input.addTrailingPaddingCharacter?.let { field(ADDTRAILINGPADDINGCHARACTER_DESCRIPTOR, it) }
        input.expectedBucketOwner?.let { field(EXPECTEDBUCKETOWNER_DESCRIPTOR, it) }
        input.glueCatalogGeneration?.let { field(GLUECATALOGGENERATION_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy