Class JsonMessage

java.lang.Object
software.amazon.awssdk.aws.greengrass.model.JsonMessage
All Implemented Interfaces:
EventStreamJsonMessage

public class JsonMessage extends Object implements EventStreamJsonMessage
  • Field Details

  • Constructor Details

    • JsonMessage

      public JsonMessage()
  • Method Details

    • getMessage

      public Map<String,Object> getMessage()
      The JSON message as an object.
    • setMessage

      public void setMessage(Map<String,Object> message)
      The JSON message as an object.
    • withMessage

      public JsonMessage withMessage(Map<String,Object> message)
      The JSON message as an object.
    • getContext

      public MessageContext getContext()
      The context of the message, such as the topic where the message was published.
    • setContext

      public void setContext(MessageContext context)
      The context of the message, such as the topic where the message was published.
    • withContext

      public JsonMessage withContext(MessageContext context)
      The context of the message, such as the topic where the message was published.
    • getApplicationModelType

      public String getApplicationModelType()
      Description copied from interface: EventStreamJsonMessage
      Returns the named model type. May be used for a header.
      Specified by:
      getApplicationModelType in interface EventStreamJsonMessage
      Returns:
      the named model type
    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object