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

commonMain.aws.sdk.kotlin.services.bedrockagent.serde.FlowValidationDetailsDocumentDeserializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockagent.serde

import aws.sdk.kotlin.services.bedrockagent.model.FlowValidationDetails
import aws.smithy.kotlin.runtime.serde.DeserializationException
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.IgnoreKey
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 deserializeFlowValidationDetailsDocument(deserializer: Deserializer): FlowValidationDetails {
    var value: FlowValidationDetails? = null
    val CYCLICCONNECTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("cyclicConnection"))
    val DUPLICATECONDITIONEXPRESSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("duplicateConditionExpression"))
    val DUPLICATECONNECTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("duplicateConnections"))
    val INCOMPATIBLECONNECTIONDATATYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("incompatibleConnectionDataType"))
    val MALFORMEDCONDITIONEXPRESSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("malformedConditionExpression"))
    val MALFORMEDNODEINPUTEXPRESSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("malformedNodeInputExpression"))
    val MISMATCHEDNODEINPUTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("mismatchedNodeInputType"))
    val MISMATCHEDNODEOUTPUTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("mismatchedNodeOutputType"))
    val MISSINGCONNECTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingConnectionConfiguration"))
    val MISSINGDEFAULTCONDITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingDefaultCondition"))
    val MISSINGENDINGNODES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingEndingNodes"))
    val MISSINGNODECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingNodeConfiguration"))
    val MISSINGNODEINPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingNodeInput"))
    val MISSINGNODEOUTPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingNodeOutput"))
    val MISSINGSTARTINGNODES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("missingStartingNodes"))
    val MULTIPLENODEINPUTCONNECTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("multipleNodeInputConnections"))
    val UNFULFILLEDNODEINPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unfulfilledNodeInput"))
    val UNKNOWNCONNECTIONCONDITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unknownConnectionCondition"))
    val UNKNOWNCONNECTIONSOURCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unknownConnectionSource"))
    val UNKNOWNCONNECTIONSOURCEOUTPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unknownConnectionSourceOutput"))
    val UNKNOWNCONNECTIONTARGET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unknownConnectionTarget"))
    val UNKNOWNCONNECTIONTARGETINPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unknownConnectionTargetInput"))
    val UNREACHABLENODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unreachableNode"))
    val UNSATISFIEDCONNECTIONCONDITIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unsatisfiedConnectionConditions"))
    val UNSPECIFIED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("unspecified"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        trait(IgnoreKey("__type"))
        field(CYCLICCONNECTION_DESCRIPTOR)
        field(DUPLICATECONDITIONEXPRESSION_DESCRIPTOR)
        field(DUPLICATECONNECTIONS_DESCRIPTOR)
        field(INCOMPATIBLECONNECTIONDATATYPE_DESCRIPTOR)
        field(MALFORMEDCONDITIONEXPRESSION_DESCRIPTOR)
        field(MALFORMEDNODEINPUTEXPRESSION_DESCRIPTOR)
        field(MISMATCHEDNODEINPUTTYPE_DESCRIPTOR)
        field(MISMATCHEDNODEOUTPUTTYPE_DESCRIPTOR)
        field(MISSINGCONNECTIONCONFIGURATION_DESCRIPTOR)
        field(MISSINGDEFAULTCONDITION_DESCRIPTOR)
        field(MISSINGENDINGNODES_DESCRIPTOR)
        field(MISSINGNODECONFIGURATION_DESCRIPTOR)
        field(MISSINGNODEINPUT_DESCRIPTOR)
        field(MISSINGNODEOUTPUT_DESCRIPTOR)
        field(MISSINGSTARTINGNODES_DESCRIPTOR)
        field(MULTIPLENODEINPUTCONNECTIONS_DESCRIPTOR)
        field(UNFULFILLEDNODEINPUT_DESCRIPTOR)
        field(UNKNOWNCONNECTIONCONDITION_DESCRIPTOR)
        field(UNKNOWNCONNECTIONSOURCE_DESCRIPTOR)
        field(UNKNOWNCONNECTIONSOURCEOUTPUT_DESCRIPTOR)
        field(UNKNOWNCONNECTIONTARGET_DESCRIPTOR)
        field(UNKNOWNCONNECTIONTARGETINPUT_DESCRIPTOR)
        field(UNREACHABLENODE_DESCRIPTOR)
        field(UNSATISFIEDCONNECTIONCONDITIONS_DESCRIPTOR)
        field(UNSPECIFIED_DESCRIPTOR)
    }

    deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
        loop@while(true) {
            when(findNextFieldIndex()) {
                CYCLICCONNECTION_DESCRIPTOR.index -> value = FlowValidationDetails.CyclicConnection(deserializeCyclicConnectionFlowValidationDetailsDocument(deserializer))
                DUPLICATECONDITIONEXPRESSION_DESCRIPTOR.index -> value = FlowValidationDetails.DuplicateConditionExpression(deserializeDuplicateConditionExpressionFlowValidationDetailsDocument(deserializer))
                DUPLICATECONNECTIONS_DESCRIPTOR.index -> value = FlowValidationDetails.DuplicateConnections(deserializeDuplicateConnectionsFlowValidationDetailsDocument(deserializer))
                INCOMPATIBLECONNECTIONDATATYPE_DESCRIPTOR.index -> value = FlowValidationDetails.IncompatibleConnectionDataType(deserializeIncompatibleConnectionDataTypeFlowValidationDetailsDocument(deserializer))
                MALFORMEDCONDITIONEXPRESSION_DESCRIPTOR.index -> value = FlowValidationDetails.MalformedConditionExpression(deserializeMalformedConditionExpressionFlowValidationDetailsDocument(deserializer))
                MALFORMEDNODEINPUTEXPRESSION_DESCRIPTOR.index -> value = FlowValidationDetails.MalformedNodeInputExpression(deserializeMalformedNodeInputExpressionFlowValidationDetailsDocument(deserializer))
                MISMATCHEDNODEINPUTTYPE_DESCRIPTOR.index -> value = FlowValidationDetails.MismatchedNodeInputType(deserializeMismatchedNodeInputTypeFlowValidationDetailsDocument(deserializer))
                MISMATCHEDNODEOUTPUTTYPE_DESCRIPTOR.index -> value = FlowValidationDetails.MismatchedNodeOutputType(deserializeMismatchedNodeOutputTypeFlowValidationDetailsDocument(deserializer))
                MISSINGCONNECTIONCONFIGURATION_DESCRIPTOR.index -> value = FlowValidationDetails.MissingConnectionConfiguration(deserializeMissingConnectionConfigurationFlowValidationDetailsDocument(deserializer))
                MISSINGDEFAULTCONDITION_DESCRIPTOR.index -> value = FlowValidationDetails.MissingDefaultCondition(deserializeMissingDefaultConditionFlowValidationDetailsDocument(deserializer))
                MISSINGENDINGNODES_DESCRIPTOR.index -> value = FlowValidationDetails.MissingEndingNodes(deserializeMissingEndingNodesFlowValidationDetailsDocument(deserializer))
                MISSINGNODECONFIGURATION_DESCRIPTOR.index -> value = FlowValidationDetails.MissingNodeConfiguration(deserializeMissingNodeConfigurationFlowValidationDetailsDocument(deserializer))
                MISSINGNODEINPUT_DESCRIPTOR.index -> value = FlowValidationDetails.MissingNodeInput(deserializeMissingNodeInputFlowValidationDetailsDocument(deserializer))
                MISSINGNODEOUTPUT_DESCRIPTOR.index -> value = FlowValidationDetails.MissingNodeOutput(deserializeMissingNodeOutputFlowValidationDetailsDocument(deserializer))
                MISSINGSTARTINGNODES_DESCRIPTOR.index -> value = FlowValidationDetails.MissingStartingNodes(deserializeMissingStartingNodesFlowValidationDetailsDocument(deserializer))
                MULTIPLENODEINPUTCONNECTIONS_DESCRIPTOR.index -> value = FlowValidationDetails.MultipleNodeInputConnections(deserializeMultipleNodeInputConnectionsFlowValidationDetailsDocument(deserializer))
                UNFULFILLEDNODEINPUT_DESCRIPTOR.index -> value = FlowValidationDetails.UnfulfilledNodeInput(deserializeUnfulfilledNodeInputFlowValidationDetailsDocument(deserializer))
                UNKNOWNCONNECTIONCONDITION_DESCRIPTOR.index -> value = FlowValidationDetails.UnknownConnectionCondition(deserializeUnknownConnectionConditionFlowValidationDetailsDocument(deserializer))
                UNKNOWNCONNECTIONSOURCE_DESCRIPTOR.index -> value = FlowValidationDetails.UnknownConnectionSource(deserializeUnknownConnectionSourceFlowValidationDetailsDocument(deserializer))
                UNKNOWNCONNECTIONSOURCEOUTPUT_DESCRIPTOR.index -> value = FlowValidationDetails.UnknownConnectionSourceOutput(deserializeUnknownConnectionSourceOutputFlowValidationDetailsDocument(deserializer))
                UNKNOWNCONNECTIONTARGET_DESCRIPTOR.index -> value = FlowValidationDetails.UnknownConnectionTarget(deserializeUnknownConnectionTargetFlowValidationDetailsDocument(deserializer))
                UNKNOWNCONNECTIONTARGETINPUT_DESCRIPTOR.index -> value = FlowValidationDetails.UnknownConnectionTargetInput(deserializeUnknownConnectionTargetInputFlowValidationDetailsDocument(deserializer))
                UNREACHABLENODE_DESCRIPTOR.index -> value = FlowValidationDetails.UnreachableNode(deserializeUnreachableNodeFlowValidationDetailsDocument(deserializer))
                UNSATISFIEDCONNECTIONCONDITIONS_DESCRIPTOR.index -> value = FlowValidationDetails.UnsatisfiedConnectionConditions(deserializeUnsatisfiedConnectionConditionsFlowValidationDetailsDocument(deserializer))
                UNSPECIFIED_DESCRIPTOR.index -> value = FlowValidationDetails.Unspecified(deserializeUnspecifiedFlowValidationDetailsDocument(deserializer))
                null -> break@loop
                else -> value = FlowValidationDetails.SdkUnknown.also { skipValue() }
            }
        }
    }
    return value ?: throw DeserializationException("Deserialized union value unexpectedly null: FlowValidationDetails")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy