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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getPayload()
Gets the payload of the response that correlates to a submitted request.String
getTopic()
Gets the MQTT topic that the response was received on.
-
-
-
Method Detail
-
getTopic
public 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
-
getPayload
public 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.
-
-