DeviceTwinProperties Class
- java.
lang. Object - com.
azure. messaging. eventgrid. systemevents. DeviceTwinProperties
- com.
Implements
public final class DeviceTwinProperties
implements JsonSerializable<DeviceTwinProperties>
A portion of the properties that can be written only by the application back-end, and read by the device.
Constructor | Description |
---|---|
Device |
Creates an instance of Device |
Modifier and Type | Method and Description |
---|---|
static
Device |
from Reads an instance of Device |
Device |
get Get the metadata property: Metadata information for the properties JSON document. |
Float |
get Get the version property: Version of device twin properties. |
Device |
set Set the metadata property: Metadata information for the properties JSON document. |
Device |
set Set the version property: Version of device twin properties. |
Json |
to |
Methods inherited from java.lang.Object
DeviceTwinProperties
public DeviceTwinProperties()
Creates an instance of DeviceTwinProperties class.
fromJson
public static DeviceTwinProperties fromJson(JsonReader jsonReader)
Reads an instance of DeviceTwinProperties from the JsonReader.
Parameters:
Returns:
Throws:
getMetadata
public DeviceTwinMetadata getMetadata()
Get the metadata property: Metadata information for the properties JSON document.
Returns:
getVersion
public Float getVersion()
Get the version property: Version of device twin properties.
Returns:
setMetadata
public DeviceTwinProperties setMetadata(DeviceTwinMetadata metadata)
Set the metadata property: Metadata information for the properties JSON document.
Parameters:
Returns:
setVersion
public DeviceTwinProperties setVersion(Float version)
Set the version property: Version of device twin properties.
Parameters:
Returns:
toJson
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: