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

commonMain.aws.sdk.kotlin.services.redshift.serde.RedshiftIdcApplicationDocumentDeserializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshift.serde

import aws.sdk.kotlin.services.redshift.model.RedshiftIdcApplication
import aws.smithy.kotlin.runtime.serde.getOrDeserializeErr
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
import aws.smithy.kotlin.runtime.serde.xml.tryData

internal fun deserializeRedshiftIdcApplicationDocument(reader: XmlTagReader): RedshiftIdcApplication {
    val builder = RedshiftIdcApplication.Builder()

    loop@while (true) {
        val curr = reader.nextTag() ?: break@loop
        when (curr.tagName) {
            // IdcInstanceArn com.amazonaws.redshift#RedshiftIdcApplication$IdcInstanceArn
            "IdcInstanceArn" -> builder.idcInstanceArn = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#String`)" }
            // RedshiftIdcApplicationName com.amazonaws.redshift#RedshiftIdcApplication$RedshiftIdcApplicationName
            "RedshiftIdcApplicationName" -> builder.redshiftIdcApplicationName = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#RedshiftIdcApplicationName`)" }
            // RedshiftIdcApplicationArn com.amazonaws.redshift#RedshiftIdcApplication$RedshiftIdcApplicationArn
            "RedshiftIdcApplicationArn" -> builder.redshiftIdcApplicationArn = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#String`)" }
            // IdentityNamespace com.amazonaws.redshift#RedshiftIdcApplication$IdentityNamespace
            "IdentityNamespace" -> builder.identityNamespace = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#IdentityNamespaceString`)" }
            // IdcDisplayName com.amazonaws.redshift#RedshiftIdcApplication$IdcDisplayName
            "IdcDisplayName" -> builder.idcDisplayName = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#IdcDisplayNameString`)" }
            // IamRoleArn com.amazonaws.redshift#RedshiftIdcApplication$IamRoleArn
            "IamRoleArn" -> builder.iamRoleArn = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#String`)" }
            // IdcManagedApplicationArn com.amazonaws.redshift#RedshiftIdcApplication$IdcManagedApplicationArn
            "IdcManagedApplicationArn" -> builder.idcManagedApplicationArn = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#String`)" }
            // IdcOnboardStatus com.amazonaws.redshift#RedshiftIdcApplication$IdcOnboardStatus
            "IdcOnboardStatus" -> builder.idcOnboardStatus = curr.tryData()
                .getOrDeserializeErr { "expected (string: `com.amazonaws.redshift#String`)" }
            // AuthorizedTokenIssuerList com.amazonaws.redshift#RedshiftIdcApplication$AuthorizedTokenIssuerList
            "AuthorizedTokenIssuerList" -> builder.authorizedTokenIssuerList = deserializeAuthorizedTokenIssuerListShape(curr)
            // ServiceIntegrations com.amazonaws.redshift#RedshiftIdcApplication$ServiceIntegrations
            "ServiceIntegrations" -> builder.serviceIntegrations = deserializeServiceIntegrationListShape(curr)
            else -> {}
        }
        curr.drop()
    }
    builder.correctErrors()
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy