DeviceLifeCycleEventProperties Class
- java.
lang. Object - com.
azure. messaging. eventgrid. systemevents. DeviceLifeCycleEventProperties
- com.
Implements
@Deprecated
public class DeviceLifeCycleEventProperties
implements JsonSerializable<DeviceLifeCycleEventProperties>
Note
This class has been deprecated. This class is deprecated and may be removed in future releases. System events are now available in the azure-messaging-eventgrid-systemevents package.
Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, DeviceDeleted).
Constructor Summary
| Constructor | Description |
|---|---|
| DeviceLifeCycleEventProperties() |
Creates an instance of Device |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Device |
fromJson(JsonReader jsonReader)
Reads an instance of Device |
| String |
getDeviceId()
Get the device |
| String |
getHubName()
Get the hub |
|
Device |
getTwin()
Get the twin property: Information about the device twin, which is the cloud representation of application device metadata. |
|
Device |
setDeviceId(String deviceId)
Set the device |
|
Device |
setHubName(String hubName)
Set the hub |
|
Device |
setTwin(DeviceTwinInfo twin)
Set the twin property: Information about the device twin, which is the cloud representation of application device metadata. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DeviceLifeCycleEventProperties
public DeviceLifeCycleEventProperties()
Creates an instance of DeviceLifeCycleEventProperties class.
Method Details
fromJson
public static DeviceLifeCycleEventProperties fromJson(JsonReader jsonReader)
Reads an instance of DeviceLifeCycleEventProperties from the JsonReader.
Parameters:
Returns:
Throws:
getDeviceId
public String 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:
getHubName
public String getHubName()
Get the hubName property: Name of the IoT Hub where the device was created or deleted.
Returns:
getTwin
public DeviceTwinInfo getTwin()
Get the twin property: Information about the device twin, which is the cloud representation of application device metadata.
Returns:
setDeviceId
public DeviceLifeCycleEventProperties 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: - : . + % _ # * ? ! ( ) , = @ ; $ '.
Parameters:
Returns:
setHubName
public DeviceLifeCycleEventProperties setHubName(String hubName)
Set the hubName property: Name of the IoT Hub where the device was created or deleted.
Parameters:
Returns:
setTwin
public DeviceLifeCycleEventProperties setTwin(DeviceTwinInfo twin)
Set the twin property: Information about the device twin, which is the cloud representation of application device metadata.
Parameters:
Returns: