Class IotHubDeviceConnection
java.lang.Object
com.azure.media.videoanalyzer.edge.models.IotHubDeviceConnection
Information that enables communication between the IoT Hub and the IoT device - allowing this edge module to act as a
transparent gateway between the two.
-
Constructor Summary
ConstructorDescriptionIotHubDeviceConnection
(String deviceId) Creates an instance of IotHubDeviceConnection class. -
Method Summary
Modifier and TypeMethodDescriptionGet the credentials property: IoT device connection credentials.Get the deviceId property: The name of the IoT device configured and managed in IoT Hub.setCredentials
(CredentialsBase credentials) Set the credentials property: IoT device connection credentials.
-
Constructor Details
-
IotHubDeviceConnection
Creates an instance of IotHubDeviceConnection class.- Parameters:
deviceId
- the deviceId value to set.
-
-
Method Details
-
getDeviceId
Get the deviceId property: The name of the IoT device configured and managed in IoT Hub. (case-sensitive).- Returns:
- the deviceId value.
-
getCredentials
Get the credentials property: IoT device connection credentials. Currently IoT device symmetric key credentials are supported.- Returns:
- the credentials value.
-
setCredentials
Set the credentials property: IoT device connection credentials. Currently IoT device symmetric key credentials are supported.- Parameters:
credentials
- the credentials value to set.- Returns:
- the IotHubDeviceConnection object itself.
-