DeviceRegistrationState Class
- java.
lang. Object - java.
io. Serializable - Serializable
- com.
microsoft. azure. sdk. iot. provisioning. service. configs. DeviceRegistrationState
- com.
- java.
public class DeviceRegistrationState extends Serializable
Representation of a single Device Provisioning Service device registration state with a JSON deserializer.
Example of JSON format:
{
"registrationId":"validRegistrationId",
"createdDateTimeUtc": "2017-09-28T16:29:42.3447817Z",
"assignedHub":"ContosoIoTHub.azure-devices.net",
"deviceId":"ContosoDevice-123",
"status":"assigned"
"lastUpdatedDateTimeUtc": "2017-09-28T16:29:42.3447817Z",
"errorCode":200
"errorMessage":"Succeeded"
"etag": "\"00000000-0000-0000-0000-00000000000\""
}
</code></pre></p>
Constructor Summary
Constructor | Description |
---|---|
DeviceRegistrationState(String json) |
CONSTRUCTOR This constructor creates an instance of the device registration state filling the class with the information provided in the JSON. |
Inherited Members
Constructor Details
DeviceRegistrationState
public DeviceRegistrationState(String json)
CONSTRUCTOR
This constructor creates an instance of the device registration state filling the class with the information provided in the JSON.
Parameters:
theString
</code> with the JSON received from the provisioning service. </p>
Throws:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for