public class DeviceTwinInfo extends Object
| Constructor and Description |
|---|
DeviceTwinInfo() |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticationType()
Get authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.
|
Double |
cloudToDeviceMessageCount()
Get count of cloud to device messages sent to this device.
|
String |
connectionState()
Get whether the device is connected or disconnected.
|
String |
deviceId()
Get the unique identifier of the device twin.
|
String |
etag()
Get a piece of information that describes the content of the device twin.
|
String |
lastActivityTime()
Get the ISO8601 timestamp of the last activity.
|
DeviceTwinInfoProperties |
properties()
Get properties JSON element.
|
String |
status()
Get whether the device twin is enabled or disabled.
|
String |
statusUpdateTime()
Get the ISO8601 timestamp of the last device twin status update.
|
Double |
version()
Get an integer that is incremented by one each time the device twin is updated.
|
DeviceTwinInfo |
withAuthenticationType(String authenticationType)
Set authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.
|
DeviceTwinInfo |
withCloudToDeviceMessageCount(Double cloudToDeviceMessageCount)
Set count of cloud to device messages sent to this device.
|
DeviceTwinInfo |
withConnectionState(String connectionState)
Set whether the device is connected or disconnected.
|
DeviceTwinInfo |
withDeviceId(String deviceId)
Set the unique identifier of the device twin.
|
DeviceTwinInfo |
withEtag(String etag)
Set a piece of information that describes the content of the device twin.
|
DeviceTwinInfo |
withLastActivityTime(String lastActivityTime)
Set the ISO8601 timestamp of the last activity.
|
DeviceTwinInfo |
withProperties(DeviceTwinInfoProperties properties)
Set properties JSON element.
|
DeviceTwinInfo |
withStatus(String status)
Set whether the device twin is enabled or disabled.
|
DeviceTwinInfo |
withStatusUpdateTime(String statusUpdateTime)
Set the ISO8601 timestamp of the last device twin status update.
|
DeviceTwinInfo |
withVersion(Double version)
Set an integer that is incremented by one each time the device twin is updated.
|
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.
|
DeviceTwinInfoX509Thumbprint |
x509Thumbprint()
Get the thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store.
|
public String authenticationType()
public DeviceTwinInfo withAuthenticationType(String authenticationType)
authenticationType - the authenticationType value to setpublic Double cloudToDeviceMessageCount()
public DeviceTwinInfo withCloudToDeviceMessageCount(Double cloudToDeviceMessageCount)
cloudToDeviceMessageCount - the cloudToDeviceMessageCount value to setpublic String connectionState()
public DeviceTwinInfo withConnectionState(String connectionState)
connectionState - the connectionState value to setpublic String deviceId()
public DeviceTwinInfo withDeviceId(String deviceId)
deviceId - the deviceId value to setpublic String etag()
public DeviceTwinInfo withEtag(String etag)
etag - the etag value to setpublic String lastActivityTime()
public DeviceTwinInfo withLastActivityTime(String lastActivityTime)
lastActivityTime - the lastActivityTime value to setpublic DeviceTwinInfoProperties properties()
public DeviceTwinInfo withProperties(DeviceTwinInfoProperties properties)
properties - the properties value to setpublic String status()
public DeviceTwinInfo withStatus(String status)
status - the status value to setpublic String statusUpdateTime()
public DeviceTwinInfo withStatusUpdateTime(String statusUpdateTime)
statusUpdateTime - the statusUpdateTime value to setpublic Double version()
public DeviceTwinInfo withVersion(Double version)
version - the version value to setpublic DeviceTwinInfoX509Thumbprint x509Thumbprint()
public DeviceTwinInfo withX509Thumbprint(DeviceTwinInfoX509Thumbprint x509Thumbprint)
x509Thumbprint - the x509Thumbprint value to set /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/