commonMain.aws.sdk.kotlin.services.configservice.serde.ExternalEvaluationDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.serde
import aws.sdk.kotlin.services.configservice.model.ExternalEvaluation
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
import aws.smithy.kotlin.runtime.time.TimestampFormat
internal fun serializeExternalEvaluationDocument(serializer: Serializer, input: ExternalEvaluation) {
val ANNOTATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Annotation"))
val COMPLIANCERESOURCEID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ComplianceResourceId"))
val COMPLIANCERESOURCETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ComplianceResourceType"))
val COMPLIANCETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ComplianceType"))
val ORDERINGTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("OrderingTimestamp"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ANNOTATION_DESCRIPTOR)
field(COMPLIANCERESOURCEID_DESCRIPTOR)
field(COMPLIANCERESOURCETYPE_DESCRIPTOR)
field(COMPLIANCETYPE_DESCRIPTOR)
field(ORDERINGTIMESTAMP_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(COMPLIANCERESOURCETYPE_DESCRIPTOR, input.complianceResourceType)
field(COMPLIANCERESOURCEID_DESCRIPTOR, input.complianceResourceId)
field(COMPLIANCETYPE_DESCRIPTOR, input.complianceType.value)
input.annotation?.let { field(ANNOTATION_DESCRIPTOR, it) }
field(ORDERINGTIMESTAMP_DESCRIPTOR, input.orderingTimestamp, TimestampFormat.EPOCH_SECONDS)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy