
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.serde.RevocationContentDocumentSerializer.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.RevocationContent
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 serializeRevocationContentDocument(serializer: Serializer, input: RevocationContent) {
val REVOCATIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, FormUrlSerialName("RevocationType"))
val S3BUCKET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("S3Bucket"))
val S3KEY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("S3Key"))
val S3OBJECTVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, FormUrlSerialName("S3ObjectVersion"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
trait(FormUrlSerialName("RevocationContent"))
field(REVOCATIONTYPE_DESCRIPTOR)
field(S3BUCKET_DESCRIPTOR)
field(S3KEY_DESCRIPTOR)
field(S3OBJECTVERSION_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.s3Bucket?.let { field(S3BUCKET_DESCRIPTOR, it) }
input.s3Key?.let { field(S3KEY_DESCRIPTOR, it) }
input.s3ObjectVersion?.let { field(S3OBJECTVERSION_DESCRIPTOR, it) }
input.revocationType?.let { field(REVOCATIONTYPE_DESCRIPTOR, it.value) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy