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

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.serde.FixedResponseActionConfigDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticloadbalancingv2.serde

import aws.sdk.kotlin.services.elasticloadbalancingv2.model.FixedResponseActionConfig
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.formurl.FormUrlSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct

internal fun serializeFixedResponseActionConfigDocument(serializer: Serializer, input: FixedResponseActionConfig) {
    val CONTENTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("ContentType"))
    val MESSAGEBODY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("MessageBody"))
    val STATUSCODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("StatusCode"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        trait(FormUrlSerialName("FixedResponseActionConfig"))
        field(CONTENTTYPE_DESCRIPTOR)
        field(MESSAGEBODY_DESCRIPTOR)
        field(STATUSCODE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.messageBody?.let { field(MESSAGEBODY_DESCRIPTOR, it) }
        input.statusCode?.let { field(STATUSCODE_DESCRIPTOR, it) }
        input.contentType?.let { field(CONTENTTYPE_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy