PolicySettings Class

  • java.lang.Object
    • com.microsoft.azure.management.network.PolicySettings

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.

WebApplicationFirewallMode mode()

Get the mode of the policy.

java.lang.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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

PolicySettings

public PolicySettings()

Method Details

fileUploadLimitInMb

public Integer fileUploadLimitInMb()

Get maximum file upload size in Mb for WAF.

Returns:

the fileUploadLimitInMb value

maxRequestBodySizeInKb

public Integer maxRequestBodySizeInKb()

Get maximum request body size in Kb for WAF.

Returns:

the maxRequestBodySizeInKb value

mode

public WebApplicationFirewallMode mode()

Get the mode of the policy. Possible values include: 'Prevention', 'Detection'.

Returns:

the mode value

requestBodyCheck

public Boolean requestBodyCheck()

Get whether to allow WAF to check request Body.

Returns:

the requestBodyCheck value

state

public WebApplicationFirewallEnabledState state()

Get the state of the policy. Possible values include: 'Disabled', 'Enabled'.

Returns:

the state value

withFileUploadLimitInMb

public PolicySettings withFileUploadLimitInMb(Integer fileUploadLimitInMb)

Set maximum file upload size in Mb for WAF.

Parameters:

fileUploadLimitInMb - the fileUploadLimitInMb value to set

Returns:

the PolicySettings object itself.

withMaxRequestBodySizeInKb

public PolicySettings withMaxRequestBodySizeInKb(Integer maxRequestBodySizeInKb)

Set maximum request body size in Kb for WAF.

Parameters:

maxRequestBodySizeInKb - the maxRequestBodySizeInKb value to set

Returns:

the PolicySettings object itself.

withMode

public PolicySettings withMode(WebApplicationFirewallMode mode)

Set the mode of the policy. Possible values include: 'Prevention', 'Detection'.

Parameters:

mode - the mode value to set

Returns:

the PolicySettings object itself.

withRequestBodyCheck

public PolicySettings withRequestBodyCheck(Boolean requestBodyCheck)

Set whether to allow WAF to check request Body.

Parameters:

requestBodyCheck - the requestBodyCheck value to set

Returns:

the PolicySettings object itself.

withState

public PolicySettings withState(WebApplicationFirewallEnabledState state)

Set the state of the policy. Possible values include: 'Disabled', 'Enabled'.

Parameters:

state - the state value to set

Returns:

the PolicySettings object itself.

Applies to