共用方式為


ExclusionManagedRuleGroup Class

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

Implements

public final class ExclusionManagedRuleGroup
implements JsonSerializable<ExclusionManagedRuleGroup>

Defines a managed rule group to use for exclusion.

Constructor Summary

Constructor Description
ExclusionManagedRuleGroup()

Creates an instance of ExclusionManagedRuleGroup class.

Method Summary

Modifier and Type Method and Description
static ExclusionManagedRuleGroup fromJson(JsonReader jsonReader)

Reads an instance of ExclusionManagedRuleGroup from the JsonReader.

String ruleGroupName()

Get the ruleGroupName property: The managed rule group for exclusion.

List<ExclusionManagedRule> rules()

Get the rules property: List of rules that will be excluded.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExclusionManagedRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: The managed rule group for exclusion.

ExclusionManagedRuleGroup withRules(List<ExclusionManagedRule> rules)

Set the rules property: List of rules that will be excluded.

Methods inherited from java.lang.Object

Constructor Details

ExclusionManagedRuleGroup

public ExclusionManagedRuleGroup()

Creates an instance of ExclusionManagedRuleGroup class.

Method Details

fromJson

public static ExclusionManagedRuleGroup fromJson(JsonReader jsonReader)

Reads an instance of ExclusionManagedRuleGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExclusionManagedRuleGroup 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.

ruleGroupName

public String ruleGroupName()

Get the ruleGroupName property: The managed rule group for exclusion.

Returns:

the ruleGroupName value.

rules

public List rules()

Get the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRuleGroupName

public ExclusionManagedRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: The managed rule group for exclusion.

Parameters:

ruleGroupName - the ruleGroupName value to set.

Returns:

the ExclusionManagedRuleGroup object itself.

withRules

public ExclusionManagedRuleGroup withRules(List rules)

Set the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.

Parameters:

rules - the rules value to set.

Returns:

the ExclusionManagedRuleGroup object itself.

Applies to