public class PolicySettings extends Object
| Constructor and Description |
|---|
PolicySettings() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
fileUploadLimitInMb()
Get maximum file upload size in Mb for WAF.
|
Integer |
maxRequestBodySizeInKb()
Get maximum request body size in Kb for WAF.
|
WebApplicationFirewallMode |
mode()
Get the mode of the policy.
|
Boolean |
requestBodyCheck()
Get whether to allow WAF to check request Body.
|
WebApplicationFirewallEnabledState |
state()
Get the state of the policy.
|
PolicySettings |
withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set maximum file upload size in Mb for WAF.
|
PolicySettings |
withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set maximum request body size in Kb for WAF.
|
PolicySettings |
withMode(WebApplicationFirewallMode mode)
Set the mode of the policy.
|
PolicySettings |
withRequestBodyCheck(Boolean requestBodyCheck)
Set whether to allow WAF to check request Body.
|
PolicySettings |
withState(WebApplicationFirewallEnabledState state)
Set the state of the policy.
|
public WebApplicationFirewallEnabledState state()
public PolicySettings withState(WebApplicationFirewallEnabledState state)
state - the state value to setpublic WebApplicationFirewallMode mode()
public PolicySettings withMode(WebApplicationFirewallMode mode)
mode - the mode value to setpublic Boolean requestBodyCheck()
public PolicySettings withRequestBodyCheck(Boolean requestBodyCheck)
requestBodyCheck - the requestBodyCheck value to setpublic Integer maxRequestBodySizeInKb()
public PolicySettings withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
maxRequestBodySizeInKb - the maxRequestBodySizeInKb value to setpublic Integer fileUploadLimitInMb()
public PolicySettings withFileUploadLimitInMb(Integer fileUploadLimitInMb)
fileUploadLimitInMb - the fileUploadLimitInMb value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/