Class DatabaseList

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

public final class DatabaseList extends Object implements com.azure.json.JsonSerializable<DatabaseList>
List of all databases in a server.
  • Constructor Details

    • DatabaseList

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

    • value

      public List<DatabaseInner> value()
      Get the value property: List of all databases in a server.
      Returns:
      the value value.
    • withValue

      public DatabaseList withValue(List<DatabaseInner> value)
      Set the value property: List of all databases in a server.
      Parameters:
      value - the value value to set.
      Returns:
      the DatabaseList object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: Link used to get the next page of results.
      Returns:
      the nextLink value.
    • withNextLink

      public DatabaseList withNextLink(String nextLink)
      Set the nextLink property: Link used to get the next page of results.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the DatabaseList 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<DatabaseList>
      Throws:
      IOException
    • fromJson

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