commonMain.aws.sdk.kotlin.services.finspace.transform.FederationParametersDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.transform
import aws.sdk.kotlin.services.finspace.model.FederationParameters
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
import kotlin.collections.mutableMapOf
internal fun deserializeFederationParametersDocument(deserializer: Deserializer): FederationParameters {
val builder = FederationParameters.Builder()
val APPLICATIONCALLBACKURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("applicationCallBackURL"))
val ATTRIBUTEMAP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Map, JsonSerialName("attributeMap"))
val FEDERATIONPROVIDERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("federationProviderName"))
val FEDERATIONURN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("federationURN"))
val SAMLMETADATADOCUMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("samlMetadataDocument"))
val SAMLMETADATAURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("samlMetadataURL"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(APPLICATIONCALLBACKURL_DESCRIPTOR)
field(ATTRIBUTEMAP_DESCRIPTOR)
field(FEDERATIONPROVIDERNAME_DESCRIPTOR)
field(FEDERATIONURN_DESCRIPTOR)
field(SAMLMETADATADOCUMENT_DESCRIPTOR)
field(SAMLMETADATAURL_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
APPLICATIONCALLBACKURL_DESCRIPTOR.index -> builder.applicationCallBackUrl = deserializeString()
ATTRIBUTEMAP_DESCRIPTOR.index -> builder.attributeMap =
deserializer.deserializeMap(ATTRIBUTEMAP_DESCRIPTOR) {
val map0 = mutableMapOf()
while (hasNextEntry()) {
val k0 = key()
val v0 = if (nextHasValue()) { deserializeString() } else { deserializeNull(); continue }
map0[k0] = v0
}
map0
}
FEDERATIONPROVIDERNAME_DESCRIPTOR.index -> builder.federationProviderName = deserializeString()
FEDERATIONURN_DESCRIPTOR.index -> builder.federationUrn = deserializeString()
SAMLMETADATADOCUMENT_DESCRIPTOR.index -> builder.samlMetadataDocument = deserializeString()
SAMLMETADATAURL_DESCRIPTOR.index -> builder.samlMetadataUrl = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy