TwinProperties Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. TwinProperties
- com.
public class TwinProperties
Representation of a single Twin Properties for the Device Provisioning Service.
The Properties on the TwinState shall contains one TwinCollection of desired property.
The desired property is a collection that can contain a associated TwinMetadata.
These metadata are provided by the Service and contains information about the last updated date time, and version.
For instance, the following is a valid desired property, represented as properties.desired
in the rest API.
{
"desired": {
"MaxSpeed":{
"Value":500,
"NewValue":300
},
"$metadata":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4,
"MaxSpeed":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4,
"Value":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4
},
"NewValue":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4
}
}
},
"$version":4
}
}
Method Summary
Modifier and Type | Method and Description |
---|---|
Twin |
getDesired()
Getter for the desired property. |
Methods inherited from java.lang.Object
Method Details
getDesired
public TwinCollection getDesired()
Getter for the desired property.
Returns:
TwinCollection
with the desired property content. It can be null
.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