DeviceTwinProperties Class

  • java.lang.Object
    • com.microsoft.azure.eventgrid.models.DeviceTwinProperties

public class DeviceTwinProperties

A portion of the properties that can be written only by the application back-end, and read by the device.

Constructor Summary

Constructor Description
DeviceTwinProperties()

Method Summary

Modifier and Type Method and Description
DeviceTwinMetadata metadata()

Get metadata information for the properties JSON document.

java.lang.Double version()

Get version of device twin properties.

DeviceTwinProperties withMetadata(DeviceTwinMetadata metadata)

Set metadata information for the properties JSON document.

DeviceTwinProperties withVersion(Double version)

Set version of device twin properties.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DeviceTwinProperties

public DeviceTwinProperties()

Method Details

metadata

public DeviceTwinMetadata metadata()

Get metadata information for the properties JSON document.

Returns:

the metadata value

version

public Double version()

Get version of device twin properties.

Returns:

the version value

withMetadata

public DeviceTwinProperties withMetadata(DeviceTwinMetadata metadata)

Set metadata information for the properties JSON document.

Parameters:

metadata - the metadata value to set

Returns:

the DeviceTwinProperties object itself.

withVersion

public DeviceTwinProperties withVersion(Double version)

Set version of device twin properties.

Parameters:

version - the version value to set

Returns:

the DeviceTwinProperties object itself.

Applies to

Azure SDK for Java

Latest