ManagedRuleOverride Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ManagedRuleOverride
- com.
Implements
public final class ManagedRuleOverride
implements JsonSerializable<ManagedRuleOverride>
Defines a managed rule group override setting.
Constructor Summary
Constructor | Description |
---|---|
ManagedRuleOverride() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
action()
Get the action property: Describes the override action to be applied when rule matches. |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
ruleId()
Get the rule |
Sensitivity |
sensitivity()
Get the sensitivity property: Describes the override sensitivity to be applied when rule matches. |
Managed |
state()
Get the state property: The state of the managed rule. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withAction(ActionType action)
Set the action property: Describes the override action to be applied when rule matches. |
Managed |
withRuleId(String ruleId)
Set the rule |
Managed |
withSensitivity(SensitivityType sensitivity)
Set the sensitivity property: Describes the override sensitivity to be applied when rule matches. |
Managed |
withState(ManagedRuleEnabledState state)
Set the state property: The state of the managed rule. |
Methods inherited from java.lang.Object
Constructor Details
ManagedRuleOverride
public ManagedRuleOverride()
Creates an instance of ManagedRuleOverride class.
Method Details
action
public ActionType action()
Get the action property: Describes the override action to be applied when rule matches.
Returns:
fromJson
public static ManagedRuleOverride fromJson(JsonReader jsonReader)
Reads an instance of ManagedRuleOverride from the JsonReader.
Parameters:
Returns:
Throws:
ruleId
public String ruleId()
Get the ruleId property: Identifier for the managed rule.
Returns:
sensitivity
public SensitivityType sensitivity()
Get the sensitivity property: Describes the override sensitivity to be applied when rule matches.
Returns:
state
public ManagedRuleEnabledState state()
Get the state property: The state of the managed rule. Defaults to Disabled if not specified.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public ManagedRuleOverride withAction(ActionType action)
Set the action property: Describes the override action to be applied when rule matches.
Parameters:
Returns:
withRuleId
public ManagedRuleOverride withRuleId(String ruleId)
Set the ruleId property: Identifier for the managed rule.
Parameters:
Returns:
withSensitivity
public ManagedRuleOverride withSensitivity(SensitivityType sensitivity)
Set the sensitivity property: Describes the override sensitivity to be applied when rule matches.
Parameters:
Returns:
withState
public ManagedRuleOverride withState(ManagedRuleEnabledState state)
Set the state property: The state of the managed rule. Defaults to Disabled if not specified.
Parameters:
Returns:
Applies to
Azure SDK for Java