DigitalTwinClient Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. DigitalTwinClient
- com.
public class DigitalTwinClient
The Digital Twins Service Client contains methods to retrieve and update digital twin information, and invoke commands on a digital twin device.
Constructor Summary
Constructor | Description |
---|---|
DigitalTwinClient(String connectionString) |
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features |
DigitalTwinClient(String hostName, AzureSasCredential azureSasCredential) |
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features |
DigitalTwinClient(String hostName, AzureSasCredential azureSasCredential, DigitalTwinClientOptions options) |
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features |
DigitalTwinClient(String connectionString, DigitalTwinClientOptions options) |
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features |
DigitalTwinClient(String hostName, TokenCredential credential) |
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features |
DigitalTwinClient(String hostName, TokenCredential credential, DigitalTwinClientOptions options) |
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features |
Method Summary
Constructor Details
DigitalTwinClient
public DigitalTwinClient(String connectionString)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
DigitalTwinClient
public DigitalTwinClient(String hostName, AzureSasCredential azureSasCredential)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
DigitalTwinClient
public DigitalTwinClient(String hostName, AzureSasCredential azureSasCredential, DigitalTwinClientOptions options)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
DigitalTwinClient
public DigitalTwinClient(String connectionString, DigitalTwinClientOptions options)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
DigitalTwinClient
public DigitalTwinClient(String hostName, TokenCredential credential)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
DigitalTwinClient
public DigitalTwinClient(String hostName, TokenCredential credential, DigitalTwinClientOptions options)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
Method Details
createFromConnectionString
public static DigitalTwinClient createFromConnectionString(String connectionString)
Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features
Parameters:
Returns:
getDigitalTwin
public
Gets a digital twin.
Parameters:
Returns:
getDigitalTwinWithResponse
public
Gets a digital twin.
Parameters:
Returns:
invokeCommand
public DigitalTwinCommandResponse invokeCommand(String digitalTwinId, String commandName)
Invoke a command on a digital twin.
Parameters:
Returns:
invokeCommand
public DigitalTwinCommandResponse invokeCommand(String digitalTwinId, String commandName, String payload)
Invoke a command on a digital twin.
Parameters:
Returns:
invokeCommandWithResponse
public ServiceResponseWithHeaders
Invoke a command on a digital twin.
Parameters:
Returns:
invokeComponentCommand
public DigitalTwinCommandResponse invokeComponentCommand(String digitalTwinId, String componentName, String commandName)
Invoke a command on a digital twin component.
Parameters:
Returns:
invokeComponentCommand
public DigitalTwinCommandResponse invokeComponentCommand(String digitalTwinId, String componentName, String commandName, String payload)
Invoke a command on a digital twin component.
Parameters:
Returns:
invokeComponentCommandWithResponse
public ServiceResponseWithHeaders
Invoke a command on a digital twin component.
Parameters:
Returns:
updateDigitalTwin
public Void updateDigitalTwin(String digitalTwinId, List
Azure SDK for Java