ApplicationGatewayWebApplicationFirewallConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ApplicationGatewayWebApplicationFirewallConfiguration
- com.
Implements
public final class ApplicationGatewayWebApplicationFirewallConfiguration
implements JsonSerializable<ApplicationGatewayWebApplicationFirewallConfiguration>
Application gateway web application firewall configuration.
Constructor Summary
Constructor | Description |
---|---|
ApplicationGatewayWebApplicationFirewallConfiguration() |
Creates an instance of Application |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Application |
disabledRuleGroups()
Get the disabled |
boolean |
enabled()
Get the enabled property: Whether the web application firewall is enabled or not. |
List<Application |
exclusions()
Get the exclusions property: The exclusion list. |
Integer |
fileUploadLimitInMb()
Get the file |
Application |
firewallMode()
Get the firewall |
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
Integer |
maxRequestBodySize()
Get the max |
Integer |
maxRequestBodySizeInKb()
Get the max |
Boolean |
requestBodyCheck()
Get the request |
String |
ruleSetType()
Get the rule |
String |
ruleSetVersion()
Get the rule |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Application |
withDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups)
Set the disabled |
Application |
withEnabled(boolean enabled)
Set the enabled property: Whether the web application firewall is enabled or not. |
Application |
withExclusions(List<ApplicationGatewayFirewallExclusion> exclusions)
Set the exclusions property: The exclusion list. |
Application |
withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set the file |
Application |
withFirewallMode(ApplicationGatewayFirewallMode firewallMode)
Set the firewall |
Application |
withMaxRequestBodySize(Integer maxRequestBodySize)
Set the max |
Application |
withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set the max |
Application |
withRequestBodyCheck(Boolean requestBodyCheck)
Set the request |
Application |
withRuleSetType(String ruleSetType)
Set the rule |
Application |
withRuleSetVersion(String ruleSetVersion)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
ApplicationGatewayWebApplicationFirewallConfiguration
public ApplicationGatewayWebApplicationFirewallConfiguration()
Creates an instance of ApplicationGatewayWebApplicationFirewallConfiguration class.
Method Details
disabledRuleGroups
public List
Get the disabledRuleGroups property: The disabled rule groups.
Returns:
enabled
public boolean enabled()
Get the enabled property: Whether the web application firewall is enabled or not.
Returns:
exclusions
public List
Get the exclusions property: The exclusion list.
Returns:
fileUploadLimitInMb
public Integer fileUploadLimitInMb()
Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.
Returns:
firewallMode
public ApplicationGatewayFirewallMode firewallMode()
Get the firewallMode property: Web application firewall mode.
Returns:
fromJson
public static ApplicationGatewayWebApplicationFirewallConfiguration fromJson(JsonReader jsonReader)
Reads an instance of ApplicationGatewayWebApplicationFirewallConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
maxRequestBodySize
public Integer maxRequestBodySize()
Get the maxRequestBodySize property: Maximum request body size for WAF.
Returns:
maxRequestBodySizeInKb
public Integer maxRequestBodySizeInKb()
Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.
Returns:
requestBodyCheck
public Boolean requestBodyCheck()
Get the requestBodyCheck property: Whether allow WAF to check request Body.
Returns:
ruleSetType
public String ruleSetType()
Get the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'.
Returns:
ruleSetVersion
public String ruleSetVersion()
Get the ruleSetVersion property: The version of the rule set type.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDisabledRuleGroups
public ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGroups(List
Set the disabledRuleGroups property: The disabled rule groups.
Parameters:
Returns:
withEnabled
public ApplicationGatewayWebApplicationFirewallConfiguration withEnabled(boolean enabled)
Set the enabled property: Whether the web application firewall is enabled or not.
Parameters:
Returns:
withExclusions
public ApplicationGatewayWebApplicationFirewallConfiguration withExclusions(List
Set the exclusions property: The exclusion list.
Parameters:
Returns:
withFileUploadLimitInMb
public ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.
Parameters:
Returns:
withFirewallMode
public ApplicationGatewayWebApplicationFirewallConfiguration withFirewallMode(ApplicationGatewayFirewallMode firewallMode)
Set the firewallMode property: Web application firewall mode.
Parameters:
Returns:
withMaxRequestBodySize
public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySize(Integer maxRequestBodySize)
Set the maxRequestBodySize property: Maximum request body size for WAF.
Parameters:
Returns:
withMaxRequestBodySizeInKb
public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.
Parameters:
Returns:
withRequestBodyCheck
public ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyCheck(Boolean requestBodyCheck)
Set the requestBodyCheck property: Whether allow WAF to check request Body.
Parameters:
Returns:
withRuleSetType
public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetType(String ruleSetType)
Set the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'.
Parameters:
Returns:
withRuleSetVersion
public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetVersion(String ruleSetVersion)
Set the ruleSetVersion property: The version of the rule set type.
Parameters:
Returns:
Applies to
Azure SDK for Java