Class PublishToTopicRequest
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.PublishToTopicRequest
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class PublishToTopicRequest extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_MODEL_TYPEstatic PublishToTopicRequestVOID
-
Constructor Summary
Constructors Constructor Description PublishToTopicRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object rhs)StringgetApplicationModelType()Returns the named model type.PublishMessagegetPublishMessage()The message to publish.StringgetTopic()The topic to publish the message.inthashCode()voidsetPublishMessage(PublishMessage publishMessage)The message to publish.voidsetTopic(String topic)The topic to publish the message.PublishToTopicRequestwithPublishMessage(PublishMessage publishMessage)The message to publish.PublishToTopicRequestwithTopic(String topic)The topic to publish the message.-
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 PublishToTopicRequest VOID
-
-
Method Detail
-
getTopic
public String getTopic()
The topic to publish the message.
-
setTopic
public void setTopic(String topic)
The topic to publish the message.
-
withTopic
public PublishToTopicRequest withTopic(String topic)
The topic to publish the message.
-
getPublishMessage
public PublishMessage getPublishMessage()
The message to publish.
-
setPublishMessage
public void setPublishMessage(PublishMessage publishMessage)
The message to publish.
-
withPublishMessage
public PublishToTopicRequest withPublishMessage(PublishMessage publishMessage)
The message to publish.
-
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
-
-