IotHubConnectionStringBuilder Class

Definition

Provide static constructors to create IotHubConnectionString object

public class IotHubConnectionStringBuilder
Inheritance
java.lang.Object
IotHubConnectionStringBuilder

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

IotHubConnectionStringBuilder()

Methods

createConnectionString(String connectionString)

Static constructor to create IotHubConnectionString from the given string

createConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create IotHubConnectionString from host name and authentication method

createIotHubConnectionString(String connectionString)

Static constructor to create IotHubConnectionString from the given string

createIotHubConnectionString(String hostName, AuthenticationMethod authenticationMethod)

Static constructor to create IotHubConnectionString from host name and authentication method

parse(String connectionString, IotHubConnectionString iotHubConnectionString)

Deserialize connection string

parseIotHubName(IotHubConnectionString iotHubConnectionString)

Parse the iot hub name part from the host name

setAuthenticationMethod(AuthenticationMethod authenticationMethod, IotHubConnectionString iotHubConnectionString)

Set authentication method to target IotHubConnectionString object

setHostName(String hostName, IotHubConnectionString iotHubConnectionString)

Set host name value to target IotHubConnectionString object

validate(IotHubConnectionString iotHubConnectionString)

Validate IotHubConnectionString format

validateFormat(String value, String regex)

Validate string property using given regex

validateFormatIfSpecified(String value, String regex)

Validate string property using given regex if value is not null or empty

Applies to