commonMain.aws.sdk.kotlin.services.codestarnotifications.transform.TargetDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codestarnotifications Show documentation
Show all versions of codestarnotifications Show documentation
The AWS Kotlin client for codestar notifications
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestarnotifications.transform
import aws.sdk.kotlin.services.codestarnotifications.model.Target
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 serializeTargetDocument(serializer: Serializer, input: Target) {
val TARGETADDRESS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TargetAddress"))
val TARGETTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TargetType"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(TARGETADDRESS_DESCRIPTOR)
field(TARGETTYPE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.targetType?.let { field(TARGETTYPE_DESCRIPTOR, it) }
input.targetAddress?.let { field(TARGETADDRESS_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy