Class IotHubDeviceDeletedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceLifeCycleEventProperties
com.azure.messaging.eventgrid.systemevents.IotHubDeviceDeletedEventData
Event data for Microsoft.Devices.DeviceDeleted event.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetDeviceId
(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.Methods inherited from class com.azure.messaging.eventgrid.systemevents.DeviceLifeCycleEventProperties
getDeviceId, getHubName, getTwin
-
Constructor Details
-
IotHubDeviceDeletedEventData
public IotHubDeviceDeletedEventData()
-
-
Method Details
-
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: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Overrides:
setDeviceId
in classDeviceLifeCycleEventProperties
- Parameters:
deviceId
- the deviceId value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-
setHubName
Set the hubName property: Name of the IoT Hub where the device was created or deleted.- Overrides:
setHubName
in classDeviceLifeCycleEventProperties
- Parameters:
hubName
- the hubName value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-
setTwin
Set the twin property: Information about the device twin, which is the cloud representation of application device metadata.- Overrides:
setTwin
in classDeviceLifeCycleEventProperties
- Parameters:
twin
- the twin value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-