DeviceTwinInfo Class
- java.
lang. Object - com.
microsoft. azure. eventgrid. models. DeviceTwinInfo
- com.
public class DeviceTwinInfo
Information about the device twin, which is the cloud representation of application device metadata.
Constructor | Description | |
---|---|---|
Device |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
authentication Get authentication type used for this device: either SAS, Self |
java.lang.Double |
cloud Get count of cloud to device messages sent to this device. |
java.lang.String |
connection Get whether the device is connected or disconnected. |
java.lang.String |
device Get the unique identifier of the device twin. |
java.lang.String |
etag()
Get a piece of information that describes the content of the device twin. |
java.lang.String |
last Get the ISO8601 timestamp of the last activity. |
Device |
properties()
Get properties JSON element. |
java.lang.String |
status()
Get whether the device twin is enabled or disabled. |
java.lang.String |
status Get the ISO8601 timestamp of the last device twin status update. |
java.lang.Double |
version()
Get an integer that is incremented by one each time the device twin is updated. |
Device |
with Set authentication type used for this device: either SAS, Self |
Device |
with Set count of cloud to device messages sent to this device. |
Device |
with Set whether the device is connected or disconnected. |
Device |
with Set the unique identifier of the device twin. |
Device |
with Set a piece of information that describes the content of the device twin. |
Device |
with Set the ISO8601 timestamp of the last activity. |
Device |
with Set properties JSON element. |
Device |
with Set whether the device twin is enabled or disabled. |
Device |
with Set the ISO8601 timestamp of the last device twin status update. |
Device |
with Set an integer that is incremented by one each time the device twin is updated. |
Device |
withX509Thumbprint(Device Set the thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. |
Device |
x509Thumbprint()
Get the thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. |
DeviceTwinInfo
public DeviceTwinInfo()
authenticationType
public String authenticationType()
Get authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.
Returns:
cloudToDeviceMessageCount
public Double cloudToDeviceMessageCount()
Get count of cloud to device messages sent to this device.
Returns:
connectionState
public String connectionState()
Get whether the device is connected or disconnected.
Returns:
deviceId
public String deviceId()
Get the unique identifier of the device twin.
Returns:
etag
public String etag()
Get a piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin.
Returns:
lastActivityTime
public String lastActivityTime()
Get the ISO8601 timestamp of the last activity.
Returns:
properties
public DeviceTwinInfoProperties properties()
Get properties JSON element.
Returns:
status
public String status()
Get whether the device twin is enabled or disabled.
Returns:
statusUpdateTime
public String statusUpdateTime()
Get the ISO8601 timestamp of the last device twin status update.
Returns:
version
public Double version()
Get an integer that is incremented by one each time the device twin is updated.
Returns:
withAuthenticationType
public DeviceTwinInfo withAuthenticationType(String authenticationType)
Set authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.
Parameters:
Returns:
withCloudToDeviceMessageCount
public DeviceTwinInfo withCloudToDeviceMessageCount(Double cloudToDeviceMessageCount)
Set count of cloud to device messages sent to this device.
Parameters:
Returns:
withConnectionState
public DeviceTwinInfo withConnectionState(String connectionState)
Set whether the device is connected or disconnected.
Parameters:
Returns:
withDeviceId
public DeviceTwinInfo withDeviceId(String deviceId)
Set the unique identifier of the device twin.
Parameters:
Returns:
withEtag
public DeviceTwinInfo withEtag(String etag)
Set a piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin.
Parameters:
Returns:
withLastActivityTime
public DeviceTwinInfo withLastActivityTime(String lastActivityTime)
Set the ISO8601 timestamp of the last activity.
Parameters:
Returns:
withProperties
public DeviceTwinInfo withProperties(DeviceTwinInfoProperties properties)
Set properties JSON element.
Parameters:
Returns:
withStatus
public DeviceTwinInfo withStatus(String status)
Set whether the device twin is enabled or disabled.
Parameters:
Returns:
withStatusUpdateTime
public DeviceTwinInfo withStatusUpdateTime(String statusUpdateTime)
Set the ISO8601 timestamp of the last device twin status update.
Parameters:
Returns:
withVersion
public DeviceTwinInfo withVersion(Double version)
Set an integer that is incremented by one each time the device twin is updated.
Parameters:
Returns:
withX509Thumbprint
public DeviceTwinInfo withX509Thumbprint(DeviceTwinInfoX509Thumbprint x509Thumbprint)
Set 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:
x509Thumbprint
public DeviceTwinInfoX509Thumbprint x509Thumbprint()
Get 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:
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: