DataSourceCredentials Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. DataSourceCredentials
- com.
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 Data |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
| String |
getConnectionString()
Get the connection |
|
Data |
setConnectionString(String connectionString)
Set the connection |
|
Json |
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:
Returns:
Throws:
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:
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:
Returns: