Class ConnStringInfo

java.lang.Object
com.azure.resourcemanager.appservice.models.ConnStringInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnStringInfo>

public final class ConnStringInfo extends Object implements com.azure.json.JsonSerializable<ConnStringInfo>
Database connection string information.
  • Constructor Details

    • ConnStringInfo

      public ConnStringInfo()
      Creates an instance of ConnStringInfo class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of connection string.
      Returns:
      the name value.
    • withName

      public ConnStringInfo withName(String name)
      Set the name property: Name of connection string.
      Parameters:
      name - the name value to set.
      Returns:
      the ConnStringInfo object itself.
    • connectionString

      public String connectionString()
      Get the connectionString property: Connection string value.
      Returns:
      the connectionString value.
    • withConnectionString

      public ConnStringInfo withConnectionString(String connectionString)
      Set the connectionString property: Connection string value.
      Parameters:
      connectionString - the connectionString value to set.
      Returns:
      the ConnStringInfo object itself.
    • type

      public ConnectionStringType type()
      Get the type property: Type of database.
      Returns:
      the type value.
    • withType

      public ConnStringInfo withType(ConnectionStringType type)
      Set the type property: Type of database.
      Parameters:
      type - the type value to set.
      Returns:
      the ConnStringInfo object itself.
    • 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<ConnStringInfo>
      Throws:
      IOException
    • fromJson

      public static ConnStringInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnStringInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnStringInfo 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 ConnStringInfo.