Class BinaryMessage
java.lang.Object
software.amazon.awssdk.aws.greengrass.model.BinaryMessage
- All Implemented Interfaces:
EventStreamJsonMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the named model type.The context of the message, such as the topic where the message was published.byte[]The binary message as a blob.inthashCode()voidsetContext(MessageContext context) The context of the message, such as the topic where the message was published.voidsetMessage(byte[] message) The binary message as a blob.withContext(MessageContext context) The context of the message, such as the topic where the message was published.withMessage(byte[] message) The binary message as a blob.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
Field Details
-
APPLICATION_MODEL_TYPE
- See Also:
-
VOID
-
-
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
The binary message as a blob. -
getContext
The context of the message, such as the topic where the message was published. -
setContext
The context of the message, such as the topic where the message was published. -
withContext
The context of the message, such as the topic where the message was published. -
getApplicationModelType
Description copied from interface:EventStreamJsonMessageReturns the named model type. May be used for a header.- Specified by:
getApplicationModelTypein interfaceEventStreamJsonMessage- Returns:
- the named model type
-
equals
-
hashCode
public int hashCode()
-