Class ConnStringValueTypePair

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

public final class ConnStringValueTypePair extends Object implements com.azure.json.JsonSerializable<ConnStringValueTypePair>
Database connection string value to type pair.
  • Constructor Details

    • ConnStringValueTypePair

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

    • value

      public String value()
      Get the value property: Value of pair.
      Returns:
      the value value.
    • withValue

      public ConnStringValueTypePair withValue(String value)
      Set the value property: Value of pair.
      Parameters:
      value - the value value to set.
      Returns:
      the ConnStringValueTypePair object itself.
    • type

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

      Set the type property: Type of database.
      Parameters:
      type - the type value to set.
      Returns:
      the ConnStringValueTypePair 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<ConnStringValueTypePair>
      Throws:
      IOException
    • fromJson

      public static ConnStringValueTypePair fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnStringValueTypePair from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnStringValueTypePair if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ConnStringValueTypePair.