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

commonMain.aws.sdk.kotlin.services.glue.serde.SourceControlDetailsDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy