commonMain.aws.sdk.kotlin.services.glue.serde.SourceControlDetailsDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.serde
import aws.sdk.kotlin.services.glue.model.SourceControlDetails
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 serializeSourceControlDetailsDocument(serializer: Serializer, input: SourceControlDetails) {
val AUTHSTRATEGY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("AuthStrategy"))
val AUTHTOKEN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AuthToken"))
val BRANCH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Branch"))
val FOLDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Folder"))
val LASTCOMMITID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LastCommitId"))
val OWNER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Owner"))
val PROVIDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Provider"))
val REPOSITORY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Repository"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AUTHSTRATEGY_DESCRIPTOR)
field(AUTHTOKEN_DESCRIPTOR)
field(BRANCH_DESCRIPTOR)
field(FOLDER_DESCRIPTOR)
field(LASTCOMMITID_DESCRIPTOR)
field(OWNER_DESCRIPTOR)
field(PROVIDER_DESCRIPTOR)
field(REPOSITORY_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.provider?.let { field(PROVIDER_DESCRIPTOR, it.value) }
input.repository?.let { field(REPOSITORY_DESCRIPTOR, it) }
input.owner?.let { field(OWNER_DESCRIPTOR, it) }
input.branch?.let { field(BRANCH_DESCRIPTOR, it) }
input.folder?.let { field(FOLDER_DESCRIPTOR, it) }
input.lastCommitId?.let { field(LASTCOMMITID_DESCRIPTOR, it) }
input.authStrategy?.let { field(AUTHSTRATEGY_DESCRIPTOR, it.value) }
input.authToken?.let { field(AUTHTOKEN_DESCRIPTOR, it) }
}
}