DigitalTwinCommandResponse Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. models. DigitalTwinCommandResponse
- com.
public class DigitalTwinCommandResponse
Represents the device command invocation results.
Method Summary
Modifier and Type | Method and Description |
---|---|
<T> T |
getPayload(Class<T> clazz)
Return the DigitalTwinCommandResponse payload in a custom type of your choosing |
JsonElement |
getPayloadAsJsonElement()
Return the DigitalTwinCommandResponse payload in JsonElement type |
String |
getPayloadAsJsonString()
Return the DigitalTwinCommandResponse payload in json string Use this if you wish to deserialize to a specific type using a deserialization library of your choice |
Integer | getStatus() |
void | setPayload(JsonElement payload) |
void | setStatus(Integer status) |
Method Details
getPayload
public
Return the DigitalTwinCommandResponse payload in a custom type of your choosing
Parameters:
Returns:
getPayloadAsJsonElement
public JsonElement getPayloadAsJsonElement()
Return the DigitalTwinCommandResponse payload in JsonElement type
Returns:
getPayloadAsJsonString
public String getPayloadAsJsonString()
Return the DigitalTwinCommandResponse payload in json string Use this if you wish to deserialize to a specific type using a deserialization library of your choice
Returns:
getStatus
public Integer getStatus()
setPayload
public void setPayload(JsonElement payload)
Parameters:
setStatus
public void setStatus(Integer status)
Parameters:
Applies to
Azure SDK for Java