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

commonMain.aws.sdk.kotlin.services.vpclattice.serde.TargetGroupConfigDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.vpclattice.serde

import aws.sdk.kotlin.services.vpclattice.model.TargetGroupConfig
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 serializeTargetGroupConfigDocument(serializer: Serializer, input: TargetGroupConfig) {
    val HEALTHCHECK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("healthCheck"))
    val IPADDRESSTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ipAddressType"))
    val LAMBDAEVENTSTRUCTUREVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("lambdaEventStructureVersion"))
    val PORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("port"))
    val PROTOCOL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("protocol"))
    val PROTOCOLVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("protocolVersion"))
    val VPCIDENTIFIER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("vpcIdentifier"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(HEALTHCHECK_DESCRIPTOR)
        field(IPADDRESSTYPE_DESCRIPTOR)
        field(LAMBDAEVENTSTRUCTUREVERSION_DESCRIPTOR)
        field(PORT_DESCRIPTOR)
        field(PROTOCOL_DESCRIPTOR)
        field(PROTOCOLVERSION_DESCRIPTOR)
        field(VPCIDENTIFIER_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.port?.let { field(PORT_DESCRIPTOR, it) }
        input.protocol?.let { field(PROTOCOL_DESCRIPTOR, it.value) }
        input.protocolVersion?.let { field(PROTOCOLVERSION_DESCRIPTOR, it.value) }
        input.ipAddressType?.let { field(IPADDRESSTYPE_DESCRIPTOR, it.value) }
        input.vpcIdentifier?.let { field(VPCIDENTIFIER_DESCRIPTOR, it) }
        input.healthCheck?.let { field(HEALTHCHECK_DESCRIPTOR, it, ::serializeHealthCheckConfigDocument) }
        input.lambdaEventStructureVersion?.let { field(LAMBDAEVENTSTRUCTUREVERSION_DESCRIPTOR, it.value) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy