Class ApplicationGatewayWebApplicationFirewallConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayWebApplicationFirewallConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayWebApplicationFirewallConfiguration>
public final class ApplicationGatewayWebApplicationFirewallConfiguration
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayWebApplicationFirewallConfiguration>
Application gateway web application firewall configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayWebApplicationFirewallConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the disabledRuleGroups property: The disabled rule groups.booleanenabled()Get the enabled property: Whether the web application firewall is enabled or not.Get the exclusions property: The exclusion list.Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.Get the firewallMode property: Web application firewall mode.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayWebApplicationFirewallConfiguration from the JsonReader.Get the maxRequestBodySize property: Maximum request body size for WAF.Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.Get the requestBodyCheck property: Whether allow WAF to check request Body.Get the ruleSetType property: The type of the web application firewall rule set.Get the ruleSetVersion property: The version of the rule set type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups) Set the disabledRuleGroups property: The disabled rule groups.withEnabled(boolean enabled) Set the enabled property: Whether the web application firewall is enabled or not.withExclusions(List<ApplicationGatewayFirewallExclusion> exclusions) Set the exclusions property: The exclusion list.withFileUploadLimitInMb(Integer fileUploadLimitInMb) Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.withFirewallMode(ApplicationGatewayFirewallMode firewallMode) Set the firewallMode property: Web application firewall mode.withMaxRequestBodySize(Integer maxRequestBodySize) Set the maxRequestBodySize property: Maximum request body size for WAF.withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb) Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.withRequestBodyCheck(Boolean requestBodyCheck) Set the requestBodyCheck property: Whether allow WAF to check request Body.withRuleSetType(String ruleSetType) Set the ruleSetType property: The type of the web application firewall rule set.withRuleSetVersion(String ruleSetVersion) Set the ruleSetVersion property: The version of the rule set type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayWebApplicationFirewallConfiguration
public ApplicationGatewayWebApplicationFirewallConfiguration()Creates an instance of ApplicationGatewayWebApplicationFirewallConfiguration class.
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: Whether the web application firewall is enabled or not.- Returns:
- the enabled value.
-
withEnabled
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
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
Get the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'.- Returns:
- the ruleSetType value.
-
withRuleSetType
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
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
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
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
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
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayWebApplicationFirewallConfiguration>- Throws:
IOException
-
fromJson
public static ApplicationGatewayWebApplicationFirewallConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ApplicationGatewayWebApplicationFirewallConfiguration.
-