Class DeviceTwinInfo
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceTwinInfo
Information about the device twin, which is the cloud representation of application device metadata.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationType property: Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.Get the cloudToDeviceMessageCount property: Count of cloud to device messages sent to this device.Get the connectionState property: Whether the device is connected or disconnected.Get the deviceId property: The unique identifier of the device twin.getEtag()
Get the etag property: A piece of information that describes the content of the device twin.Get the lastActivityTime property: The ISO8601 timestamp of the last activity.Get the properties property: Properties JSON element.Get the status property: Whether the device twin is enabled or disabled.Get the statusUpdateTime property: The ISO8601 timestamp of the last device twin status update.Get the version property: An integer that is incremented by one each time the device twin is updated.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.setAuthenticationType
(String authenticationType) Set the authenticationType property: Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.setCloudToDeviceMessageCount
(Float cloudToDeviceMessageCount) Set the cloudToDeviceMessageCount property: Count of cloud to device messages sent to this device.setConnectionState
(String connectionState) Set the connectionState property: Whether the device is connected or disconnected.setDeviceId
(String deviceId) Set the deviceId property: The unique identifier of the device twin.Set the etag property: A piece of information that describes the content of the device twin.setLastActivityTime
(String lastActivityTime) Set the lastActivityTime property: The ISO8601 timestamp of the last activity.setProperties
(DeviceTwinInfoProperties properties) Set the properties property: Properties JSON element.Set the status property: Whether the device twin is enabled or disabled.setStatusUpdateTime
(String statusUpdateTime) Set the statusUpdateTime property: The ISO8601 timestamp of the last device twin status update.setVersion
(Float version) Set the version property: An integer that is incremented by one each time the device twin is updated.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.
-
Constructor Details
-
DeviceTwinInfo
public DeviceTwinInfo()
-
-
Method Details
-
getAuthenticationType
Get the authenticationType property: Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.- Returns:
- the authenticationType value.
-
setAuthenticationType
Set the authenticationType property: Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.- Parameters:
authenticationType
- the authenticationType value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getCloudToDeviceMessageCount
Get the cloudToDeviceMessageCount property: Count of cloud to device messages sent to this device.- Returns:
- the cloudToDeviceMessageCount value.
-
setCloudToDeviceMessageCount
Set the cloudToDeviceMessageCount property: Count of cloud to device messages sent to this device.- Parameters:
cloudToDeviceMessageCount
- the cloudToDeviceMessageCount value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getConnectionState
Get the connectionState property: Whether the device is connected or disconnected.- Returns:
- the connectionState value.
-
setConnectionState
Set the connectionState property: Whether the device is connected or disconnected.- Parameters:
connectionState
- the connectionState value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getDeviceId
Get the deviceId property: The unique identifier of the device twin.- Returns:
- the deviceId value.
-
setDeviceId
Set the deviceId property: The unique identifier of the device twin.- Parameters:
deviceId
- the deviceId value to set.- Returns:
- the DeviceTwinInfo object itself.
-
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:
- the etag value.
-
setEtag
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:
etag
- the etag value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getLastActivityTime
Get the lastActivityTime property: The ISO8601 timestamp of the last activity.- Returns:
- the lastActivityTime value.
-
setLastActivityTime
Set the lastActivityTime property: The ISO8601 timestamp of the last activity.- Parameters:
lastActivityTime
- the lastActivityTime value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getProperties
Get the properties property: Properties JSON element.- Returns:
- the properties value.
-
setProperties
Set the properties property: Properties JSON element.- Parameters:
properties
- the properties value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getStatus
Get the status property: Whether the device twin is enabled or disabled.- Returns:
- the status value.
-
setStatus
Set the status property: Whether the device twin is enabled or disabled.- Parameters:
status
- the status value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getStatusUpdateTime
Get the statusUpdateTime property: The ISO8601 timestamp of the last device twin status update.- Returns:
- the statusUpdateTime value.
-
setStatusUpdateTime
Set the statusUpdateTime property: The ISO8601 timestamp of the last device twin status update.- Parameters:
statusUpdateTime
- the statusUpdateTime value to set.- Returns:
- the DeviceTwinInfo object itself.
-
getVersion
Get the version property: An integer that is incremented by one each time the device twin is updated.- Returns:
- the version value.
-
setVersion
Set the version property: An integer that is incremented by one each time the device twin is updated.- Parameters:
version
- the version value to set.- Returns:
- the DeviceTwinInfo object itself.
-
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:
- the x509Thumbprint value.
-
setX509Thumbprint
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:
x509Thumbprint
- the x509Thumbprint value to set.- Returns:
- the DeviceTwinInfo object itself.
-