IotHubConnectionString Class
- java.
lang. Object - IotHubConnectionStringBuilder
- com.
microsoft. azure. sdk. iot. service. auth. IotHubConnectionString
- com.
public class IotHubConnectionString extends IotHubConnectionStringBuilder
Expose all connections string properties and methods for user, device and connection string serialization.
Method Summary
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthenticationMethod()
Getter for authenticationMethod |
String |
getHostName()
Getter for hostName |
String |
getIotHubName()
Getter for iotHubName |
String |
getSharedAccessKey()
Getter for sharedAccessKey |
String |
getSharedAccessKeyName()
Getter for sharedAccessKeyName |
String |
getSharedAccessSignature()
Getter for sharedAccessSignature |
URL |
getUrlApplyConfigurationContent(String deviceId)
Create the url needed to apply some configuration content to a device |
URL |
getUrlApplyConfigurationContent(String hostName, String deviceId)
Create the url needed to apply some configuration content to a device |
URL |
getUrlConfiguration(String configurationId)
Create url for requesting configuration data |
URL |
getUrlConfiguration(String hostName, String configurationId)
Create url for requesting configuration data |
URL |
getUrlConfigurationsList(Integer maxCount)
Create url for requesting configuration data |
URL |
getUrlConfigurationsList(String hostName, Integer maxCount)
Create url for requesting configuration data |
URL |
getUrlCreateExportImportJob()
Create url for processing a bulk import/export job |
URL |
getUrlCreateExportImportJob(String hostName)
Create url for processing a bulk import/export job |
URL |
getUrlDevice(String deviceId)
Create url for requesting device data |
URL |
getUrlDevice(String hostName, String deviceId)
Create url for requesting device data |
URL |
getUrlDeviceList(Integer maxCount)
Create url for requesting device list |
URL |
getUrlDeviceList(String hostName, Integer maxCount)
Create url for requesting device list |
URL |
getUrlDeviceStatistics()
Create url for requesting device statistics |
URL |
getUrlDeviceStatistics(String hostName)
Create url for requesting device statistics |
URL | getUrlImportExportJob(String jobId) |
URL | getUrlImportExportJob(String hostName, String jobId) |
URL |
getUrlJobs(String jobId)
Create url for requesting jobs |
URL |
getUrlJobs(String hostName, String jobId)
Create url for requesting jobs |
URL |
getUrlJobsCancel(String jobId)
Create url for cancelling jobs |
URL |
getUrlJobsCancel(String hostName, String jobId)
Create url for cancelling jobs |
URL |
getUrlMethod(String deviceId)
Create url for requesting device method |
URL |
getUrlMethod(String hostName, String deviceId)
Create url for requesting device method |
URL |
getUrlModule(String deviceId, String moduleId)
Create url for requesting module data |
URL |
getUrlModule(String hostName, String deviceId, String moduleId)
Create url for requesting module data |
URL |
getUrlModuleMethod(String deviceId, String moduleId)
Create url for requesting device method for module |
URL |
getUrlModuleMethod(String hostName, String deviceId, String moduleId)
Create url for requesting device method for module |
URL |
getUrlModulesOnDevice(String deviceId)
Create url for requesting all modules data on a device |
URL |
getUrlModulesOnDevice(String hostName, String deviceId)
Create url for requesting all modules data on a device |
URL |
getUrlModuleTwin(String deviceId, String moduleId)
Create url for requesting module twin |
URL |
getUrlModuleTwin(String hostName, String deviceId, String moduleId)
Create url for requesting module twin |
URL |
getUrlQuery(String jobType, String jobStatus)
Create url for querying |
URL |
getUrlQuery(String hostName, String jobType, String jobStatus)
Create url for querying |
URL |
getUrlTwin(String deviceId)
Create url for requesting device twin |
URL |
getUrlTwin(String hostName, String deviceId)
Create url for requesting device twin |
URL |
getUrlTwinQuery()
Create url for querying twin |
URL |
getUrlTwinQuery(String hostName)
Create url for querying twin |
String |
toString()
Serialize connection string |
Inherited Members
Method Details
getAuthenticationMethod
public AuthenticationMethod getAuthenticationMethod()
Getter for authenticationMethod
Returns:
getHostName
public String getHostName()
Getter for hostName
Returns:
getIotHubName
public String getIotHubName()
Getter for iotHubName
Returns:
getSharedAccessKey
public String getSharedAccessKey()
Getter for sharedAccessKey
Returns:
getSharedAccessKeyName
public String getSharedAccessKeyName()
Getter for sharedAccessKeyName
Returns:
getSharedAccessSignature
public String getSharedAccessSignature()
Getter for sharedAccessSignature
Returns:
getUrlApplyConfigurationContent
public URL getUrlApplyConfigurationContent(String deviceId)
Create the url needed to apply some configuration content to a device
Parameters:
Returns:
Throws:
getUrlApplyConfigurationContent
public static URL getUrlApplyConfigurationContent(String hostName, String deviceId)
Create the url needed to apply some configuration content to a device
Parameters:
Returns:
Throws:
getUrlConfiguration
public URL getUrlConfiguration(String configurationId)
Create url for requesting configuration data
Parameters:
Returns:
Throws:
getUrlConfiguration
public static URL getUrlConfiguration(String hostName, String configurationId)
Create url for requesting configuration data
Parameters:
Returns:
Throws:
getUrlConfigurationsList
public URL getUrlConfigurationsList(Integer maxCount)
Create url for requesting configuration data
Parameters:
Returns:
Throws:
getUrlConfigurationsList
public static URL getUrlConfigurationsList(String hostName, Integer maxCount)
Create url for requesting configuration data
Parameters:
Returns:
Throws:
getUrlCreateExportImportJob
public URL getUrlCreateExportImportJob()
Create url for processing a bulk import/export job
Returns:
Throws:
getUrlCreateExportImportJob
public static URL getUrlCreateExportImportJob(String hostName)
Create url for processing a bulk import/export job
Parameters:
Returns:
Throws:
getUrlDevice
public URL getUrlDevice(String deviceId)
Create url for requesting device data
Parameters:
Returns:
Throws:
getUrlDevice
public static URL getUrlDevice(String hostName, String deviceId)
Create url for requesting device data
Parameters:
Returns:
Throws:
getUrlDeviceList
public URL getUrlDeviceList(Integer maxCount)
Create url for requesting device list
Parameters:
Returns:
Throws:
getUrlDeviceList
public static URL getUrlDeviceList(String hostName, Integer maxCount)
Create url for requesting device list
Parameters:
Returns:
Throws:
getUrlDeviceStatistics
public URL getUrlDeviceStatistics()
Create url for requesting device statistics
Returns:
Throws:
getUrlDeviceStatistics
public static URL getUrlDeviceStatistics(String hostName)
Create url for requesting device statistics
Parameters:
Returns:
Throws:
getUrlImportExportJob
public URL getUrlImportExportJob(String jobId)
Parameters:
Returns:
Throws:
getUrlImportExportJob
public static URL getUrlImportExportJob(String hostName, String jobId)
Parameters:
Returns:
Throws:
getUrlJobs
public URL getUrlJobs(String jobId)
Create url for requesting jobs
Parameters:
Returns:
Throws:
getUrlJobs
public static URL getUrlJobs(String hostName, String jobId)
Create url for requesting jobs
Parameters:
Returns:
Throws:
getUrlJobsCancel
public URL getUrlJobsCancel(String jobId)
Create url for cancelling jobs
Parameters:
Returns:
Throws:
getUrlJobsCancel
public static URL getUrlJobsCancel(String hostName, String jobId)
Create url for cancelling jobs
Parameters:
Returns:
Throws:
getUrlMethod
public URL getUrlMethod(String deviceId)
Create url for requesting device method
Parameters:
Returns:
Throws:
getUrlMethod
public static URL getUrlMethod(String hostName, String deviceId)
Create url for requesting device method
Parameters:
Returns:
Throws:
getUrlModule
public URL getUrlModule(String deviceId, String moduleId)
Create url for requesting module data
Parameters:
Returns:
Throws:
getUrlModule
public static URL getUrlModule(String hostName, String deviceId, String moduleId)
Create url for requesting module data
Parameters:
Returns:
Throws:
getUrlModuleMethod
public URL getUrlModuleMethod(String deviceId, String moduleId)
Create url for requesting device method for module
Parameters:
Returns:
Throws:
getUrlModuleMethod
public static URL getUrlModuleMethod(String hostName, String deviceId, String moduleId)
Create url for requesting device method for module
Parameters:
Returns:
Throws:
getUrlModulesOnDevice
public URL getUrlModulesOnDevice(String deviceId)
Create url for requesting all modules data on a device
Parameters:
Returns:
Throws:
getUrlModulesOnDevice
public static URL getUrlModulesOnDevice(String hostName, String deviceId)
Create url for requesting all modules data on a device
Parameters:
Returns:
Throws:
getUrlModuleTwin
public URL getUrlModuleTwin(String deviceId, String moduleId)
Create url for requesting module twin
Parameters:
Returns:
Throws:
getUrlModuleTwin
public static URL getUrlModuleTwin(String hostName, String deviceId, String moduleId)
Create url for requesting module twin
Parameters:
Returns:
Throws:
getUrlQuery
public URL getUrlQuery(String jobType, String jobStatus)
Create url for querying
Parameters:
Returns:
Throws:
getUrlQuery
public static URL getUrlQuery(String hostName, String jobType, String jobStatus)
Create url for querying
Parameters:
Returns:
Throws:
getUrlTwin
public URL getUrlTwin(String deviceId)
Create url for requesting device twin
Parameters:
Returns:
Throws:
getUrlTwin
public static URL getUrlTwin(String hostName, String deviceId)
Create url for requesting device twin
Parameters:
Returns:
Throws:
getUrlTwinQuery
public URL getUrlTwinQuery()
Create url for querying twin
Returns:
Throws:
getUrlTwinQuery
public static URL getUrlTwinQuery(String hostName)
Create url for querying twin
Parameters:
Returns:
Throws:
toString
public String toString()
Serialize connection string
Returns:
Applies to
Azure SDK for Java