Class DeviceConnectionStateEventProperties
- java.lang.Object
-
- com.microsoft.azure.eventgrid.models.DeviceConnectionStateEventProperties
-
- Direct Known Subclasses:
IotHubDeviceConnectedEventData,IotHubDeviceDisconnectedEventData
public class DeviceConnectionStateEventProperties extends Object
Schema of the Data property of an EventGridEvent for a device connection state event (DeviceConnected, DeviceDisconnected).
-
-
Constructor Summary
Constructors Constructor Description DeviceConnectionStateEventProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceConnectionStateEventInfodeviceConnectionStateEventInfo()Get information about the device connection state event.StringdeviceId()Get the unique identifier of the device.StringhubName()Get name of the IoT Hub where the device was created or deleted.StringmoduleId()Get the unique identifier of the module.DeviceConnectionStateEventPropertieswithDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo)Set information about the device connection state event.DeviceConnectionStateEventPropertieswithDeviceId(String deviceId)Set the unique identifier of the device.DeviceConnectionStateEventPropertieswithHubName(String hubName)Set name of the IoT Hub where the device was created or deleted.DeviceConnectionStateEventPropertieswithModuleId(String moduleId)Set the unique identifier of the module.
-
-
-
Method Detail
-
deviceId
public String deviceId()
Get 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
-
withDeviceId
public DeviceConnectionStateEventProperties withDeviceId(String deviceId)
Set 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.
-
moduleId
public String moduleId()
Get 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
-
withModuleId
public DeviceConnectionStateEventProperties withModuleId(String moduleId)
Set 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.
-
hubName
public String hubName()
Get name of the IoT Hub where the device was created or deleted.- Returns:
- the hubName value
-
withHubName
public DeviceConnectionStateEventProperties withHubName(String hubName)
Set name of the IoT Hub where the device was created or deleted.- Parameters:
hubName- the hubName value to set- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
deviceConnectionStateEventInfo
public DeviceConnectionStateEventInfo deviceConnectionStateEventInfo()
Get information about the device connection state event.- Returns:
- the deviceConnectionStateEventInfo value
-
withDeviceConnectionStateEventInfo
public DeviceConnectionStateEventProperties withDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo)
Set information about the device connection state event.- Parameters:
deviceConnectionStateEventInfo- the deviceConnectionStateEventInfo value to set- Returns:
- the DeviceConnectionStateEventProperties object itself.
-
-