PolicySettings Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PolicySettings() |
Initializes a new instance of the PolicySettings class. |
PolicySettings(String, String, String, Nullable<Int32>, String) |
Initializes a new instance of the PolicySettings class. |
PolicySettings()
Initializes a new instance of the PolicySettings class.
public PolicySettings ();
Public Sub New ()
Applies to
PolicySettings(String, String, String, Nullable<Int32>, String)
Initializes a new instance of the PolicySettings class.
public PolicySettings (string enabledState = default, string mode = default, string defaultRedirectUrl = default, int? defaultCustomBlockResponseStatusCode = default, string defaultCustomBlockResponseBody = default);
new Microsoft.Azure.Management.Cdn.Models.PolicySettings : string * string * string * Nullable<int> * string -> Microsoft.Azure.Management.Cdn.Models.PolicySettings
Public Sub New (Optional enabledState As String = Nothing, Optional mode As String = Nothing, Optional defaultRedirectUrl As String = Nothing, Optional defaultCustomBlockResponseStatusCode As Nullable(Of Integer) = Nothing, Optional defaultCustomBlockResponseBody As String = Nothing)
Parameters
- enabledState
- String
describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'
- mode
- String
Describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'
- defaultRedirectUrl
- String
If action type is redirect, this field represents the default redirect URL for the client.
If the action type is block, this field defines the default customer overridable http response status code.
- defaultCustomBlockResponseBody
- String
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
Applies to
Azure SDK for .NET