DeviceTwinInfo Class
- java.
lang. Object - com.
azure. messaging. eventgrid. systemevents. DeviceTwinInfo
- com.
Implements
@Deprecated
public final class DeviceTwinInfo
implements JsonSerializable<DeviceTwinInfo>
Note
This class has been deprecated. This class is deprecated and may be removed in future releases. System events are now available in the azure-messaging-eventgrid-systemevents package.
Information about the device twin, which is the cloud representation of application device metadata.
Constructor Summary
| Constructor | Description |
|---|---|
| DeviceTwinInfo() |
Creates an instance of Device |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Device |
fromJson(JsonReader jsonReader)
Reads an instance of Device |
| String |
getAuthenticationType()
Get the authentication |
| Float |
getCloudToDeviceMessageCount()
Get the cloud |
| String |
getConnectionState()
Get the connection |
| String |
getDeviceId()
Get the device |
| String |
getEtag()
Get the etag property: A piece of information that describes the content of the device twin. |
| String |
getLastActivityTime()
Get the last |
|
Device |
getProperties()
Get the properties property: Properties JSON element. |
| String |
getStatus()
Get the status property: Whether the device twin is enabled or disabled. |
| String |
getStatusUpdateTime()
Get the status |
| Float |
getVersion()
Get the version property: An integer that is incremented by one each time the device twin is updated. |
|
Device |
getX509Thumbprint()
Get the x509Thumbprint property: The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. |
|
Device |
setAuthenticationType(String authenticationType)
Set the authentication |
|
Device |
setCloudToDeviceMessageCount(Float cloudToDeviceMessageCount)
Set the cloud |
|
Device |
setConnectionState(String connectionState)
Set the connection |
|
Device |
setDeviceId(String deviceId)
Set the device |
|
Device |
setEtag(String etag)
Set the etag property: A piece of information that describes the content of the device twin. |
|
Device |
setLastActivityTime(String lastActivityTime)
Set the last |
|
Device |
setProperties(DeviceTwinInfoProperties properties)
Set the properties property: Properties JSON element. |
|
Device |
setStatus(String status)
Set the status property: Whether the device twin is enabled or disabled. |
|
Device |
setStatusUpdateTime(String statusUpdateTime)
Set the status |
|
Device |
setVersion(Float version)
Set the version property: An integer that is incremented by one each time the device twin is updated. |
|
Device |
setX509Thumbprint(DeviceTwinInfoX509Thumbprint x509Thumbprint)
Set the x509Thumbprint property: The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DeviceTwinInfo
public DeviceTwinInfo()
Creates an instance of DeviceTwinInfo class.
Method Details
fromJson
public static DeviceTwinInfo fromJson(JsonReader jsonReader)
Reads an instance of DeviceTwinInfo from the JsonReader.
Parameters:
Returns:
Throws:
getAuthenticationType
public String getAuthenticationType()
Get the authenticationType property: Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.
Returns:
getCloudToDeviceMessageCount
public Float getCloudToDeviceMessageCount()
Get the cloudToDeviceMessageCount property: Count of cloud to device messages sent to this device.
Returns:
getConnectionState
public String getConnectionState()
Get the connectionState property: Whether the device is connected or disconnected.
Returns:
getDeviceId
public String getDeviceId()
Get the deviceId property: The unique identifier of the device twin.
Returns:
getEtag
public String getEtag()
Get the etag property: A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin.
Returns:
getLastActivityTime
public String getLastActivityTime()
Get the lastActivityTime property: The ISO8601 timestamp of the last activity.
Returns:
getProperties
public DeviceTwinInfoProperties getProperties()
Get the properties property: Properties JSON element.
Returns:
getStatus
public String getStatus()
Get the status property: Whether the device twin is enabled or disabled.
Returns:
getStatusUpdateTime
public String getStatusUpdateTime()
Get the statusUpdateTime property: The ISO8601 timestamp of the last device twin status update.
Returns:
getVersion
public Float getVersion()
Get the version property: An integer that is incremented by one each time the device twin is updated.
Returns:
getX509Thumbprint
public DeviceTwinInfoX509Thumbprint getX509Thumbprint()
Get the x509Thumbprint property: The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate.
Returns:
setAuthenticationType
public DeviceTwinInfo setAuthenticationType(String authenticationType)
Set the authenticationType property: Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.
Parameters:
Returns:
setCloudToDeviceMessageCount
public DeviceTwinInfo setCloudToDeviceMessageCount(Float cloudToDeviceMessageCount)
Set the cloudToDeviceMessageCount property: Count of cloud to device messages sent to this device.
Parameters:
Returns:
setConnectionState
public DeviceTwinInfo setConnectionState(String connectionState)
Set the connectionState property: Whether the device is connected or disconnected.
Parameters:
Returns:
setDeviceId
public DeviceTwinInfo setDeviceId(String deviceId)
Set the deviceId property: The unique identifier of the device twin.
Parameters:
Returns:
setEtag
public DeviceTwinInfo setEtag(String etag)
Set the etag property: A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin.
Parameters:
Returns:
setLastActivityTime
public DeviceTwinInfo setLastActivityTime(String lastActivityTime)
Set the lastActivityTime property: The ISO8601 timestamp of the last activity.
Parameters:
Returns:
setProperties
public DeviceTwinInfo setProperties(DeviceTwinInfoProperties properties)
Set the properties property: Properties JSON element.
Parameters:
Returns:
setStatus
public DeviceTwinInfo setStatus(String status)
Set the status property: Whether the device twin is enabled or disabled.
Parameters:
Returns:
setStatusUpdateTime
public DeviceTwinInfo setStatusUpdateTime(String statusUpdateTime)
Set the statusUpdateTime property: The ISO8601 timestamp of the last device twin status update.
Parameters:
Returns:
setVersion
public DeviceTwinInfo setVersion(Float version)
Set the version property: An integer that is incremented by one each time the device twin is updated.
Parameters:
Returns:
setX509Thumbprint
public DeviceTwinInfo setX509Thumbprint(DeviceTwinInfoX509Thumbprint x509Thumbprint)
Set the x509Thumbprint property: The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate.
Parameters:
Returns: