commonMain.aws.sdk.kotlin.services.glue.serde.DataLakeAccessPropertiesOutputDocumentDeserializer.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
The 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.DataLakeAccessPropertiesOutput
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 deserializeDataLakeAccessPropertiesOutputDocument(deserializer: Deserializer): DataLakeAccessPropertiesOutput {
val builder = DataLakeAccessPropertiesOutput.Builder()
val CATALOGTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CatalogType"))
val DATALAKEACCESS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("DataLakeAccess"))
val DATATRANSFERROLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DataTransferRole"))
val KMSKEY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("KmsKey"))
val MANAGEDWORKGROUPNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ManagedWorkgroupName"))
val MANAGEDWORKGROUPSTATUS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ManagedWorkgroupStatus"))
val REDSHIFTDATABASENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RedshiftDatabaseName"))
val STATUSMESSAGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("StatusMessage"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CATALOGTYPE_DESCRIPTOR)
field(DATALAKEACCESS_DESCRIPTOR)
field(DATATRANSFERROLE_DESCRIPTOR)
field(KMSKEY_DESCRIPTOR)
field(MANAGEDWORKGROUPNAME_DESCRIPTOR)
field(MANAGEDWORKGROUPSTATUS_DESCRIPTOR)
field(REDSHIFTDATABASENAME_DESCRIPTOR)
field(STATUSMESSAGE_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
CATALOGTYPE_DESCRIPTOR.index -> builder.catalogType = deserializeString()
DATALAKEACCESS_DESCRIPTOR.index -> builder.dataLakeAccess = deserializeBoolean()
DATATRANSFERROLE_DESCRIPTOR.index -> builder.dataTransferRole = deserializeString()
KMSKEY_DESCRIPTOR.index -> builder.kmsKey = deserializeString()
MANAGEDWORKGROUPNAME_DESCRIPTOR.index -> builder.managedWorkgroupName = deserializeString()
MANAGEDWORKGROUPSTATUS_DESCRIPTOR.index -> builder.managedWorkgroupStatus = deserializeString()
REDSHIFTDATABASENAME_DESCRIPTOR.index -> builder.redshiftDatabaseName = deserializeString()
STATUSMESSAGE_DESCRIPTOR.index -> builder.statusMessage = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy