commonMain.aws.sdk.kotlin.services.cloudsearch.transform.DomainStatusDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.transform
import aws.sdk.kotlin.services.cloudsearch.model.DomainStatus
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.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
import aws.smithy.kotlin.runtime.serde.xml.XmlDeserializer
import aws.smithy.kotlin.runtime.serde.xml.XmlNamespace
import aws.smithy.kotlin.runtime.serde.xml.XmlSerialName
internal fun deserializeDomainStatusDocument(deserializer: Deserializer): DomainStatus {
val builder = DomainStatus.Builder()
val ARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("ARN"))
val CREATED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("Created"))
val DELETED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("Deleted"))
val DOCSERVICE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, XmlSerialName("DocService"))
val DOMAINID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("DomainId"))
val DOMAINNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("DomainName"))
val LIMITS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, XmlSerialName("Limits"))
val PROCESSING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("Processing"))
val REQUIRESINDEXDOCUMENTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("RequiresIndexDocuments"))
val SEARCHINSTANCECOUNT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, XmlSerialName("SearchInstanceCount"))
val SEARCHINSTANCETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("SearchInstanceType"))
val SEARCHPARTITIONCOUNT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, XmlSerialName("SearchPartitionCount"))
val SEARCHSERVICE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, XmlSerialName("SearchService"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
trait(XmlSerialName("DomainStatus"))
trait(XmlNamespace("http://cloudsearch.amazonaws.com/doc/2013-01-01/"))
field(ARN_DESCRIPTOR)
field(CREATED_DESCRIPTOR)
field(DELETED_DESCRIPTOR)
field(DOCSERVICE_DESCRIPTOR)
field(DOMAINID_DESCRIPTOR)
field(DOMAINNAME_DESCRIPTOR)
field(LIMITS_DESCRIPTOR)
field(PROCESSING_DESCRIPTOR)
field(REQUIRESINDEXDOCUMENTS_DESCRIPTOR)
field(SEARCHINSTANCECOUNT_DESCRIPTOR)
field(SEARCHINSTANCETYPE_DESCRIPTOR)
field(SEARCHPARTITIONCOUNT_DESCRIPTOR)
field(SEARCHSERVICE_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ARN_DESCRIPTOR.index -> builder.arn = deserializeString()
CREATED_DESCRIPTOR.index -> builder.created = deserializeBoolean()
DELETED_DESCRIPTOR.index -> builder.deleted = deserializeBoolean()
DOCSERVICE_DESCRIPTOR.index -> builder.docService = deserializeServiceEndpointDocument(deserializer)
DOMAINID_DESCRIPTOR.index -> builder.domainId = deserializeString()
DOMAINNAME_DESCRIPTOR.index -> builder.domainName = deserializeString()
LIMITS_DESCRIPTOR.index -> builder.limits = deserializeLimitsDocument(deserializer)
PROCESSING_DESCRIPTOR.index -> builder.processing = deserializeBoolean()
REQUIRESINDEXDOCUMENTS_DESCRIPTOR.index -> builder.requiresIndexDocuments = deserializeBoolean()
SEARCHINSTANCECOUNT_DESCRIPTOR.index -> builder.searchInstanceCount = deserializeInt()
SEARCHINSTANCETYPE_DESCRIPTOR.index -> builder.searchInstanceType = deserializeString()
SEARCHPARTITIONCOUNT_DESCRIPTOR.index -> builder.searchPartitionCount = deserializeInt()
SEARCHSERVICE_DESCRIPTOR.index -> builder.searchService = deserializeServiceEndpointDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy