commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.CollectorResponseDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.serde
import aws.sdk.kotlin.services.databasemigrationservice.model.CollectorResponse
import aws.sdk.kotlin.services.databasemigrationservice.model.VersionStatus
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 deserializeCollectorResponseDocument(deserializer: Deserializer): CollectorResponse {
val builder = CollectorResponse.Builder()
val COLLECTORHEALTHCHECK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CollectorHealthCheck"))
val COLLECTORNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CollectorName"))
val COLLECTORREFERENCEDID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CollectorReferencedId"))
val COLLECTORVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CollectorVersion"))
val CREATEDDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CreatedDate"))
val DESCRIPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Description"))
val INVENTORYDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InventoryData"))
val LASTDATARECEIVED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LastDataReceived"))
val MODIFIEDDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ModifiedDate"))
val REGISTEREDDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RegisteredDate"))
val S3BUCKETNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("S3BucketName"))
val SERVICEACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServiceAccessRoleArn"))
val VERSIONSTATUS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("VersionStatus"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(COLLECTORHEALTHCHECK_DESCRIPTOR)
field(COLLECTORNAME_DESCRIPTOR)
field(COLLECTORREFERENCEDID_DESCRIPTOR)
field(COLLECTORVERSION_DESCRIPTOR)
field(CREATEDDATE_DESCRIPTOR)
field(DESCRIPTION_DESCRIPTOR)
field(INVENTORYDATA_DESCRIPTOR)
field(LASTDATARECEIVED_DESCRIPTOR)
field(MODIFIEDDATE_DESCRIPTOR)
field(REGISTEREDDATE_DESCRIPTOR)
field(S3BUCKETNAME_DESCRIPTOR)
field(SERVICEACCESSROLEARN_DESCRIPTOR)
field(VERSIONSTATUS_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
COLLECTORHEALTHCHECK_DESCRIPTOR.index -> builder.collectorHealthCheck = deserializeCollectorHealthCheckDocument(deserializer)
COLLECTORNAME_DESCRIPTOR.index -> builder.collectorName = deserializeString()
COLLECTORREFERENCEDID_DESCRIPTOR.index -> builder.collectorReferencedId = deserializeString()
COLLECTORVERSION_DESCRIPTOR.index -> builder.collectorVersion = deserializeString()
CREATEDDATE_DESCRIPTOR.index -> builder.createdDate = deserializeString()
DESCRIPTION_DESCRIPTOR.index -> builder.description = deserializeString()
INVENTORYDATA_DESCRIPTOR.index -> builder.inventoryData = deserializeInventoryDataDocument(deserializer)
LASTDATARECEIVED_DESCRIPTOR.index -> builder.lastDataReceived = deserializeString()
MODIFIEDDATE_DESCRIPTOR.index -> builder.modifiedDate = deserializeString()
REGISTEREDDATE_DESCRIPTOR.index -> builder.registeredDate = deserializeString()
S3BUCKETNAME_DESCRIPTOR.index -> builder.s3BucketName = deserializeString()
SERVICEACCESSROLEARN_DESCRIPTOR.index -> builder.serviceAccessRoleArn = deserializeString()
VERSIONSTATUS_DESCRIPTOR.index -> builder.versionStatus = deserializeString().let { VersionStatus.fromValue(it) }
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy