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 Details

    • IotHubDeviceDeletedEventData

      public IotHubDeviceDeletedEventData()
  • Method Details

    • 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 class DeviceLifeCycleEventProperties
      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 class DeviceLifeCycleEventProperties
      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 class DeviceLifeCycleEventProperties
      Parameters:
      twin - the twin value to set.
      Returns:
      the DeviceLifeCycleEventProperties object itself.