
commonMain.aws.sdk.kotlin.services.quicksight.transform.JoinInstructionDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.transform
import aws.sdk.kotlin.services.quicksight.model.JoinInstruction
import aws.sdk.kotlin.services.quicksight.model.JoinType
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 deserializeJoinInstructionDocument(deserializer: Deserializer): JoinInstruction {
val builder = JoinInstruction.Builder()
val LEFTJOINKEYPROPERTIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("LeftJoinKeyProperties"))
val LEFTOPERAND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LeftOperand"))
val ONCLAUSE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("OnClause"))
val RIGHTJOINKEYPROPERTIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("RightJoinKeyProperties"))
val RIGHTOPERAND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RightOperand"))
val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Type"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(LEFTJOINKEYPROPERTIES_DESCRIPTOR)
field(LEFTOPERAND_DESCRIPTOR)
field(ONCLAUSE_DESCRIPTOR)
field(RIGHTJOINKEYPROPERTIES_DESCRIPTOR)
field(RIGHTOPERAND_DESCRIPTOR)
field(TYPE_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
LEFTJOINKEYPROPERTIES_DESCRIPTOR.index -> builder.leftJoinKeyProperties = deserializeJoinKeyPropertiesDocument(deserializer)
LEFTOPERAND_DESCRIPTOR.index -> builder.leftOperand = deserializeString()
ONCLAUSE_DESCRIPTOR.index -> builder.onClause = deserializeString()
RIGHTJOINKEYPROPERTIES_DESCRIPTOR.index -> builder.rightJoinKeyProperties = deserializeJoinKeyPropertiesDocument(deserializer)
RIGHTOPERAND_DESCRIPTOR.index -> builder.rightOperand = deserializeString()
TYPE_DESCRIPTOR.index -> builder.type = deserializeString().let { JoinType.fromValue(it) }
null -> break@loop
else -> skipValue()
}
}
}
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy