Class MQTTMessage
java.lang.Object
software.amazon.awssdk.aws.greengrass.model.MQTTMessage
- All Implemented Interfaces:
EventStreamJsonMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the named model type.(Optional) Message content type.byte[](Optional) Correlation data blob for request/response.(Optional) Message expiry interval in seconds.byte[](Optional) The message payload as a blob.(Optional) Message payload format.(Optional) Response topic for request/response.The topic to which the message was published.(Optional) MQTT user properties associated with the message.inthashCode()isRetain()(Optional) The value of the retain flag.voidsetContentType(String contentType) (Optional) Message content type.voidsetCorrelationData(byte[] correlationData) (Optional) Correlation data blob for request/response.voidsetMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds) (Optional) Message expiry interval in seconds.voidsetPayload(byte[] payload) (Optional) The message payload as a blob.voidsetPayloadFormat(String payloadFormat) (Optional) Message payload format.voidsetPayloadFormat(PayloadFormat payloadFormat) (Optional) Message payload format.voidsetResponseTopic(String responseTopic) (Optional) Response topic for request/response.void(Optional) The value of the retain flag.voidsetTopicName(String topicName) The topic to which the message was published.voidsetUserProperties(List<UserProperty> userProperties) (Optional) MQTT user properties associated with the message.withContentType(String contentType) (Optional) Message content type.withCorrelationData(byte[] correlationData) (Optional) Correlation data blob for request/response.withMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds) (Optional) Message expiry interval in seconds.withPayload(byte[] payload) (Optional) The message payload as a blob.withPayloadFormat(String payloadFormat) (Optional) Message payload format.withPayloadFormat(PayloadFormat payloadFormat) (Optional) Message payload format.withResponseTopic(String responseTopic) (Optional) Response topic for request/response.withRetain(Boolean retain) (Optional) The value of the retain flag.withTopicName(String topicName) The topic to which the message was published.withUserProperties(List<UserProperty> userProperties) (Optional) MQTT user properties associated with the message.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
-
MQTTMessage
public MQTTMessage()
-
-
Method Details
-
getTopicName
The topic to which the message was published. -
setTopicName
The topic to which the message was published. -
withTopicName
The topic to which the message was published. -
getPayload
public byte[] getPayload()(Optional) The message payload as a blob. -
setPayload
public void setPayload(byte[] payload) (Optional) The message payload as a blob. -
withPayload
(Optional) The message payload as a blob. -
isRetain
(Optional) The value of the retain flag. -
setRetain
(Optional) The value of the retain flag. -
withRetain
(Optional) The value of the retain flag. -
getUserProperties
(Optional) MQTT user properties associated with the message. -
setUserProperties
(Optional) MQTT user properties associated with the message. -
withUserProperties
(Optional) MQTT user properties associated with the message. -
getMessageExpiryIntervalSeconds
(Optional) Message expiry interval in seconds. -
setMessageExpiryIntervalSeconds
(Optional) Message expiry interval in seconds. -
withMessageExpiryIntervalSeconds
(Optional) Message expiry interval in seconds. -
getCorrelationData
public byte[] getCorrelationData()(Optional) Correlation data blob for request/response. -
setCorrelationData
public void setCorrelationData(byte[] correlationData) (Optional) Correlation data blob for request/response. -
withCorrelationData
(Optional) Correlation data blob for request/response. -
getResponseTopic
(Optional) Response topic for request/response. -
setResponseTopic
(Optional) Response topic for request/response. -
withResponseTopic
(Optional) Response topic for request/response. -
getPayloadFormat
-
getPayloadFormatAsString
(Optional) Message payload format. -
setPayloadFormat
(Optional) Message payload format. -
withPayloadFormat
(Optional) Message payload format. -
setPayloadFormat
(Optional) Message payload format. -
withPayloadFormat
(Optional) Message payload format. -
getContentType
(Optional) Message content type. -
setContentType
(Optional) Message content type. -
withContentType
(Optional) Message content type. -
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()
-