Partilhar via


ApplicationGatewayWebApplicationFirewallConfiguration Class

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

Implements

public final class ApplicationGatewayWebApplicationFirewallConfiguration
implements JsonSerializable<ApplicationGatewayWebApplicationFirewallConfiguration>

Application gateway web application firewall configuration.

Constructor Summary

Constructor Description
ApplicationGatewayWebApplicationFirewallConfiguration()

Creates an instance of ApplicationGatewayWebApplicationFirewallConfiguration class.

Method Summary

Modifier and Type Method and Description
List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups()

Get the disabledRuleGroups property: The disabled rule groups.

boolean enabled()

Get the enabled property: Whether the web application firewall is enabled or not.

List<ApplicationGatewayFirewallExclusion> exclusions()

Get the exclusions property: The exclusion list.

Integer fileUploadLimitInMb()

Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.

ApplicationGatewayFirewallMode firewallMode()

Get the firewallMode property: Web application firewall mode.

static ApplicationGatewayWebApplicationFirewallConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayWebApplicationFirewallConfiguration from the JsonReader.

Integer maxRequestBodySize()

Get the maxRequestBodySize property: Maximum request body size for WAF.

Integer maxRequestBodySizeInKb()

Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.

Boolean requestBodyCheck()

Get the requestBodyCheck property: Whether allow WAF to check request Body.

String ruleSetType()

Get the ruleSetType property: The type of the web application firewall rule set.

String ruleSetVersion()

Get the ruleSetVersion property: The version of the rule set type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups)

Set the disabledRuleGroups property: The disabled rule groups.

ApplicationGatewayWebApplicationFirewallConfiguration withEnabled(boolean enabled)

Set the enabled property: Whether the web application firewall is enabled or not.

ApplicationGatewayWebApplicationFirewallConfiguration withExclusions(List<ApplicationGatewayFirewallExclusion> exclusions)

Set the exclusions property: The exclusion list.

ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimitInMb(Integer fileUploadLimitInMb)

Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.

ApplicationGatewayWebApplicationFirewallConfiguration withFirewallMode(ApplicationGatewayFirewallMode firewallMode)

Set the firewallMode property: Web application firewall mode.

ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySize(Integer maxRequestBodySize)

Set the maxRequestBodySize property: Maximum request body size for WAF.

ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)

Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.

ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyCheck(Boolean requestBodyCheck)

Set the requestBodyCheck property: Whether allow WAF to check request Body.

ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetType(String ruleSetType)

Set the ruleSetType property: The type of the web application firewall rule set.

ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: The version of the rule set type.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayWebApplicationFirewallConfiguration

public ApplicationGatewayWebApplicationFirewallConfiguration()

Creates an instance of ApplicationGatewayWebApplicationFirewallConfiguration class.

Method Details

disabledRuleGroups

public List disabledRuleGroups()

Get the disabledRuleGroups property: The disabled rule groups.

Returns:

the disabledRuleGroups value.

enabled

public boolean enabled()

Get the enabled property: Whether the web application firewall is enabled or not.

Returns:

the enabled value.

exclusions

public List exclusions()

Get the exclusions property: The exclusion list.

Returns:

the exclusions value.

fileUploadLimitInMb

public Integer fileUploadLimitInMb()

Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.

Returns:

the fileUploadLimitInMb value.

firewallMode

public ApplicationGatewayFirewallMode firewallMode()

Get the firewallMode property: Web application firewall mode.

Returns:

the firewallMode value.

fromJson

public static ApplicationGatewayWebApplicationFirewallConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayWebApplicationFirewallConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayWebApplicationFirewallConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

maxRequestBodySize

public Integer maxRequestBodySize()

Get the maxRequestBodySize property: Maximum request body size for WAF.

Returns:

the maxRequestBodySize value.

maxRequestBodySizeInKb

public Integer maxRequestBodySizeInKb()

Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.

Returns:

the maxRequestBodySizeInKb value.

requestBodyCheck

public Boolean requestBodyCheck()

Get the requestBodyCheck property: Whether allow WAF to check request Body.

Returns:

the requestBodyCheck value.

ruleSetType

public String ruleSetType()

Get the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'.

Returns:

the ruleSetType value.

ruleSetVersion

public String ruleSetVersion()

Get the ruleSetVersion property: The version of the rule set type.

Returns:

the ruleSetVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisabledRuleGroups

public ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGroups(List disabledRuleGroups)

Set the disabledRuleGroups property: The disabled rule groups.

Parameters:

disabledRuleGroups - the disabledRuleGroups value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withEnabled

public ApplicationGatewayWebApplicationFirewallConfiguration withEnabled(boolean enabled)

Set the enabled property: Whether the web application firewall is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withExclusions

public ApplicationGatewayWebApplicationFirewallConfiguration withExclusions(List exclusions)

Set the exclusions property: The exclusion list.

Parameters:

exclusions - the exclusions value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withFileUploadLimitInMb

public ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimitInMb(Integer fileUploadLimitInMb)

Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.

Parameters:

fileUploadLimitInMb - the fileUploadLimitInMb value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withFirewallMode

public ApplicationGatewayWebApplicationFirewallConfiguration withFirewallMode(ApplicationGatewayFirewallMode firewallMode)

Set the firewallMode property: Web application firewall mode.

Parameters:

firewallMode - the firewallMode value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withMaxRequestBodySize

public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySize(Integer maxRequestBodySize)

Set the maxRequestBodySize property: Maximum request body size for WAF.

Parameters:

maxRequestBodySize - the maxRequestBodySize value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withMaxRequestBodySizeInKb

public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)

Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.

Parameters:

maxRequestBodySizeInKb - the maxRequestBodySizeInKb value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withRequestBodyCheck

public ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyCheck(Boolean requestBodyCheck)

Set the requestBodyCheck property: Whether allow WAF to check request Body.

Parameters:

requestBodyCheck - the requestBodyCheck value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withRuleSetType

public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetType(String ruleSetType)

Set the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'.

Parameters:

ruleSetType - the ruleSetType value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

withRuleSetVersion

public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: The version of the rule set type.

Parameters:

ruleSetVersion - the ruleSetVersion value to set.

Returns:

the ApplicationGatewayWebApplicationFirewallConfiguration object itself.

Applies to