Class BinaryMessage

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

public class BinaryMessage extends Object implements EventStreamJsonMessage
  • Field Details

  • Constructor Details

    • BinaryMessage

      public BinaryMessage()
  • Method Details

    • getMessage

      public byte[] getMessage()
      The binary message as a blob.
    • setMessage

      public void setMessage(byte[] message)
      The binary message as a blob.
    • withMessage

      public BinaryMessage withMessage(byte[] message)
      The binary message as a blob.
    • 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 BinaryMessage 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