Class AwsInputDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<AwsInput>
io.camunda.connector.aws.dynamodb.model.AwsInputDeserializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
Custom deserializer for AwsInput. This deserializer is designed for use with newer template
versions incorporating template generation (version 7 onwards). It also maintains compatibility
with older template versions (such as version 6 and below) that do not use template generation.
This dual compatibility is achieved by handling various JSON structures representing different
operation types.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) Deserializes JSON to the appropriate AwsInput subtype.Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
AwsInputDeserializer
public AwsInputDeserializer()
-
-
Method Details
-
deserialize
public AwsInput deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException Deserializes JSON to the appropriate AwsInput subtype. Identifies the specific action type (e.g., createTable, deleteTable) based on the JSON content and deserializes it into the corresponding subtype object.- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<AwsInput>- Parameters:
jp- JsonParser for reading JSON content.ctxt- Deserialization context.- Returns:
- Deserialized AwsInput subtype object.
- Throws:
IOException- If an issue occurs while reading JSON content.com.fasterxml.jackson.core.JsonProcessingException- If an error occurs during JSON processing.
-