commonMain.aws.sdk.kotlin.services.codebuild.serde.ProjectSourceDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.serde
import aws.sdk.kotlin.services.codebuild.model.ProjectSource
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 serializeProjectSourceDocument(serializer: Serializer, input: ProjectSource) {
val AUTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("auth"))
val BUILDSTATUSCONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("buildStatusConfig"))
val BUILDSPEC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("buildspec"))
val GITCLONEDEPTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("gitCloneDepth"))
val GITSUBMODULESCONFIG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("gitSubmodulesConfig"))
val INSECURESSL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("insecureSsl"))
val LOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("location"))
val REPORTBUILDSTATUS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("reportBuildStatus"))
val SOURCEIDENTIFIER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("sourceIdentifier"))
val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("type"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AUTH_DESCRIPTOR)
field(BUILDSTATUSCONFIG_DESCRIPTOR)
field(BUILDSPEC_DESCRIPTOR)
field(GITCLONEDEPTH_DESCRIPTOR)
field(GITSUBMODULESCONFIG_DESCRIPTOR)
field(INSECURESSL_DESCRIPTOR)
field(LOCATION_DESCRIPTOR)
field(REPORTBUILDSTATUS_DESCRIPTOR)
field(SOURCEIDENTIFIER_DESCRIPTOR)
field(TYPE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(TYPE_DESCRIPTOR, input.type.value)
input.location?.let { field(LOCATION_DESCRIPTOR, it) }
input.gitCloneDepth?.let { field(GITCLONEDEPTH_DESCRIPTOR, it) }
input.gitSubmodulesConfig?.let { field(GITSUBMODULESCONFIG_DESCRIPTOR, it, ::serializeGitSubmodulesConfigDocument) }
input.buildspec?.let { field(BUILDSPEC_DESCRIPTOR, it) }
input.auth?.let { field(AUTH_DESCRIPTOR, it, ::serializeSourceAuthDocument) }
input.reportBuildStatus?.let { field(REPORTBUILDSTATUS_DESCRIPTOR, it) }
input.buildStatusConfig?.let { field(BUILDSTATUSCONFIG_DESCRIPTOR, it, ::serializeBuildStatusConfigDocument) }
input.insecureSsl?.let { field(INSECURESSL_DESCRIPTOR, it) }
input.sourceIdentifier?.let { field(SOURCEIDENTIFIER_DESCRIPTOR, it) }
}
}