Class ApplicationGatewayWebApplicationFirewallConfiguration
java.lang.Object
com.microsoft.azure.management.network.ApplicationGatewayWebApplicationFirewallConfiguration
Application gateway web application firewall configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the disabled rule groups.boolean
enabled()
Get whether the web application firewall is enabled or not.Get the exclusion list.Get maximum file upload size in Mb for WAF.Get web application firewall mode.Get maximum request body size for WAF.Get maximum request body size in Kb for WAF.Get whether allow WAF to check request Body.Get the type of the web application firewall rule set.Get the version of the rule set type.withDisabledRuleGroups
(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups) Set the disabled rule groups.withEnabled
(boolean enabled) Set whether the web application firewall is enabled or not.withExclusions
(List<ApplicationGatewayFirewallExclusion> exclusions) Set the exclusion list.withFileUploadLimitInMb
(Integer fileUploadLimitInMb) Set maximum file upload size in Mb for WAF.withFirewallMode
(ApplicationGatewayFirewallMode firewallMode) Set web application firewall mode.withMaxRequestBodySize
(Integer maxRequestBodySize) Set maximum request body size for WAF.withMaxRequestBodySizeInKb
(Integer maxRequestBodySizeInKb) Set maximum request body size in Kb for WAF.withRequestBodyCheck
(Boolean requestBodyCheck) Set whether allow WAF to check request Body.withRuleSetType
(String ruleSetType) Set the type of the web application firewall rule set.withRuleSetVersion
(String ruleSetVersion) Set the version of the rule set type.
-
Constructor Details
-
ApplicationGatewayWebApplicationFirewallConfiguration
public ApplicationGatewayWebApplicationFirewallConfiguration()
-
-
Method Details
-
enabled
public boolean enabled()Get whether the web application firewall is enabled or not.- Returns:
- the enabled value
-
withEnabled
Set whether the web application firewall is enabled or not.- Parameters:
enabled
- the enabled value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
firewallMode
Get web application firewall mode. Possible values include: 'Detection', 'Prevention'.- Returns:
- the firewallMode value
-
withFirewallMode
public ApplicationGatewayWebApplicationFirewallConfiguration withFirewallMode(ApplicationGatewayFirewallMode firewallMode) Set web application firewall mode. Possible values include: 'Detection', 'Prevention'.- Parameters:
firewallMode
- the firewallMode value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
ruleSetType
Get the type of the web application firewall rule set. Possible values are: 'OWASP'.- Returns:
- the ruleSetType value
-
withRuleSetType
Set 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.
-
ruleSetVersion
Get the version of the rule set type.- Returns:
- the ruleSetVersion value
-
withRuleSetVersion
public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetVersion(String ruleSetVersion) Set the version of the rule set type.- Parameters:
ruleSetVersion
- the ruleSetVersion value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
disabledRuleGroups
Get the disabled rule groups.- Returns:
- the disabledRuleGroups value
-
withDisabledRuleGroups
public ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups) Set the disabled rule groups.- Parameters:
disabledRuleGroups
- the disabledRuleGroups value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
requestBodyCheck
Get whether allow WAF to check request Body.- Returns:
- the requestBodyCheck value
-
withRequestBodyCheck
public ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyCheck(Boolean requestBodyCheck) Set whether allow WAF to check request Body.- Parameters:
requestBodyCheck
- the requestBodyCheck value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
maxRequestBodySize
Get maximum request body size for WAF.- Returns:
- the maxRequestBodySize value
-
withMaxRequestBodySize
public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySize(Integer maxRequestBodySize) Set maximum request body size for WAF.- Parameters:
maxRequestBodySize
- the maxRequestBodySize value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
maxRequestBodySizeInKb
Get maximum request body size in Kb for WAF.- Returns:
- the maxRequestBodySizeInKb value
-
withMaxRequestBodySizeInKb
public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb) Set maximum request body size in Kb for WAF.- Parameters:
maxRequestBodySizeInKb
- the maxRequestBodySizeInKb value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
fileUploadLimitInMb
Get maximum file upload size in Mb for WAF.- Returns:
- the fileUploadLimitInMb value
-
withFileUploadLimitInMb
public ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimitInMb(Integer fileUploadLimitInMb) Set maximum file upload size in Mb for WAF.- Parameters:
fileUploadLimitInMb
- the fileUploadLimitInMb value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
exclusions
Get the exclusion list.- Returns:
- the exclusions value
-
withExclusions
public ApplicationGatewayWebApplicationFirewallConfiguration withExclusions(List<ApplicationGatewayFirewallExclusion> exclusions) Set the exclusion list.- Parameters:
exclusions
- the exclusions value to set- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-