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 Summary
Fields Modifier and Type Field Description static StringAPPLICATION_MODEL_TYPEstatic MessageContextVOID
-
Constructor Summary
Constructors Constructor Description MessageContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object rhs)StringgetApplicationModelType()Returns the named model type.StringgetTopic()The topic where the message was published.inthashCode()voidsetTopic(String topic)The topic where the message was published.MessageContextwithTopic(String topic)The topic where the message was published.-
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 MessageContext VOID
-
-
Method Detail
-
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:EventStreamJsonMessageReturns the named model type. May be used for a header.- Specified by:
getApplicationModelTypein interfaceEventStreamJsonMessage- Returns:
- the named model type
-
-