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

commonMain.aws.sdk.kotlin.services.route53.serde.HealthCheckConfigDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.route53.serde

import aws.sdk.kotlin.services.route53.model.HealthCheckConfig
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.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
import aws.smithy.kotlin.runtime.serde.xml.XmlCollectionName
import aws.smithy.kotlin.runtime.serde.xml.XmlNamespace
import aws.smithy.kotlin.runtime.serde.xml.XmlSerialName

internal fun serializeHealthCheckConfigDocument(serializer: Serializer, input: HealthCheckConfig) {
    val ALARMIDENTIFIER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, XmlSerialName("AlarmIdentifier"))
    val CHILDHEALTHCHECKS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, XmlSerialName("ChildHealthChecks"), XmlCollectionName("ChildHealthCheck"))
    val DISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("Disabled"))
    val ENABLESNI_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("EnableSNI"))
    val FAILURETHRESHOLD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, XmlSerialName("FailureThreshold"))
    val FULLYQUALIFIEDDOMAINNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("FullyQualifiedDomainName"))
    val HEALTHTHRESHOLD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, XmlSerialName("HealthThreshold"))
    val IPADDRESS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("IPAddress"))
    val INSUFFICIENTDATAHEALTHSTATUS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, XmlSerialName("InsufficientDataHealthStatus"))
    val INVERTED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("Inverted"))
    val MEASURELATENCY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("MeasureLatency"))
    val PORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, XmlSerialName("Port"))
    val REGIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, XmlSerialName("Regions"), XmlCollectionName("Region"))
    val REQUESTINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, XmlSerialName("RequestInterval"))
    val RESOURCEPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("ResourcePath"))
    val ROUTINGCONTROLARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("RoutingControlArn"))
    val SEARCHSTRING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("SearchString"))
    val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, XmlSerialName("Type"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        trait(XmlSerialName("HealthCheckConfig"))
        trait(XmlNamespace("https://route53.amazonaws.com/doc/2013-04-01/"))
        field(ALARMIDENTIFIER_DESCRIPTOR)
        field(CHILDHEALTHCHECKS_DESCRIPTOR)
        field(DISABLED_DESCRIPTOR)
        field(ENABLESNI_DESCRIPTOR)
        field(FAILURETHRESHOLD_DESCRIPTOR)
        field(FULLYQUALIFIEDDOMAINNAME_DESCRIPTOR)
        field(HEALTHTHRESHOLD_DESCRIPTOR)
        field(IPADDRESS_DESCRIPTOR)
        field(INSUFFICIENTDATAHEALTHSTATUS_DESCRIPTOR)
        field(INVERTED_DESCRIPTOR)
        field(MEASURELATENCY_DESCRIPTOR)
        field(PORT_DESCRIPTOR)
        field(REGIONS_DESCRIPTOR)
        field(REQUESTINTERVAL_DESCRIPTOR)
        field(RESOURCEPATH_DESCRIPTOR)
        field(ROUTINGCONTROLARN_DESCRIPTOR)
        field(SEARCHSTRING_DESCRIPTOR)
        field(TYPE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.alarmIdentifier?.let { field(ALARMIDENTIFIER_DESCRIPTOR, it, ::serializeAlarmIdentifierDocument) }
        if (input.childHealthChecks != null) {
            listField(CHILDHEALTHCHECKS_DESCRIPTOR) {
                for (el0 in input.childHealthChecks) {
                    serializeString(el0)
                }
            }
        }
        input.disabled?.let { field(DISABLED_DESCRIPTOR, it) }
        input.enableSni?.let { field(ENABLESNI_DESCRIPTOR, it) }
        input.failureThreshold?.let { field(FAILURETHRESHOLD_DESCRIPTOR, it) }
        input.fullyQualifiedDomainName?.let { field(FULLYQUALIFIEDDOMAINNAME_DESCRIPTOR, it) }
        input.healthThreshold?.let { field(HEALTHTHRESHOLD_DESCRIPTOR, it) }
        input.ipAddress?.let { field(IPADDRESS_DESCRIPTOR, it) }
        input.insufficientDataHealthStatus?.let { field(INSUFFICIENTDATAHEALTHSTATUS_DESCRIPTOR, it.value) }
        input.inverted?.let { field(INVERTED_DESCRIPTOR, it) }
        input.measureLatency?.let { field(MEASURELATENCY_DESCRIPTOR, it) }
        input.port?.let { field(PORT_DESCRIPTOR, it) }
        if (input.regions != null) {
            listField(REGIONS_DESCRIPTOR) {
                for (el0 in input.regions) {
                    serializeString(el0.value)
                }
            }
        }
        input.requestInterval?.let { field(REQUESTINTERVAL_DESCRIPTOR, it) }
        input.resourcePath?.let { field(RESOURCEPATH_DESCRIPTOR, it) }
        input.routingControlArn?.let { field(ROUTINGCONTROLARN_DESCRIPTOR, it) }
        input.searchString?.let { field(SEARCHSTRING_DESCRIPTOR, it) }
        field(TYPE_DESCRIPTOR, input.type.value)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy