Class JsonMessage
java.lang.Object
software.amazon.awssdk.aws.greengrass.model.JsonMessage
- 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.The JSON message as an object.inthashCode()voidsetContext(MessageContext context) The context of the message, such as the topic where the message was published.voidsetMessage(Map<String, Object> message) The JSON message as an object.withContext(MessageContext context) The context of the message, such as the topic where the message was published.withMessage(Map<String, Object> message) The JSON message as an object.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
-
JsonMessage
public JsonMessage()
-
-
Method Details
-
getMessage
The JSON message as an object. -
setMessage
The JSON message as an object. -
withMessage
The JSON message as an object. -
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()
-