Class IotHubDeviceConnectedEventData
- java.lang.Object
-
- com.azure.messaging.eventgrid.systemevents.DeviceConnectionStateEventProperties
-
- com.azure.messaging.eventgrid.systemevents.IotHubDeviceConnectedEventData
-
public final class IotHubDeviceConnectedEventData extends DeviceConnectionStateEventProperties
Event data for Microsoft.Devices.DeviceConnected event.
-
-
Constructor Summary
Constructors Constructor Description IotHubDeviceConnectedEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IotHubDeviceConnectedEventData
setDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo)
Set the deviceConnectionStateEventInfo property: Information about the device connection state event.IotHubDeviceConnectedEventData
setDeviceId(String deviceId)
Set the deviceId property: The unique identifier of the device.IotHubDeviceConnectedEventData
setHubName(String hubName)
Set the hubName property: Name of the IoT Hub where the device was created or deleted.IotHubDeviceConnectedEventData
setModuleId(String moduleId)
Set the moduleId property: The unique identifier of the module.-
Methods inherited from class com.azure.messaging.eventgrid.systemevents.DeviceConnectionStateEventProperties
getDeviceConnectionStateEventInfo, getDeviceId, getHubName, getModuleId
-
-
-
-
Method Detail
-
setDeviceId
public IotHubDeviceConnectedEventData 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 classDeviceConnectionStateEventProperties
- Parameters:
deviceId
- the deviceId value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
setModuleId
public IotHubDeviceConnectedEventData setModuleId(String moduleId)
Set the moduleId property: The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Overrides:
setModuleId
in classDeviceConnectionStateEventProperties
- Parameters:
moduleId
- the moduleId value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
setHubName
public IotHubDeviceConnectedEventData setHubName(String hubName)
Set the hubName property: Name of the IoT Hub where the device was created or deleted.- Overrides:
setHubName
in classDeviceConnectionStateEventProperties
- Parameters:
hubName
- the hubName value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
setDeviceConnectionStateEventInfo
public IotHubDeviceConnectedEventData setDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo)
Set the deviceConnectionStateEventInfo property: Information about the device connection state event.- Overrides:
setDeviceConnectionStateEventInfo
in classDeviceConnectionStateEventProperties
- Parameters:
deviceConnectionStateEventInfo
- the deviceConnectionStateEventInfo value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
-