Package software.amazon.awssdk.crt.iot
Class MqttRequestResponse
- java.lang.Object
- 
- software.amazon.awssdk.crt.iot.MqttRequestResponse
 
- 
 public class MqttRequestResponse extends Object Encapsulates a response to an AWS IoT Core MQTT-based service request
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getPayload()Gets the payload of the response that correlates to a submitted request.StringgetTopic()Gets the MQTT topic that the response was received on.
 
- 
- 
- 
Method Detail- 
getTopicpublic String getTopic() Gets the MQTT topic that the response was received on. Different topics map to different types within the service model, so we need this value in order to know what to deserialize the payload into.- Returns:
- the MQTT topic that the response was received on
 
 - 
getPayloadpublic byte[] getPayload() Gets the payload of the response that correlates to a submitted request.- Returns:
- Payload of the response that correlates to a submitted request.
 
 
- 
 
-