PolicySettings Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.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.String defaultCustomBlockResponseBody()

Get if the action type is block, customer can override the response body.

java.lang.Integer defaultCustomBlockResponseStatusCode()

Get if the action type is block, this field defines the default customer overridable http response status code.

java.lang.String defaultRedirectUrl()

Get if action type is redirect, this field represents the default redirect URL for the client.

PolicyEnabledState enabledState()

Get describes if the policy is in enabled state or disabled state.

PolicyMode mode()

Get describes if it is in detection mode or prevention mode at policy level.

PolicySettings withDefaultCustomBlockResponseBody(String defaultCustomBlockResponseBody)

Set if the action type is block, customer can override the response body.

PolicySettings withDefaultCustomBlockResponseStatusCode(Integer defaultCustomBlockResponseStatusCode)

Set if the action type is block, this field defines the default customer overridable http response status code.

PolicySettings withDefaultRedirectUrl(String defaultRedirectUrl)

Set if action type is redirect, this field represents the default redirect URL for the client.

PolicySettings withEnabledState(PolicyEnabledState enabledState)

Set describes if the policy is in enabled state or disabled state.

PolicySettings withMode(PolicyMode mode)

Set describes if it is in detection mode or prevention mode at policy level.

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

defaultCustomBlockResponseBody

public String defaultCustomBlockResponseBody()

Get if the action type is block, customer can override the response body. The body must be specified in base64 encoding.

Returns:

the defaultCustomBlockResponseBody value

defaultCustomBlockResponseStatusCode

public Integer defaultCustomBlockResponseStatusCode()

Get if the action type is block, this field defines the default customer overridable http response status code.

Returns:

the defaultCustomBlockResponseStatusCode value

defaultRedirectUrl

public String defaultRedirectUrl()

Get if action type is redirect, this field represents the default redirect URL for the client.

Returns:

the defaultRedirectUrl value

enabledState

public PolicyEnabledState enabledState()

Get describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'.

Returns:

the enabledState value

mode

public PolicyMode mode()

Get describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'.

Returns:

the mode value

withDefaultCustomBlockResponseBody

public PolicySettings withDefaultCustomBlockResponseBody(String defaultCustomBlockResponseBody)

Set if the action type is block, customer can override the response body. The body must be specified in base64 encoding.

Parameters:

defaultCustomBlockResponseBody - the defaultCustomBlockResponseBody value to set

Returns:

the PolicySettings object itself.

withDefaultCustomBlockResponseStatusCode

public PolicySettings withDefaultCustomBlockResponseStatusCode(Integer defaultCustomBlockResponseStatusCode)

Set if the action type is block, this field defines the default customer overridable http response status code.

Parameters:

defaultCustomBlockResponseStatusCode - the defaultCustomBlockResponseStatusCode value to set

Returns:

the PolicySettings object itself.

withDefaultRedirectUrl

public PolicySettings withDefaultRedirectUrl(String defaultRedirectUrl)

Set if action type is redirect, this field represents the default redirect URL for the client.

Parameters:

defaultRedirectUrl - the defaultRedirectUrl value to set

Returns:

the PolicySettings object itself.

withEnabledState

public PolicySettings withEnabledState(PolicyEnabledState enabledState)

Set describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'.

Parameters:

enabledState - the enabledState value to set

Returns:

the PolicySettings object itself.

withMode

public PolicySettings withMode(PolicyMode mode)

Set describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'.

Parameters:

mode - the mode value to set

Returns:

the PolicySettings object itself.

Applies to