PolicySettings Class
- java.
lang. Object - com.
microsoft. azure. management. network. PolicySettings
- com.
public class PolicySettings
Defines contents of a web application firewall global configuration.
Constructor Summary
Constructor | Description | |
---|---|---|
PolicySettings() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
fileUploadLimitInMb()
Get maximum file upload size in Mb for WAF. |
java.lang.Integer |
maxRequestBodySizeInKb()
Get maximum request body size in Kb for WAF. |
Web |
mode()
Get the mode of the policy. |
java.lang.Boolean |
requestBodyCheck()
Get whether to allow WAF to check request Body. |
Web |
state()
Get the state of the policy. |
Policy |
withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set maximum file upload size in Mb for WAF. |
Policy |
withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set maximum request body size in Kb for WAF. |
Policy |
withMode(WebApplicationFirewallMode mode)
Set the mode of the policy. |
Policy |
withRequestBodyCheck(Boolean requestBodyCheck)
Set whether to allow WAF to check request Body. |
Policy |
withState(WebApplicationFirewallEnabledState state)
Set the state of the policy. |
Methods inherited from java.lang.Object
Constructor Details
PolicySettings
public PolicySettings()
Method Details
fileUploadLimitInMb
public Integer fileUploadLimitInMb()
Get maximum file upload size in Mb for WAF.
Returns:
maxRequestBodySizeInKb
public Integer maxRequestBodySizeInKb()
Get maximum request body size in Kb for WAF.
Returns:
mode
public WebApplicationFirewallMode mode()
Get the mode of the policy. Possible values include: 'Prevention', 'Detection'.
Returns:
requestBodyCheck
public Boolean requestBodyCheck()
Get whether to allow WAF to check request Body.
Returns:
state
public WebApplicationFirewallEnabledState state()
Get the state of the policy. Possible values include: 'Disabled', 'Enabled'.
Returns:
withFileUploadLimitInMb
public PolicySettings withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set maximum file upload size in Mb for WAF.
Parameters:
Returns:
withMaxRequestBodySizeInKb
public PolicySettings withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set maximum request body size in Kb for WAF.
Parameters:
Returns:
withMode
public PolicySettings withMode(WebApplicationFirewallMode mode)
Set the mode of the policy. Possible values include: 'Prevention', 'Detection'.
Parameters:
Returns:
withRequestBodyCheck
public PolicySettings withRequestBodyCheck(Boolean requestBodyCheck)
Set whether to allow WAF to check request Body.
Parameters:
Returns:
withState
public PolicySettings withState(WebApplicationFirewallEnabledState state)
Set the state of the policy. Possible values include: 'Disabled', 'Enabled'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor