commonMain.aws.sdk.kotlin.services.bedrock.serde.LoggingConfigDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.serde
import aws.sdk.kotlin.services.bedrock.model.LoggingConfig
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 serializeLoggingConfigDocument(serializer: Serializer, input: LoggingConfig) {
val CLOUDWATCHCONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("cloudWatchConfig"))
val EMBEDDINGDATADELIVERYENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("embeddingDataDeliveryEnabled"))
val IMAGEDATADELIVERYENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("imageDataDeliveryEnabled"))
val S3CONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("s3Config"))
val TEXTDATADELIVERYENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("textDataDeliveryEnabled"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CLOUDWATCHCONFIG_DESCRIPTOR)
field(EMBEDDINGDATADELIVERYENABLED_DESCRIPTOR)
field(IMAGEDATADELIVERYENABLED_DESCRIPTOR)
field(S3CONFIG_DESCRIPTOR)
field(TEXTDATADELIVERYENABLED_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.cloudWatchConfig?.let { field(CLOUDWATCHCONFIG_DESCRIPTOR, it, ::serializeCloudWatchConfigDocument) }
input.s3Config?.let { field(S3CONFIG_DESCRIPTOR, it, ::serializeS3ConfigDocument) }
input.textDataDeliveryEnabled?.let { field(TEXTDATADELIVERYENABLED_DESCRIPTOR, it) }
input.imageDataDeliveryEnabled?.let { field(IMAGEDATADELIVERYENABLED_DESCRIPTOR, it) }
input.embeddingDataDeliveryEnabled?.let { field(EMBEDDINGDATADELIVERYENABLED_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy