DataSourceCredentials Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.DataSourceCredentials

Implements

public final class DataSourceCredentials
implements JsonSerializable<DataSourceCredentials>

Represents credentials that can be used to connect to a datasource.

Constructor Summary

Constructor Description
DataSourceCredentials()

Creates an instance of DataSourceCredentials class.

Method Summary

Modifier and Type Method and Description
static DataSourceCredentials fromJson(JsonReader jsonReader)

Reads an instance of DataSourceCredentials from the JsonReader.

String getConnectionString()

Get the connectionString property: The connection string for the datasource.

DataSourceCredentials setConnectionString(String connectionString)

Set the connectionString property: The connection string for the datasource.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

DataSourceCredentials

public DataSourceCredentials()

Creates an instance of DataSourceCredentials class.

Method Details

fromJson

public static DataSourceCredentials fromJson(JsonReader jsonReader)

Reads an instance of DataSourceCredentials from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataSourceCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DataSourceCredentials.

getConnectionString

public String getConnectionString()

Get the connectionString property: The connection string for the datasource. Set to `<unchanged>` (with brackets) if you don't want the connection string updated. Set to `<redacted>` if you want to remove the connection string value from the datasource.

Returns:

the connectionString value.

setConnectionString

public DataSourceCredentials setConnectionString(String connectionString)

Set the connectionString property: The connection string for the datasource. Set to `<unchanged>` (with brackets) if you don't want the connection string updated. Set to `<redacted>` if you want to remove the connection string value from the datasource.

Parameters:

connectionString - the connectionString value to set.

Returns:

the DataSourceCredentials object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to