Class FirewallRuleList

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

public final class FirewallRuleList extends Object implements com.azure.json.JsonSerializable<FirewallRuleList>
A list of server firewall rules.
  • Constructor Details

    • FirewallRuleList

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

    • values

      public List<FirewallRuleInner> values()
      Get the values property: The values property.
      Returns:
      the values value.
    • withValues

      public FirewallRuleList withValues(List<FirewallRuleInner> values)
      Set the values property: The values property.
      Parameters:
      values - the values value to set.
      Returns:
      the FirewallRuleList 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<FirewallRuleList>
      Throws:
      IOException
    • fromJson

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