FirewallPolicySql Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.FirewallPolicySql

Implements

public final class FirewallPolicySql
implements JsonSerializable<FirewallPolicySql>

SQL Settings in Firewall Policy.

Constructor Summary

Constructor Description
FirewallPolicySql()

Creates an instance of FirewallPolicySql class.

Method Summary

Modifier and Type Method and Description
Boolean allowSqlRedirect()

Get the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled.

static FirewallPolicySql fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicySql from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FirewallPolicySql withAllowSqlRedirect(Boolean allowSqlRedirect)

Set the allowSqlRedirect property: A flag to indicate if SQL Redirect traffic filtering is enabled.

Methods inherited from java.lang.Object

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.

fromJson

public static FirewallPolicySql fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to