All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.appflow.serde.SapoDataConnectorProfilePropertiesDocumentDeserializer.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appflow.serde

import aws.sdk.kotlin.services.appflow.model.SapoDataConnectorProfileProperties
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 deserializeSapoDataConnectorProfilePropertiesDocument(deserializer: Deserializer): SapoDataConnectorProfileProperties {
    val builder = SapoDataConnectorProfileProperties.Builder()
    val APPLICATIONHOSTURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("applicationHostUrl"))
    val APPLICATIONSERVICEPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("applicationServicePath"))
    val CLIENTNUMBER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("clientNumber"))
    val DISABLESSO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("disableSSO"))
    val LOGONLANGUAGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("logonLanguage"))
    val OAUTHPROPERTIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("oAuthProperties"))
    val PORTNUMBER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("portNumber"))
    val PRIVATELINKSERVICENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("privateLinkServiceName"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(APPLICATIONHOSTURL_DESCRIPTOR)
        field(APPLICATIONSERVICEPATH_DESCRIPTOR)
        field(CLIENTNUMBER_DESCRIPTOR)
        field(DISABLESSO_DESCRIPTOR)
        field(LOGONLANGUAGE_DESCRIPTOR)
        field(OAUTHPROPERTIES_DESCRIPTOR)
        field(PORTNUMBER_DESCRIPTOR)
        field(PRIVATELINKSERVICENAME_DESCRIPTOR)
    }

    deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
        loop@while (true) {
            when (findNextFieldIndex()) {
                APPLICATIONHOSTURL_DESCRIPTOR.index -> builder.applicationHostUrl = deserializeString()
                APPLICATIONSERVICEPATH_DESCRIPTOR.index -> builder.applicationServicePath = deserializeString()
                CLIENTNUMBER_DESCRIPTOR.index -> builder.clientNumber = deserializeString()
                DISABLESSO_DESCRIPTOR.index -> builder.disableSso = deserializeBoolean()
                LOGONLANGUAGE_DESCRIPTOR.index -> builder.logonLanguage = deserializeString()
                OAUTHPROPERTIES_DESCRIPTOR.index -> builder.oAuthProperties = deserializeOAuthPropertiesDocument(deserializer)
                PORTNUMBER_DESCRIPTOR.index -> builder.portNumber = deserializeInt()
                PRIVATELINKSERVICENAME_DESCRIPTOR.index -> builder.privateLinkServiceName = deserializeString()
                null -> break@loop
                else -> skipValue()
            }
        }
    }
    builder.correctErrors()
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy