Class ApplicationGatewayWebApplicationFirewallConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ApplicationGatewayWebApplicationFirewallConfiguration
-
public final class ApplicationGatewayWebApplicationFirewallConfiguration extends Object
Application gateway web application firewall configuration.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayWebApplicationFirewallConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ApplicationGatewayFirewallDisabledRuleGroup>disabledRuleGroups()Get the disabledRuleGroups property: The disabled rule groups.booleanenabled()Get the enabled property: Whether the web application firewall is enabled or not.List<ApplicationGatewayFirewallExclusion>exclusions()Get the exclusions property: The exclusion list.IntegerfileUploadLimitInMb()Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.ApplicationGatewayFirewallModefirewallMode()Get the firewallMode property: Web application firewall mode.IntegermaxRequestBodySize()Get the maxRequestBodySize property: Maximum request body size for WAF.IntegermaxRequestBodySizeInKb()Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.BooleanrequestBodyCheck()Get the requestBodyCheck property: Whether allow WAF to check request Body.StringruleSetType()Get the ruleSetType property: The type of the web application firewall rule set.StringruleSetVersion()Get the ruleSetVersion property: The version of the rule set type.voidvalidate()Validates the instance.ApplicationGatewayWebApplicationFirewallConfigurationwithDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups)Set the disabledRuleGroups property: The disabled rule groups.ApplicationGatewayWebApplicationFirewallConfigurationwithEnabled(boolean enabled)Set the enabled property: Whether the web application firewall is enabled or not.ApplicationGatewayWebApplicationFirewallConfigurationwithExclusions(List<ApplicationGatewayFirewallExclusion> exclusions)Set the exclusions property: The exclusion list.ApplicationGatewayWebApplicationFirewallConfigurationwithFileUploadLimitInMb(Integer fileUploadLimitInMb)Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.ApplicationGatewayWebApplicationFirewallConfigurationwithFirewallMode(ApplicationGatewayFirewallMode firewallMode)Set the firewallMode property: Web application firewall mode.ApplicationGatewayWebApplicationFirewallConfigurationwithMaxRequestBodySize(Integer maxRequestBodySize)Set the maxRequestBodySize property: Maximum request body size for WAF.ApplicationGatewayWebApplicationFirewallConfigurationwithMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.ApplicationGatewayWebApplicationFirewallConfigurationwithRequestBodyCheck(Boolean requestBodyCheck)Set the requestBodyCheck property: Whether allow WAF to check request Body.ApplicationGatewayWebApplicationFirewallConfigurationwithRuleSetType(String ruleSetType)Set the ruleSetType property: The type of the web application firewall rule set.ApplicationGatewayWebApplicationFirewallConfigurationwithRuleSetVersion(String ruleSetVersion)Set the ruleSetVersion property: The version of the rule set type.
-
-
-
Method Detail
-
enabled
public boolean enabled()
Get the enabled property: Whether the web application firewall is enabled or not.- Returns:
- the enabled value.
-
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.
-
firewallMode
public ApplicationGatewayFirewallMode firewallMode()
Get the firewallMode property: Web application firewall mode.- Returns:
- the firewallMode value.
-
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.
-
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.
-
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.
-
ruleSetVersion
public String ruleSetVersion()
Get the ruleSetVersion property: The version of the rule set type.- Returns:
- the ruleSetVersion value.
-
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.
-
disabledRuleGroups
public List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups()
Get the disabledRuleGroups property: The disabled rule groups.- Returns:
- the disabledRuleGroups value.
-
withDisabledRuleGroups
public ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups)
Set the disabledRuleGroups property: The disabled rule groups.- Parameters:
disabledRuleGroups- the disabledRuleGroups value to set.- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
requestBodyCheck
public Boolean requestBodyCheck()
Get the requestBodyCheck property: Whether allow WAF to check request Body.- Returns:
- the requestBodyCheck value.
-
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.
-
maxRequestBodySize
public Integer maxRequestBodySize()
Get the maxRequestBodySize property: Maximum request body size for WAF.- Returns:
- the maxRequestBodySize value.
-
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.
-
maxRequestBodySizeInKb
public Integer maxRequestBodySizeInKb()
Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.- Returns:
- the maxRequestBodySizeInKb value.
-
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.
-
fileUploadLimitInMb
public Integer fileUploadLimitInMb()
Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.- Returns:
- the fileUploadLimitInMb value.
-
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.
-
exclusions
public List<ApplicationGatewayFirewallExclusion> exclusions()
Get the exclusions property: The exclusion list.- Returns:
- the exclusions value.
-
withExclusions
public ApplicationGatewayWebApplicationFirewallConfiguration withExclusions(List<ApplicationGatewayFirewallExclusion> exclusions)
Set the exclusions property: The exclusion list.- Parameters:
exclusions- the exclusions value to set.- Returns:
- the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-