Class IotHubDeviceDeletedEventData
- java.lang.Object
-
- com.azure.messaging.eventgrid.systemevents.DeviceLifeCycleEventProperties
-
- com.azure.messaging.eventgrid.systemevents.IotHubDeviceDeletedEventData
-
public final class IotHubDeviceDeletedEventData extends DeviceLifeCycleEventProperties
Event data for Microsoft.Devices.DeviceDeleted event.
-
-
Constructor Summary
Constructors Constructor Description IotHubDeviceDeletedEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IotHubDeviceDeletedEventData
setDeviceId(String deviceId)
Set the deviceId property: The unique identifier of the device.IotHubDeviceDeletedEventData
setHubName(String hubName)
Set the hubName property: Name of the IoT Hub where the device was created or deleted.IotHubDeviceDeletedEventData
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
-
-
-
-
Method Detail
-
setDeviceId
public IotHubDeviceDeletedEventData setDeviceId(String deviceId)
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
public IotHubDeviceDeletedEventData setHubName(String hubName)
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
public IotHubDeviceDeletedEventData setTwin(DeviceTwinInfo twin)
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.
-
-