Class PolicySettings
java.lang.Object
com.microsoft.azure.management.network.PolicySettings
Defines contents of a web application firewall global configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet maximum file upload size in Mb for WAF.Get maximum request body size in Kb for WAF.mode()
Get the mode of the policy.Get whether to allow WAF to check request Body.state()
Get the state of the policy.withFileUploadLimitInMb
(Integer fileUploadLimitInMb) Set maximum file upload size in Mb for WAF.withMaxRequestBodySizeInKb
(Integer maxRequestBodySizeInKb) Set maximum request body size in Kb for WAF.Set the mode of the policy.withRequestBodyCheck
(Boolean requestBodyCheck) Set whether to allow WAF to check request Body.Set the state of the policy.
-
Constructor Details
-
PolicySettings
public PolicySettings()
-
-
Method Details
-
state
Get the state of the policy. Possible values include: 'Disabled', 'Enabled'.- Returns:
- the state value
-
withState
Set the state of the policy. Possible values include: 'Disabled', 'Enabled'.- Parameters:
state
- the state value to set- Returns:
- the PolicySettings object itself.
-
mode
Get the mode of the policy. Possible values include: 'Prevention', 'Detection'.- Returns:
- the mode value
-
withMode
Set the mode of the policy. Possible values include: 'Prevention', 'Detection'.- Parameters:
mode
- the mode value to set- Returns:
- the PolicySettings object itself.
-
requestBodyCheck
Get whether to allow WAF to check request Body.- Returns:
- the requestBodyCheck value
-
withRequestBodyCheck
Set whether to allow WAF to check request Body.- Parameters:
requestBodyCheck
- the requestBodyCheck value to set- Returns:
- the PolicySettings object itself.
-
maxRequestBodySizeInKb
Get maximum request body size in Kb for WAF.- Returns:
- the maxRequestBodySizeInKb value
-
withMaxRequestBodySizeInKb
Set maximum request body size in Kb for WAF.- Parameters:
maxRequestBodySizeInKb
- the maxRequestBodySizeInKb value to set- Returns:
- the PolicySettings object itself.
-
fileUploadLimitInMb
Get maximum file upload size in Mb for WAF.- Returns:
- the fileUploadLimitInMb value
-
withFileUploadLimitInMb
Set maximum file upload size in Mb for WAF.- Parameters:
fileUploadLimitInMb
- the fileUploadLimitInMb value to set- Returns:
- the PolicySettings object itself.
-