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

commonMain.aws.sdk.kotlin.services.firehose.serde.SnowflakeDestinationConfigurationDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.firehose.serde

import aws.sdk.kotlin.services.firehose.model.SnowflakeDestinationConfiguration
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 serializeSnowflakeDestinationConfigurationDocument(serializer: Serializer, input: SnowflakeDestinationConfiguration) {
    val ACCOUNTURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AccountUrl"))
    val BUFFERINGHINTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BufferingHints"))
    val CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudWatchLoggingOptions"))
    val CONTENTCOLUMNNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ContentColumnName"))
    val DATALOADINGOPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("DataLoadingOption"))
    val DATABASE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Database"))
    val KEYPASSPHRASE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("KeyPassphrase"))
    val METADATACOLUMNNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("MetaDataColumnName"))
    val PRIVATEKEY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("PrivateKey"))
    val PROCESSINGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ProcessingConfiguration"))
    val RETRYOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("RetryOptions"))
    val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleARN"))
    val S3BACKUPMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("S3BackupMode"))
    val S3CONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3Configuration"))
    val SCHEMA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Schema"))
    val SECRETSMANAGERCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SecretsManagerConfiguration"))
    val SNOWFLAKEROLECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SnowflakeRoleConfiguration"))
    val SNOWFLAKEVPCCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SnowflakeVpcConfiguration"))
    val TABLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Table"))
    val USER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("User"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ACCOUNTURL_DESCRIPTOR)
        field(BUFFERINGHINTS_DESCRIPTOR)
        field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR)
        field(CONTENTCOLUMNNAME_DESCRIPTOR)
        field(DATALOADINGOPTION_DESCRIPTOR)
        field(DATABASE_DESCRIPTOR)
        field(KEYPASSPHRASE_DESCRIPTOR)
        field(METADATACOLUMNNAME_DESCRIPTOR)
        field(PRIVATEKEY_DESCRIPTOR)
        field(PROCESSINGCONFIGURATION_DESCRIPTOR)
        field(RETRYOPTIONS_DESCRIPTOR)
        field(ROLEARN_DESCRIPTOR)
        field(S3BACKUPMODE_DESCRIPTOR)
        field(S3CONFIGURATION_DESCRIPTOR)
        field(SCHEMA_DESCRIPTOR)
        field(SECRETSMANAGERCONFIGURATION_DESCRIPTOR)
        field(SNOWFLAKEROLECONFIGURATION_DESCRIPTOR)
        field(SNOWFLAKEVPCCONFIGURATION_DESCRIPTOR)
        field(TABLE_DESCRIPTOR)
        field(USER_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(ACCOUNTURL_DESCRIPTOR, input.accountUrl)
        input.privateKey?.let { field(PRIVATEKEY_DESCRIPTOR, it) }
        input.keyPassphrase?.let { field(KEYPASSPHRASE_DESCRIPTOR, it) }
        input.user?.let { field(USER_DESCRIPTOR, it) }
        field(DATABASE_DESCRIPTOR, input.database)
        field(SCHEMA_DESCRIPTOR, input.schema)
        field(TABLE_DESCRIPTOR, input.table)
        input.snowflakeRoleConfiguration?.let { field(SNOWFLAKEROLECONFIGURATION_DESCRIPTOR, it, ::serializeSnowflakeRoleConfigurationDocument) }
        input.dataLoadingOption?.let { field(DATALOADINGOPTION_DESCRIPTOR, it.value) }
        input.metaDataColumnName?.let { field(METADATACOLUMNNAME_DESCRIPTOR, it) }
        input.contentColumnName?.let { field(CONTENTCOLUMNNAME_DESCRIPTOR, it) }
        input.snowflakeVpcConfiguration?.let { field(SNOWFLAKEVPCCONFIGURATION_DESCRIPTOR, it, ::serializeSnowflakeVpcConfigurationDocument) }
        input.cloudWatchLoggingOptions?.let { field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR, it, ::serializeCloudWatchLoggingOptionsDocument) }
        input.processingConfiguration?.let { field(PROCESSINGCONFIGURATION_DESCRIPTOR, it, ::serializeProcessingConfigurationDocument) }
        field(ROLEARN_DESCRIPTOR, input.roleArn)
        input.retryOptions?.let { field(RETRYOPTIONS_DESCRIPTOR, it, ::serializeSnowflakeRetryOptionsDocument) }
        input.s3BackupMode?.let { field(S3BACKUPMODE_DESCRIPTOR, it.value) }
        input.s3Configuration?.let { field(S3CONFIGURATION_DESCRIPTOR, it, ::serializeS3DestinationConfigurationDocument) }
        input.secretsManagerConfiguration?.let { field(SECRETSMANAGERCONFIGURATION_DESCRIPTOR, it, ::serializeSecretsManagerConfigurationDocument) }
        input.bufferingHints?.let { field(BUFFERINGHINTS_DESCRIPTOR, it, ::serializeSnowflakeBufferingHintsDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy