commonMain.aws.sdk.kotlin.services.lookoutmetrics.serde.RdsSourceConfigDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.serde
import aws.sdk.kotlin.services.lookoutmetrics.model.RdsSourceConfig
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 serializeRdsSourceConfigDocument(serializer: Serializer, input: RdsSourceConfig) {
val DBINSTANCEIDENTIFIER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DBInstanceIdentifier"))
val DATABASEHOST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatabaseHost"))
val DATABASENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DatabaseName"))
val DATABASEPORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DatabasePort"))
val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleArn"))
val SECRETMANAGERARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretManagerArn"))
val TABLENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TableName"))
val VPCCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VpcConfiguration"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(DBINSTANCEIDENTIFIER_DESCRIPTOR)
field(DATABASEHOST_DESCRIPTOR)
field(DATABASENAME_DESCRIPTOR)
field(DATABASEPORT_DESCRIPTOR)
field(ROLEARN_DESCRIPTOR)
field(SECRETMANAGERARN_DESCRIPTOR)
field(TABLENAME_DESCRIPTOR)
field(VPCCONFIGURATION_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.dbInstanceIdentifier?.let { field(DBINSTANCEIDENTIFIER_DESCRIPTOR, it) }
input.databaseHost?.let { field(DATABASEHOST_DESCRIPTOR, it) }
input.databasePort?.let { field(DATABASEPORT_DESCRIPTOR, it) }
input.secretManagerArn?.let { field(SECRETMANAGERARN_DESCRIPTOR, it) }
input.databaseName?.let { field(DATABASENAME_DESCRIPTOR, it) }
input.tableName?.let { field(TABLENAME_DESCRIPTOR, it) }
input.roleArn?.let { field(ROLEARN_DESCRIPTOR, it) }
input.vpcConfiguration?.let { field(VPCCONFIGURATION_DESCRIPTOR, it, ::serializeVpcConfigurationDocument) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy