commonMain.aws.sdk.kotlin.services.firehose.serde.RedshiftDestinationUpdateDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.serde
import aws.sdk.kotlin.services.firehose.model.RedshiftDestinationUpdate
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 serializeRedshiftDestinationUpdateDocument(serializer: Serializer, input: RedshiftDestinationUpdate) {
val CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudWatchLoggingOptions"))
val CLUSTERJDBCURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ClusterJDBCURL"))
val COPYCOMMAND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CopyCommand"))
val PASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Password"))
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 S3BACKUPUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3BackupUpdate"))
val S3UPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3Update"))
val SECRETSMANAGERCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SecretsManagerConfiguration"))
val USERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Username"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR)
field(CLUSTERJDBCURL_DESCRIPTOR)
field(COPYCOMMAND_DESCRIPTOR)
field(PASSWORD_DESCRIPTOR)
field(PROCESSINGCONFIGURATION_DESCRIPTOR)
field(RETRYOPTIONS_DESCRIPTOR)
field(ROLEARN_DESCRIPTOR)
field(S3BACKUPMODE_DESCRIPTOR)
field(S3BACKUPUPDATE_DESCRIPTOR)
field(S3UPDATE_DESCRIPTOR)
field(SECRETSMANAGERCONFIGURATION_DESCRIPTOR)
field(USERNAME_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.roleArn?.let { field(ROLEARN_DESCRIPTOR, it) }
input.clusterJdbcurl?.let { field(CLUSTERJDBCURL_DESCRIPTOR, it) }
input.copyCommand?.let { field(COPYCOMMAND_DESCRIPTOR, it, ::serializeCopyCommandDocument) }
input.username?.let { field(USERNAME_DESCRIPTOR, it) }
input.password?.let { field(PASSWORD_DESCRIPTOR, it) }
input.retryOptions?.let { field(RETRYOPTIONS_DESCRIPTOR, it, ::serializeRedshiftRetryOptionsDocument) }
input.s3Update?.let { field(S3UPDATE_DESCRIPTOR, it, ::serializeS3DestinationUpdateDocument) }
input.processingConfiguration?.let { field(PROCESSINGCONFIGURATION_DESCRIPTOR, it, ::serializeProcessingConfigurationDocument) }
input.s3BackupMode?.let { field(S3BACKUPMODE_DESCRIPTOR, it.value) }
input.s3BackupUpdate?.let { field(S3BACKUPUPDATE_DESCRIPTOR, it, ::serializeS3DestinationUpdateDocument) }
input.cloudWatchLoggingOptions?.let { field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR, it, ::serializeCloudWatchLoggingOptionsDocument) }
input.secretsManagerConfiguration?.let { field(SECRETSMANAGERCONFIGURATION_DESCRIPTOR, it, ::serializeSecretsManagerConfigurationDocument) }
}
}