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
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled.static FirewallPolicySql
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
validate()
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
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
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FirewallPolicySql>
- Throws:
IOException
-
fromJson
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.
-