Class FirewallPolicySql

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

public final class FirewallPolicySql extends Object implements com.azure.json.JsonSerializable<FirewallPolicySql>
SQL Settings in Firewall Policy.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of FirewallPolicySql from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withAllowSqlRedirect(Boolean allowSqlRedirect)
    Set the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled.

    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

    • FirewallPolicySql

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

    • allowSqlRedirect

      public Boolean allowSqlRedirect()
      Get the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires no rule using port 11000-11999.
      Returns:
      the allowSqlRedirect value.
    • withAllowSqlRedirect

      public FirewallPolicySql withAllowSqlRedirect(Boolean allowSqlRedirect)
      Set the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires no rule using port 11000-11999.
      Parameters:
      allowSqlRedirect - the allowSqlRedirect value to set.
      Returns:
      the FirewallPolicySql 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<FirewallPolicySql>
      Throws:
      IOException
    • fromJson

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