Partager via


DatabaseAccountConnectionString Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.DatabaseAccountConnectionString

Implements

public final class DatabaseAccountConnectionString
implements JsonSerializable<DatabaseAccountConnectionString>

Connection string for the Cosmos DB account.

Constructor Summary

Constructor Description
DatabaseAccountConnectionString()

Creates an instance of DatabaseAccountConnectionString class.

Method Summary

Modifier and Type Method and Description
String connectionString()

Get the connectionString property: Value of the connection string.

String description()

Get the description property: Description of the connection string.

static DatabaseAccountConnectionString fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountConnectionString from the JsonReader.

Kind keyKind()

Get the keyKind property: Kind of the connection string key.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: Type of the connection string.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DatabaseAccountConnectionString

public DatabaseAccountConnectionString()

Creates an instance of DatabaseAccountConnectionString class.

Method Details

connectionString

public String connectionString()

Get the connectionString property: Value of the connection string.

Returns:

the connectionString value.

description

public String description()

Get the description property: Description of the connection string.

Returns:

the description value.

fromJson

public static DatabaseAccountConnectionString fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountConnectionString from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseAccountConnectionString 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 DatabaseAccountConnectionString.

keyKind

public Kind keyKind()

Get the keyKind property: Kind of the connection string key.

Returns:

the keyKind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: Type of the connection string.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to