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

commonMain.aws.sdk.kotlin.services.codebuild.serde.ProjectArtifactsDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codebuild.serde

import aws.sdk.kotlin.services.codebuild.model.ProjectArtifacts
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 serializeProjectArtifactsDocument(serializer: Serializer, input: ProjectArtifacts) {
    val ARTIFACTIDENTIFIER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("artifactIdentifier"))
    val BUCKETOWNERACCESS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("bucketOwnerAccess"))
    val ENCRYPTIONDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("encryptionDisabled"))
    val LOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("location"))
    val NAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("name"))
    val NAMESPACETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("namespaceType"))
    val OVERRIDEARTIFACTNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("overrideArtifactName"))
    val PACKAGING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("packaging"))
    val PATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("path"))
    val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("type"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ARTIFACTIDENTIFIER_DESCRIPTOR)
        field(BUCKETOWNERACCESS_DESCRIPTOR)
        field(ENCRYPTIONDISABLED_DESCRIPTOR)
        field(LOCATION_DESCRIPTOR)
        field(NAME_DESCRIPTOR)
        field(NAMESPACETYPE_DESCRIPTOR)
        field(OVERRIDEARTIFACTNAME_DESCRIPTOR)
        field(PACKAGING_DESCRIPTOR)
        field(PATH_DESCRIPTOR)
        field(TYPE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(TYPE_DESCRIPTOR, input.type.value)
        input.location?.let { field(LOCATION_DESCRIPTOR, it) }
        input.path?.let { field(PATH_DESCRIPTOR, it) }
        input.namespaceType?.let { field(NAMESPACETYPE_DESCRIPTOR, it.value) }
        input.name?.let { field(NAME_DESCRIPTOR, it) }
        input.packaging?.let { field(PACKAGING_DESCRIPTOR, it.value) }
        input.overrideArtifactName?.let { field(OVERRIDEARTIFACTNAME_DESCRIPTOR, it) }
        input.encryptionDisabled?.let { field(ENCRYPTIONDISABLED_DESCRIPTOR, it) }
        input.artifactIdentifier?.let { field(ARTIFACTIDENTIFIER_DESCRIPTOR, it) }
        input.bucketOwnerAccess?.let { field(BUCKETOWNERACCESS_DESCRIPTOR, it.value) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy