ConnectionString Class

  • java.lang.Object
    • com.azure.resourcemanager.mongocluster.models.ConnectionString

Implements

public final class ConnectionString
implements JsonSerializable<ConnectionString>

Connection string for the mongo cluster.

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 ConnectionString fromJson(JsonReader jsonReader)

Reads an instance of ConnectionString from the JsonReader.

String name()

Get the name property: Name of the connection string.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

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 ConnectionString fromJson(JsonReader jsonReader)

Reads an instance of ConnectionString from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the connection string.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to