Compartir a través de


ManagedRuleOverride Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ManagedRuleOverride

Implements

public final class ManagedRuleOverride
implements JsonSerializable<ManagedRuleOverride>

Defines a managed rule group override setting.

Constructor Summary

Constructor Description
ManagedRuleOverride()

Creates an instance of ManagedRuleOverride class.

Method Summary

Modifier and Type Method and Description
ActionType action()

Get the action property: Describes the override action to be applied when rule matches.

static ManagedRuleOverride fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleOverride from the JsonReader.

String ruleId()

Get the ruleId property: Identifier for the managed rule.

SensitivityType sensitivity()

Get the sensitivity property: Describes the override sensitivity to be applied when rule matches.

ManagedRuleEnabledState state()

Get the state property: The state of the managed rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedRuleOverride withAction(ActionType action)

Set the action property: Describes the override action to be applied when rule matches.

ManagedRuleOverride withRuleId(String ruleId)

Set the ruleId property: Identifier for the managed rule.

ManagedRuleOverride withSensitivity(SensitivityType sensitivity)

Set the sensitivity property: Describes the override sensitivity to be applied when rule matches.

ManagedRuleOverride 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:

the action value.

fromJson

public static ManagedRuleOverride fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleOverride from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedRuleOverride if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ruleId

public String ruleId()

Get the ruleId property: Identifier for the managed rule.

Returns:

the ruleId value.

sensitivity

public SensitivityType sensitivity()

Get the sensitivity property: Describes the override sensitivity to be applied when rule matches.

Returns:

the sensitivity value.

state

public ManagedRuleEnabledState state()

Get the state property: The state of the managed rule. Defaults to Disabled if not specified.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

action - the action value to set.

Returns:

the ManagedRuleOverride object itself.

withRuleId

public ManagedRuleOverride withRuleId(String ruleId)

Set the ruleId property: Identifier for the managed rule.

Parameters:

ruleId - the ruleId value to set.

Returns:

the ManagedRuleOverride object itself.

withSensitivity

public ManagedRuleOverride withSensitivity(SensitivityType sensitivity)

Set the sensitivity property: Describes the override sensitivity to be applied when rule matches.

Parameters:

sensitivity - the sensitivity value to set.

Returns:

the ManagedRuleOverride object itself.

withState

public ManagedRuleOverride withState(ManagedRuleEnabledState state)

Set the state property: The state of the managed rule. Defaults to Disabled if not specified.

Parameters:

state - the state value to set.

Returns:

the ManagedRuleOverride object itself.

Applies to