public class DeviceLifeCycleEventProperties extends Object
| Constructor and Description |
|---|
DeviceLifeCycleEventProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
deviceId()
Get the unique identifier of the device.
|
String |
hubName()
Get name of the IoT Hub where the device was created or deleted.
|
String |
operationTimestamp()
Get the ISO8601 timestamp of the operation.
|
String |
opType()
Get the event type specified for this operation by the IoT Hub.
|
DeviceTwinInfo |
twin()
Get information about the device twin, which is the cloud represenation of application device metadata.
|
DeviceLifeCycleEventProperties |
withDeviceId(String deviceId)
Set the unique identifier of the device.
|
DeviceLifeCycleEventProperties |
withHubName(String hubName)
Set name of the IoT Hub where the device was created or deleted.
|
DeviceLifeCycleEventProperties |
withOperationTimestamp(String operationTimestamp)
Set the ISO8601 timestamp of the operation.
|
DeviceLifeCycleEventProperties |
withOpType(String opType)
Set the event type specified for this operation by the IoT Hub.
|
DeviceLifeCycleEventProperties |
withTwin(DeviceTwinInfo twin)
Set information about the device twin, which is the cloud represenation of application device metadata.
|
public String deviceId()
public DeviceLifeCycleEventProperties withDeviceId(String deviceId)
deviceId - the deviceId value to setpublic String hubName()
public DeviceLifeCycleEventProperties withHubName(String hubName)
hubName - the hubName value to setpublic String opType()
public DeviceLifeCycleEventProperties withOpType(String opType)
opType - the opType value to setpublic String operationTimestamp()
public DeviceLifeCycleEventProperties withOperationTimestamp(String operationTimestamp)
operationTimestamp - the operationTimestamp value to setpublic DeviceTwinInfo twin()
public DeviceLifeCycleEventProperties withTwin(DeviceTwinInfo twin)
twin - the twin 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.
*/