Class IotHubDeviceCreatedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceLifeCycleEventProperties
com.azure.messaging.eventgrid.systemevents.IotHubDeviceCreatedEventData

public final class IotHubDeviceCreatedEventData extends DeviceLifeCycleEventProperties
Event data for Microsoft.Devices.DeviceCreated event.
  • Constructor Details

    • IotHubDeviceCreatedEventData

      public IotHubDeviceCreatedEventData()
  • Method Details

    • setDeviceId

      public IotHubDeviceCreatedEventData 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 IotHubDeviceCreatedEventData 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.