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

commonMain.aws.sdk.kotlin.services.mwaa.serde.LoggingConfigurationDocumentDeserializer.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mwaa.serde

import aws.sdk.kotlin.services.mwaa.model.LoggingConfiguration
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeLoggingConfigurationDocument(deserializer: Deserializer): LoggingConfiguration {
    val builder = LoggingConfiguration.Builder()
    val DAGPROCESSINGLOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DagProcessingLogs"))
    val SCHEDULERLOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SchedulerLogs"))
    val TASKLOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("TaskLogs"))
    val WEBSERVERLOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("WebserverLogs"))
    val WORKERLOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("WorkerLogs"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(DAGPROCESSINGLOGS_DESCRIPTOR)
        field(SCHEDULERLOGS_DESCRIPTOR)
        field(TASKLOGS_DESCRIPTOR)
        field(WEBSERVERLOGS_DESCRIPTOR)
        field(WORKERLOGS_DESCRIPTOR)
    }

    deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
        loop@while (true) {
            when (findNextFieldIndex()) {
                DAGPROCESSINGLOGS_DESCRIPTOR.index -> builder.dagProcessingLogs = deserializeModuleLoggingConfigurationDocument(deserializer)
                SCHEDULERLOGS_DESCRIPTOR.index -> builder.schedulerLogs = deserializeModuleLoggingConfigurationDocument(deserializer)
                TASKLOGS_DESCRIPTOR.index -> builder.taskLogs = deserializeModuleLoggingConfigurationDocument(deserializer)
                WEBSERVERLOGS_DESCRIPTOR.index -> builder.webserverLogs = deserializeModuleLoggingConfigurationDocument(deserializer)
                WORKERLOGS_DESCRIPTOR.index -> builder.workerLogs = deserializeModuleLoggingConfigurationDocument(deserializer)
                null -> break@loop
                else -> skipValue()
            }
        }
    }
    builder.correctErrors()
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy