public final class PolicySettings extends Object
| Constructor and Description |
|---|
PolicySettings() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
fileUploadLimitInMb()
Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.
|
Integer |
maxRequestBodySizeInKb()
Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.
|
WebApplicationFirewallMode |
mode()
Get the mode property: The mode of the policy.
|
Boolean |
requestBodyCheck()
Get the requestBodyCheck property: Whether to allow WAF to check request Body.
|
WebApplicationFirewallEnabledState |
state()
Get the state property: The state of the policy.
|
void |
validate()
Validates the instance.
|
PolicySettings |
withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.
|
PolicySettings |
withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.
|
PolicySettings |
withMode(WebApplicationFirewallMode mode)
Set the mode property: The mode of the policy.
|
PolicySettings |
withRequestBodyCheck(Boolean requestBodyCheck)
Set the requestBodyCheck property: Whether to allow WAF to check request Body.
|
PolicySettings |
withState(WebApplicationFirewallEnabledState state)
Set the state property: The state of the policy.
|
public WebApplicationFirewallEnabledState state()
public PolicySettings withState(WebApplicationFirewallEnabledState state)
state - the state value to set.public WebApplicationFirewallMode mode()
public PolicySettings withMode(WebApplicationFirewallMode mode)
mode - the mode value to set.public Boolean requestBodyCheck()
public PolicySettings withRequestBodyCheck(Boolean requestBodyCheck)
requestBodyCheck - the requestBodyCheck value to set.public Integer maxRequestBodySizeInKb()
public PolicySettings withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
maxRequestBodySizeInKb - the maxRequestBodySizeInKb value to set.public Integer fileUploadLimitInMb()
public PolicySettings withFileUploadLimitInMb(Integer fileUploadLimitInMb)
fileUploadLimitInMb - the fileUploadLimitInMb value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.