aws.sdk.kotlin.services.codebuild.transform.LogsLocationDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild Show documentation
Show all versions of codebuild 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.transform
import aws.sdk.kotlin.services.codebuild.model.LogsLocation
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeLogsLocationDocument(deserializer: Deserializer): LogsLocation {
val builder = LogsLocation.Builder()
val CLOUDWATCHLOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("cloudWatchLogs"))
val CLOUDWATCHLOGSARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("cloudWatchLogsArn"))
val DEEPLINK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("deepLink"))
val GROUPNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("groupName"))
val S3DEEPLINK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("s3DeepLink"))
val S3LOGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("s3Logs"))
val S3LOGSARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("s3LogsArn"))
val STREAMNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("streamName"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CLOUDWATCHLOGS_DESCRIPTOR)
field(CLOUDWATCHLOGSARN_DESCRIPTOR)
field(DEEPLINK_DESCRIPTOR)
field(GROUPNAME_DESCRIPTOR)
field(S3DEEPLINK_DESCRIPTOR)
field(S3LOGS_DESCRIPTOR)
field(S3LOGSARN_DESCRIPTOR)
field(STREAMNAME_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
CLOUDWATCHLOGS_DESCRIPTOR.index -> builder.cloudWatchLogs = deserializeCloudWatchLogsConfigDocument(deserializer)
CLOUDWATCHLOGSARN_DESCRIPTOR.index -> builder.cloudWatchLogsArn = deserializeString()
DEEPLINK_DESCRIPTOR.index -> builder.deepLink = deserializeString()
GROUPNAME_DESCRIPTOR.index -> builder.groupName = deserializeString()
S3DEEPLINK_DESCRIPTOR.index -> builder.s3DeepLink = deserializeString()
S3LOGS_DESCRIPTOR.index -> builder.s3Logs = deserializeS3LogsConfigDocument(deserializer)
S3LOGSARN_DESCRIPTOR.index -> builder.s3LogsArn = deserializeString()
STREAMNAME_DESCRIPTOR.index -> builder.streamName = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy