Class DeviceConnectionStateEventProperties
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceConnectionStateEventProperties
- Direct Known Subclasses:
IotHubDeviceConnectedEventData
,IotHubDeviceDisconnectedEventData
Schema of the Data property of an EventGridEvent for a device connection state event (DeviceConnected,
DeviceDisconnected).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deviceConnectionStateEventInfo property: Information about the device connection state event.Get the deviceId property: The unique identifier of the device.Get the hubName property: Name of the IoT Hub where the device was created or deleted.Get the moduleId property: The unique identifier of the module.setDeviceConnectionStateEventInfo
(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) Set the deviceConnectionStateEventInfo property: Information about the device connection state event.setDeviceId
(String deviceId) Set the deviceId property: The unique identifier of the device.setHubName
(String hubName) Set the hubName property: Name of the IoT Hub where the device was created or deleted.setModuleId
(String moduleId) Set the moduleId property: The unique identifier of the module.
-
Constructor Details
-
DeviceConnectionStateEventProperties
public DeviceConnectionStateEventProperties()
-
-
Method Details
-
getDeviceId
Get 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: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Returns:
- the deviceId value.
-
setDeviceId
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: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Parameters:
deviceId
- the deviceId value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
getModuleId
Get 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: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Returns:
- the moduleId value.
-
setModuleId
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: - : . + % _ # * ? ! ( ) , = @ ; $ '.- Parameters:
moduleId
- the moduleId value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
getHubName
Get the hubName property: Name of the IoT Hub where the device was created or deleted.- Returns:
- the hubName value.
-
setHubName
Set the hubName property: Name of the IoT Hub where the device was created or deleted.- Parameters:
hubName
- the hubName value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
getDeviceConnectionStateEventInfo
Get the deviceConnectionStateEventInfo property: Information about the device connection state event.- Returns:
- the deviceConnectionStateEventInfo value.
-
setDeviceConnectionStateEventInfo
public DeviceConnectionStateEventProperties setDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) Set the deviceConnectionStateEventInfo property: Information about the device connection state event.- Parameters:
deviceConnectionStateEventInfo
- the deviceConnectionStateEventInfo value to set.- Returns:
- the DeviceConnectionStateEventProperties object itself.
-