ManagedRuleOverride Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. ManagedRuleOverride
- com.
public class ManagedRuleOverride
Defines a managed rule group override setting.
Constructor Summary
Constructor | Description | |
---|---|---|
ManagedRuleOverride() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
action()
Get describes the override action to be applied when rule matches. |
Managed |
enabledState()
Get describes if the managed rule is in enabled or disabled state. |
java.lang.String |
ruleId()
Get identifier for the managed rule. |
Managed |
withAction(ActionType action)
Set describes the override action to be applied when rule matches. |
Managed |
withEnabledState(ManagedRuleEnabledState enabledState)
Set describes if the managed rule is in enabled or disabled state. |
Managed |
withRuleId(String ruleId)
Set identifier for the managed rule. |
Methods inherited from java.lang.Object
Constructor Details
ManagedRuleOverride
public ManagedRuleOverride()
Method Details
action
public ActionType action()
Get describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.
Returns:
enabledState
public ManagedRuleEnabledState enabledState()
Get describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled'.
Returns:
ruleId
public String ruleId()
Get identifier for the managed rule.
Returns:
withAction
public ManagedRuleOverride withAction(ActionType action)
Set describes the override action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'.
Parameters:
Returns:
withEnabledState
public ManagedRuleOverride withEnabledState(ManagedRuleEnabledState enabledState)
Set describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Possible values include: 'Disabled', 'Enabled'.
Parameters:
Returns:
withRuleId
public ManagedRuleOverride withRuleId(String ruleId)
Set identifier for the managed rule.
Parameters:
Returns:
Applies to
Azure SDK for Java
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin