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

    Constructors
    Constructor
    Description
    Creates an instance of DatabaseAccountConnectionString class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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.
    Get the keyKind property: Kind of the connection string key.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Type of the connection string.
    void
    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

      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.
    • keyKind

      public Kind keyKind()
      Get the keyKind property: Kind of the connection string key.
      Returns:
      the keyKind value.
    • type

      public Type 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.