Class DatabaseAccountConnectionString
java.lang.Object
com.azure.resourcemanager.cosmos.models.DatabaseAccountConnectionString
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabaseAccountConnectionString>
public final class DatabaseAccountConnectionString
extends Object
implements com.azure.json.JsonSerializable<DatabaseAccountConnectionString>
Connection string for the Cosmos DB account.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DatabaseAccountConnectionString class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionString property: Value of the connection string.Get the description property: Description of the connection string.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseAccountConnectionString from the JsonReader.keyKind()
Get the keyKind property: Kind of the connection string key.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Type of the connection string.void
validate()
Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DatabaseAccountConnectionString
public DatabaseAccountConnectionString()Creates an instance of DatabaseAccountConnectionString class.
-
-
Method Details
-
connectionString
Get the connectionString property: Value of the connection string.- Returns:
- the connectionString value.
-
description
Get the description property: Description of the connection string.- Returns:
- the description value.
-
keyKind
Get the keyKind property: Kind of the connection string key.- Returns:
- the keyKind value.
-
type
Get the type property: Type of the connection string.- Returns:
- the type value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DatabaseAccountConnectionString>
- Throws:
IOException
-
fromJson
public static DatabaseAccountConnectionString fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-