
commonMain.aws.sdk.kotlin.services.apptest.serde.M2ManagedApplicationStepInputDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.serde
import aws.sdk.kotlin.services.apptest.model.M2ManagedActionType
import aws.sdk.kotlin.services.apptest.model.M2ManagedApplicationStepInput
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 deserializeM2ManagedApplicationStepInputDocument(deserializer: Deserializer): M2ManagedApplicationStepInput {
val builder = M2ManagedApplicationStepInput.Builder()
val ACTIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("actionType"))
val APPLICATIONID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("applicationId"))
val LISTENERPORT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("listenerPort"))
val PROPERTIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("properties"))
val RUNTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("runtime"))
val VPCENDPOINTSERVICENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("vpcEndpointServiceName"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ACTIONTYPE_DESCRIPTOR)
field(APPLICATIONID_DESCRIPTOR)
field(LISTENERPORT_DESCRIPTOR)
field(PROPERTIES_DESCRIPTOR)
field(RUNTIME_DESCRIPTOR)
field(VPCENDPOINTSERVICENAME_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ACTIONTYPE_DESCRIPTOR.index -> builder.actionType = deserializeString().let { M2ManagedActionType.fromValue(it) }
APPLICATIONID_DESCRIPTOR.index -> builder.applicationId = deserializeString()
LISTENERPORT_DESCRIPTOR.index -> builder.listenerPort = deserializeInt()
PROPERTIES_DESCRIPTOR.index -> builder.properties = deserializeM2ManagedActionPropertiesDocument(deserializer)
RUNTIME_DESCRIPTOR.index -> builder.runtime = deserializeString()
VPCENDPOINTSERVICENAME_DESCRIPTOR.index -> builder.vpcEndpointServiceName = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy