commonMain.aws.sdk.kotlin.services.cloudsearch.serde.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.serde
import aws.sdk.kotlin.services.cloudsearch.model.DomainStatus
import aws.smithy.kotlin.runtime.serde.getOrDeserializeErr
import aws.smithy.kotlin.runtime.serde.parseBoolean
import aws.smithy.kotlin.runtime.serde.parseInt
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
import aws.smithy.kotlin.runtime.serde.xml.tryData
internal fun deserializeDomainStatusDocument(reader: XmlTagReader): DomainStatus {
val builder = DomainStatus.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// DomainId com.amazonaws.cloudsearch#DomainStatus$DomainId
"DomainId" -> builder.domainId = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.cloudsearch#DomainId`)" }
// DomainName com.amazonaws.cloudsearch#DomainStatus$DomainName
"DomainName" -> builder.domainName = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.cloudsearch#DomainName`)" }
// ARN com.amazonaws.cloudsearch#DomainStatus$ARN
"ARN" -> builder.arn = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.cloudsearch#ARN`)" }
// Created com.amazonaws.cloudsearch#DomainStatus$Created
"Created" -> builder.created = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.cloudsearch#Boolean`)" }
// Deleted com.amazonaws.cloudsearch#DomainStatus$Deleted
"Deleted" -> builder.deleted = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.cloudsearch#Boolean`)" }
// DocService com.amazonaws.cloudsearch#DomainStatus$DocService
"DocService" -> builder.docService = deserializeServiceEndpointDocument(curr)
// SearchService com.amazonaws.cloudsearch#DomainStatus$SearchService
"SearchService" -> builder.searchService = deserializeServiceEndpointDocument(curr)
// RequiresIndexDocuments com.amazonaws.cloudsearch#DomainStatus$RequiresIndexDocuments
"RequiresIndexDocuments" -> builder.requiresIndexDocuments = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.cloudsearch#Boolean`)" }
// Processing com.amazonaws.cloudsearch#DomainStatus$Processing
"Processing" -> builder.processing = curr.tryData()
.parseBoolean()
.getOrDeserializeErr { "expected (boolean: `com.amazonaws.cloudsearch#Boolean`)" }
// SearchInstanceType com.amazonaws.cloudsearch#DomainStatus$SearchInstanceType
"SearchInstanceType" -> builder.searchInstanceType = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.cloudsearch#SearchInstanceType`)" }
// SearchPartitionCount com.amazonaws.cloudsearch#DomainStatus$SearchPartitionCount
"SearchPartitionCount" -> builder.searchPartitionCount = curr.tryData()
.parseInt()
.getOrDeserializeErr { "expected (integer: `com.amazonaws.cloudsearch#PartitionCount`)" }
// SearchInstanceCount com.amazonaws.cloudsearch#DomainStatus$SearchInstanceCount
"SearchInstanceCount" -> builder.searchInstanceCount = curr.tryData()
.parseInt()
.getOrDeserializeErr { "expected (integer: `com.amazonaws.cloudsearch#InstanceCount`)" }
// Limits com.amazonaws.cloudsearch#DomainStatus$Limits
"Limits" -> builder.limits = deserializeLimitsDocument(curr)
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy