
commonMain.aws.sdk.kotlin.services.pipes.serde.PipeLogConfigurationParametersDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.serde
import aws.sdk.kotlin.services.pipes.model.PipeLogConfigurationParameters
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 serializePipeLogConfigurationParametersDocument(serializer: Serializer, input: PipeLogConfigurationParameters) {
val CLOUDWATCHLOGSLOGDESTINATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudwatchLogsLogDestination"))
val FIREHOSELOGDESTINATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("FirehoseLogDestination"))
val INCLUDEEXECUTIONDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("IncludeExecutionData"))
val LEVEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Level"))
val S3LOGDESTINATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3LogDestination"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CLOUDWATCHLOGSLOGDESTINATION_DESCRIPTOR)
field(FIREHOSELOGDESTINATION_DESCRIPTOR)
field(INCLUDEEXECUTIONDATA_DESCRIPTOR)
field(LEVEL_DESCRIPTOR)
field(S3LOGDESTINATION_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.s3LogDestination?.let { field(S3LOGDESTINATION_DESCRIPTOR, it, ::serializeS3LogDestinationParametersDocument) }
input.firehoseLogDestination?.let { field(FIREHOSELOGDESTINATION_DESCRIPTOR, it, ::serializeFirehoseLogDestinationParametersDocument) }
input.cloudwatchLogsLogDestination?.let { field(CLOUDWATCHLOGSLOGDESTINATION_DESCRIPTOR, it, ::serializeCloudwatchLogsLogDestinationParametersDocument) }
field(LEVEL_DESCRIPTOR, input.level.value)
if (input.includeExecutionData != null) {
listField(INCLUDEEXECUTIONDATA_DESCRIPTOR) {
for (el0 in input.includeExecutionData) {
serializeString(el0.value)
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy