ConfigurationsClient Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. configurations. ConfigurationsClient
- com.
public class ConfigurationsClient
The client for creating, updating, getting and deleting configurations.
Constructor Summary
Constructor | Description |
---|---|
ConfigurationsClient(String connectionString) |
Constructor to create instance from connection string |
ConfigurationsClient(String hostName, AzureSasCredential azureSasCredential) |
Create a new ConfigurationsClient instance. |
ConfigurationsClient(String hostName, AzureSasCredential azureSasCredential, ConfigurationsClientOptions options) |
Create a new ConfigurationsClient instance. |
ConfigurationsClient(String connectionString, ConfigurationsClientOptions options) |
Constructor to create instance from connection string |
ConfigurationsClient(String hostName, TokenCredential credential) |
Create a new ConfigurationsClient instance. |
ConfigurationsClient(String hostName, TokenCredential credential, ConfigurationsClientOptions options) |
Create a new ConfigurationsClient instance. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
applyConfigurationContentOnDevice(String deviceId, ConfigurationContent content)
Apply the provided configuration content to the provided device |
Configuration |
create(Configuration configuration)
Create a new configuration using the given Configuration object Return with the response configuration object from IotHub |
void |
delete(Configuration configuration)
Send remove configuration request and verify response |
void |
delete(String configurationId)
Send remove configuration request and verify response |
List<Configuration> |
get(int maxCount)
Get list of Configuration |
Configuration |
get(String configurationId)
Get configuration by configuration Id from IotHub |
Configuration |
replace(Configuration configuration)
Update configuration not forced |
Constructor Details
ConfigurationsClient
public ConfigurationsClient(String connectionString)
Constructor to create instance from connection string
Parameters:
ConfigurationsClient
public ConfigurationsClient(String hostName, AzureSasCredential azureSasCredential)
Create a new ConfigurationsClient instance.
Parameters:
ConfigurationsClient
public ConfigurationsClient(String hostName, AzureSasCredential azureSasCredential, ConfigurationsClientOptions options)
Create a new ConfigurationsClient instance.
Parameters:
ConfigurationsClient
public ConfigurationsClient(String connectionString, ConfigurationsClientOptions options)
Constructor to create instance from connection string
Parameters:
ConfigurationsClient
public ConfigurationsClient(String hostName, TokenCredential credential)
Create a new ConfigurationsClient instance.
Parameters:
ConfigurationsClient
public ConfigurationsClient(String hostName, TokenCredential credential, ConfigurationsClientOptions options)
Create a new ConfigurationsClient instance.
Parameters:
Method Details
applyConfigurationContentOnDevice
public void applyConfigurationContentOnDevice(String deviceId, ConfigurationContent content)
Apply the provided configuration content to the provided device
Parameters:
Throws:
create
public Configuration create(Configuration configuration)
Create a new configuration using the given Configuration object Return with the response configuration object from IotHub
Parameters:
Returns:
Throws:
delete
public void delete(Configuration configuration)
Send remove configuration request and verify response
Parameters:
Throws:
delete
public void delete(String configurationId)
Send remove configuration request and verify response
Parameters:
Throws:
get
public List
Get list of Configuration
Parameters:
Returns:
Throws:
get
public Configuration get(String configurationId)
Get configuration by configuration Id from IotHub
Parameters:
Returns:
Throws:
replace
public Configuration replace(Configuration configuration)
Update configuration not forced
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java