Class PolicySettings
- java.lang.Object
-
- com.azure.resourcemanager.network.models.PolicySettings
-
public final class PolicySettings extends Object
Defines contents of a web application firewall global configuration.
-
-
Constructor Summary
Constructors Constructor Description PolicySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerfileUploadLimitInMb()Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.IntegermaxRequestBodySizeInKb()Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.WebApplicationFirewallModemode()Get the mode property: The mode of the policy.BooleanrequestBodyCheck()Get the requestBodyCheck property: Whether to allow WAF to check request Body.WebApplicationFirewallEnabledStatestate()Get the state property: The state of the policy.voidvalidate()Validates the instance.PolicySettingswithFileUploadLimitInMb(Integer fileUploadLimitInMb)Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.PolicySettingswithMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.PolicySettingswithMode(WebApplicationFirewallMode mode)Set the mode property: The mode of the policy.PolicySettingswithRequestBodyCheck(Boolean requestBodyCheck)Set the requestBodyCheck property: Whether to allow WAF to check request Body.PolicySettingswithState(WebApplicationFirewallEnabledState state)Set the state property: The state of the policy.
-
-
-
Method Detail
-
state
public WebApplicationFirewallEnabledState state()
Get the state property: The state of the policy.- Returns:
- the state value.
-
withState
public PolicySettings withState(WebApplicationFirewallEnabledState state)
Set the state property: The state of the policy.- Parameters:
state- the state value to set.- Returns:
- the PolicySettings object itself.
-
mode
public WebApplicationFirewallMode mode()
Get the mode property: The mode of the policy.- Returns:
- the mode value.
-
withMode
public PolicySettings withMode(WebApplicationFirewallMode mode)
Set the mode property: The mode of the policy.- Parameters:
mode- the mode value to set.- Returns:
- the PolicySettings object itself.
-
requestBodyCheck
public Boolean requestBodyCheck()
Get the requestBodyCheck property: Whether to allow WAF to check request Body.- Returns:
- the requestBodyCheck value.
-
withRequestBodyCheck
public PolicySettings withRequestBodyCheck(Boolean requestBodyCheck)
Set the requestBodyCheck property: Whether to allow WAF to check request Body.- Parameters:
requestBodyCheck- the requestBodyCheck value to set.- Returns:
- the PolicySettings object itself.
-
maxRequestBodySizeInKb
public Integer maxRequestBodySizeInKb()
Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.- Returns:
- the maxRequestBodySizeInKb value.
-
withMaxRequestBodySizeInKb
public PolicySettings withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)
Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF.- Parameters:
maxRequestBodySizeInKb- the maxRequestBodySizeInKb value to set.- Returns:
- the PolicySettings object itself.
-
fileUploadLimitInMb
public Integer fileUploadLimitInMb()
Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.- Returns:
- the fileUploadLimitInMb value.
-
withFileUploadLimitInMb
public PolicySettings withFileUploadLimitInMb(Integer fileUploadLimitInMb)
Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF.- Parameters:
fileUploadLimitInMb- the fileUploadLimitInMb value to set.- Returns:
- the PolicySettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-