Class Serializer

java.lang.Object
software.amazon.cloudformation.resource.Serializer

public class Serializer extends Object
  • Field Details

    • MAP_TYPE_REFERENCE

      public static final com.fasterxml.jackson.core.type.TypeReference<Map<String,Object>> MAP_TYPE_REFERENCE
    • COMPRESSED

      public static final String COMPRESSED
      See Also:
  • Constructor Details

    • Serializer

      public Serializer(Boolean strictDeserialize)
    • Serializer

      public Serializer()
  • Method Details

    • serialize

      public <T> String serialize(T modelObject) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • compress

      public <T> String compress(String modelInput) throws IOException
      Throws:
      IOException
    • deserialize

      public <T> T deserialize(String s, com.fasterxml.jackson.core.type.TypeReference<T> reference) throws IOException
      Throws:
      IOException
    • decompress

      public String decompress(String s) throws IOException
      Throws:
      IOException
    • deserializeStrict

      public <T> T deserializeStrict(String s, com.fasterxml.jackson.core.type.TypeReference<T> reference) throws IOException
      Throws:
      IOException
    • convert

      public <T> T convert(Object obj, com.fasterxml.jackson.core.type.TypeReference<T> reference)