PolicySettings Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. 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.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. |
Policy |
enabledState()
Get describes if the policy is in enabled state or disabled state. |
Policy |
mode()
Get describes if it is in detection mode or prevention mode at policy level. |
Policy |
withDefaultCustomBlockResponseBody(String defaultCustomBlockResponseBody)
Set if the action type is block, customer can override the response body. |
Policy |
withDefaultCustomBlockResponseStatusCode(Integer defaultCustomBlockResponseStatusCode)
Set if the action type is block, this field defines the default customer overridable http response status code. |
Policy |
withDefaultRedirectUrl(String defaultRedirectUrl)
Set if action type is redirect, this field represents the default redirect URL for the client. |
Policy |
withEnabledState(PolicyEnabledState enabledState)
Set describes if the policy is in enabled state or disabled state. |
Policy |
withMode(PolicyMode mode)
Set describes if it is in detection mode or prevention mode at policy level. |
Methods inherited from java.lang.Object
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:
defaultCustomBlockResponseStatusCode
public Integer defaultCustomBlockResponseStatusCode()
Get if the action type is block, this field defines the default customer overridable http response status code.
Returns:
defaultRedirectUrl
public String defaultRedirectUrl()
Get if action type is redirect, this field represents the default redirect URL for the client.
Returns:
enabledState
public PolicyEnabledState enabledState()
Get describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'.
Returns:
mode
public PolicyMode mode()
Get describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'.
Returns:
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:
Returns:
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:
Returns:
withDefaultRedirectUrl
public PolicySettings withDefaultRedirectUrl(String defaultRedirectUrl)
Set if action type is redirect, this field represents the default redirect URL for the client.
Parameters:
Returns:
withEnabledState
public PolicySettings withEnabledState(PolicyEnabledState enabledState)
Set describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java