commonMain.aws.sdk.kotlin.services.appflow.serde.SapoDataConnectorProfilePropertiesDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// 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.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
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 serializeSapoDataConnectorProfilePropertiesDocument(serializer: Serializer, input: SapoDataConnectorProfileProperties) {
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)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(APPLICATIONHOSTURL_DESCRIPTOR, input.applicationHostUrl)
field(APPLICATIONSERVICEPATH_DESCRIPTOR, input.applicationServicePath)
field(PORTNUMBER_DESCRIPTOR, input.portNumber)
field(CLIENTNUMBER_DESCRIPTOR, input.clientNumber)
input.logonLanguage?.let { field(LOGONLANGUAGE_DESCRIPTOR, it) }
input.privateLinkServiceName?.let { field(PRIVATELINKSERVICENAME_DESCRIPTOR, it) }
input.oAuthProperties?.let { field(OAUTHPROPERTIES_DESCRIPTOR, it, ::serializeOAuthPropertiesDocument) }
if (input.disableSso != false) field(DISABLESSO_DESCRIPTOR, input.disableSso)
}
}