Class BinaryMessage
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.BinaryMessage
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class BinaryMessage extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_MODEL_TYPEstatic BinaryMessageVOID
-
Constructor Summary
Constructors Constructor Description BinaryMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object rhs)StringgetApplicationModelType()Returns the named model type.MessageContextgetContext()The context of the message, such as the topic where the message was published.byte[]getMessage()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.BinaryMessagewithContext(MessageContext context)The context of the message, such as the topic where the message was published.BinaryMessagewithMessage(byte[] message)The binary message as a blob.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
-
-
-
Field Detail
-
APPLICATION_MODEL_TYPE
public static final String APPLICATION_MODEL_TYPE
- See Also:
- Constant Field Values
-
VOID
public static final BinaryMessage VOID
-
-
Method Detail
-
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:EventStreamJsonMessageReturns the named model type. May be used for a header.- Specified by:
getApplicationModelTypein interfaceEventStreamJsonMessage- Returns:
- the named model type
-
-