Class MessageContext

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

public class MessageContext extends Object implements EventStreamJsonMessage
Contextual information about the message. NOTE The context is ignored if used in PublishMessage.
  • Field Details

  • Constructor Details

    • MessageContext

      public MessageContext()
  • Method Details

    • getTopic

      public String getTopic()
      The topic where the message was published.
    • setTopic

      public void setTopic(String topic)
      The topic where the message was published.
    • withTopic

      public MessageContext withTopic(String topic)
      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