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 Summary
Constructors Constructor Description IotHubDeviceCreatedEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IotHubDeviceCreatedEventData
setDeviceId(String deviceId)
Set the deviceId property: The unique identifier of the device.IotHubDeviceCreatedEventData
setHubName(String hubName)
Set the hubName property: Name of the IoT Hub where the device was created or deleted.IotHubDeviceCreatedEventData
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 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 classDeviceLifeCycleEventProperties
- 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 classDeviceLifeCycleEventProperties
- Parameters:
hubName
- the hubName value to set.- Returns:
- the DeviceLifeCycleEventProperties object itself.
-
setTwin
public IotHubDeviceCreatedEventData 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.
-
-