Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Application gateway web application firewall configuration.
/** * Application gateway web application firewall configuration. */
public class ApplicationGatewayWebApplicationFirewallConfiguration {
Whether the web application firewall is enabled or not.
/** * Whether the web application firewall is enabled or not. */
@JsonProperty(value = "enabled", required = true) private boolean enabled;
Web application firewall mode. Possible values include: 'Detection', 'Prevention'.
/** * Web application firewall mode. Possible values include: 'Detection', * 'Prevention'. */
@JsonProperty(value = "firewallMode", required = true) private ApplicationGatewayFirewallMode firewallMode;
The type of the web application firewall rule set. Possible values are: 'OWASP'.
/** * The type of the web application firewall rule set. Possible values are: * 'OWASP'. */
@JsonProperty(value = "ruleSetType", required = true) private String ruleSetType;
The version of the rule set type.
/** * The version of the rule set type. */
@JsonProperty(value = "ruleSetVersion", required = true) private String ruleSetVersion;
The disabled rule groups.
/** * The disabled rule groups. */
@JsonProperty(value = "disabledRuleGroups") private List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups;
Whether allow WAF to check request Body.
/** * Whether allow WAF to check request Body. */
@JsonProperty(value = "requestBodyCheck") private Boolean requestBodyCheck;
Maximum request body size for WAF.
/** * Maximum request body size for WAF. */
@JsonProperty(value = "maxRequestBodySize") private Integer maxRequestBodySize;
Maximum request body size in Kb for WAF.
/** * Maximum request body size in Kb for WAF. */
@JsonProperty(value = "maxRequestBodySizeInKb") private Integer maxRequestBodySizeInKb;
Maximum file upload size in Mb for WAF.
/** * Maximum file upload size in Mb for WAF. */
@JsonProperty(value = "fileUploadLimitInMb") private Integer fileUploadLimitInMb;
The exclusion list.
/** * The exclusion list. */
@JsonProperty(value = "exclusions") private List<ApplicationGatewayFirewallExclusion> exclusions;
Get whether the web application firewall is enabled or not.
Returns:the enabled value
/** * Get whether the web application firewall is enabled or not. * * @return the enabled value */
public boolean enabled() { return this.enabled; }
Set whether the web application firewall is enabled or not.
Params:
  • enabled – the enabled value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set whether the web application firewall is enabled or not. * * @param enabled the enabled value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withEnabled(boolean enabled) { this.enabled = enabled; return this; }
Get web application firewall mode. Possible values include: 'Detection', 'Prevention'.
Returns:the firewallMode value
/** * Get web application firewall mode. Possible values include: 'Detection', 'Prevention'. * * @return the firewallMode value */
public ApplicationGatewayFirewallMode firewallMode() { return this.firewallMode; }
Set web application firewall mode. Possible values include: 'Detection', 'Prevention'.
Params:
  • firewallMode – the firewallMode value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set web application firewall mode. Possible values include: 'Detection', 'Prevention'. * * @param firewallMode the firewallMode value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withFirewallMode(ApplicationGatewayFirewallMode firewallMode) { this.firewallMode = firewallMode; return this; }
Get the type of the web application firewall rule set. Possible values are: 'OWASP'.
Returns:the ruleSetType value
/** * Get the type of the web application firewall rule set. Possible values are: 'OWASP'. * * @return the ruleSetType value */
public String ruleSetType() { return this.ruleSetType; }
Set the type of the web application firewall rule set. Possible values are: 'OWASP'.
Params:
  • ruleSetType – the ruleSetType value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set the type of the web application firewall rule set. Possible values are: 'OWASP'. * * @param ruleSetType the ruleSetType value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetType(String ruleSetType) { this.ruleSetType = ruleSetType; return this; }
Get the version of the rule set type.
Returns:the ruleSetVersion value
/** * Get the version of the rule set type. * * @return the ruleSetVersion value */
public String ruleSetVersion() { return this.ruleSetVersion; }
Set the version of the rule set type.
Params:
  • ruleSetVersion – the ruleSetVersion value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set the version of the rule set type. * * @param ruleSetVersion the ruleSetVersion value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetVersion(String ruleSetVersion) { this.ruleSetVersion = ruleSetVersion; return this; }
Get the disabled rule groups.
Returns:the disabledRuleGroups value
/** * Get the disabled rule groups. * * @return the disabledRuleGroups value */
public List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups() { return this.disabledRuleGroups; }
Set the disabled rule groups.
Params:
  • disabledRuleGroups – the disabledRuleGroups value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set the disabled rule groups. * * @param disabledRuleGroups the disabledRuleGroups value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGroups(List<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups) { this.disabledRuleGroups = disabledRuleGroups; return this; }
Get whether allow WAF to check request Body.
Returns:the requestBodyCheck value
/** * Get whether allow WAF to check request Body. * * @return the requestBodyCheck value */
public Boolean requestBodyCheck() { return this.requestBodyCheck; }
Set whether allow WAF to check request Body.
Params:
  • requestBodyCheck – the requestBodyCheck value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set whether allow WAF to check request Body. * * @param requestBodyCheck the requestBodyCheck value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyCheck(Boolean requestBodyCheck) { this.requestBodyCheck = requestBodyCheck; return this; }
Get maximum request body size for WAF.
Returns:the maxRequestBodySize value
/** * Get maximum request body size for WAF. * * @return the maxRequestBodySize value */
public Integer maxRequestBodySize() { return this.maxRequestBodySize; }
Set maximum request body size for WAF.
Params:
  • maxRequestBodySize – the maxRequestBodySize value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set maximum request body size for WAF. * * @param maxRequestBodySize the maxRequestBodySize value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySize(Integer maxRequestBodySize) { this.maxRequestBodySize = maxRequestBodySize; return this; }
Get maximum request body size in Kb for WAF.
Returns:the maxRequestBodySizeInKb value
/** * Get maximum request body size in Kb for WAF. * * @return the maxRequestBodySizeInKb value */
public Integer maxRequestBodySizeInKb() { return this.maxRequestBodySizeInKb; }
Set maximum request body size in Kb for WAF.
Params:
  • maxRequestBodySizeInKb – the maxRequestBodySizeInKb value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set maximum request body size in Kb for WAF. * * @param maxRequestBodySizeInKb the maxRequestBodySizeInKb value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb) { this.maxRequestBodySizeInKb = maxRequestBodySizeInKb; return this; }
Get maximum file upload size in Mb for WAF.
Returns:the fileUploadLimitInMb value
/** * Get maximum file upload size in Mb for WAF. * * @return the fileUploadLimitInMb value */
public Integer fileUploadLimitInMb() { return this.fileUploadLimitInMb; }
Set maximum file upload size in Mb for WAF.
Params:
  • fileUploadLimitInMb – the fileUploadLimitInMb value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set maximum file upload size in Mb for WAF. * * @param fileUploadLimitInMb the fileUploadLimitInMb value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimitInMb(Integer fileUploadLimitInMb) { this.fileUploadLimitInMb = fileUploadLimitInMb; return this; }
Get the exclusion list.
Returns:the exclusions value
/** * Get the exclusion list. * * @return the exclusions value */
public List<ApplicationGatewayFirewallExclusion> exclusions() { return this.exclusions; }
Set the exclusion list.
Params:
  • exclusions – the exclusions value to set
Returns:the ApplicationGatewayWebApplicationFirewallConfiguration object itself.
/** * Set the exclusion list. * * @param exclusions the exclusions value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */
public ApplicationGatewayWebApplicationFirewallConfiguration withExclusions(List<ApplicationGatewayFirewallExclusion> exclusions) { this.exclusions = exclusions; return this; } }