Class DeviceLifeCycleEventProperties
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceLifeCycleEventProperties
- Direct Known Subclasses:
IotHubDeviceCreatedEventData
,IotHubDeviceDeletedEventData
Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, DeviceDeleted).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deviceId property: The unique identifier of the device.Get the hubName property: Name of the IoT Hub where the device was created or deleted.getTwin()
Get the twin property: Information about the device twin, which is the cloud representation of application device metadata.setDeviceId
(String deviceId) Set the deviceId property: The unique identifier of the device.setHubName
(String hubName) Set the hubName property: Name of the IoT Hub where the device was created or deleted.setTwin
(DeviceTwinInfo twin) Set the twin property: Information about the device twin, which is the cloud representation of application device metadata.
-
Constructor Details
-
DeviceLifeCycleEventProperties
public DeviceLifeCycleEventProperties()
-
-
Method Details
-
getDeviceId
Get the deviceId property: The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Returns:
- the deviceId value.
-
setDeviceId
Set the deviceId property: The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Parameters:
deviceId
- the deviceId value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-
getHubName
Get the hubName property: Name of the IoT Hub where the device was created or deleted.- Returns:
- the hubName value.
-
setHubName
Set the hubName property: Name of the IoT Hub where the device was created or deleted.- Parameters:
hubName
- the hubName value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-
getTwin
Get the twin property: Information about the device twin, which is the cloud representation of application device metadata.- Returns:
- the twin value.
-
setTwin
Set the twin property: Information about the device twin, which is the cloud representation of application device metadata.- Parameters:
twin
- the twin value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-