共用方式為


ExclusionManagedRuleSet Class

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

Implements

public final class ExclusionManagedRuleSet
implements JsonSerializable<ExclusionManagedRuleSet>

Defines a managed rule set for Exclusions.

Constructor Summary

Constructor Description
ExclusionManagedRuleSet()

Creates an instance of ExclusionManagedRuleSet class.

Method Summary

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

Reads an instance of ExclusionManagedRuleSet from the JsonReader.

List<ExclusionManagedRuleGroup> ruleGroups()

Get the ruleGroups property: Defines the rule groups to apply to the rule set.

String ruleSetType()

Get the ruleSetType property: Defines the rule set type to use.

String ruleSetVersion()

Get the ruleSetVersion property: Defines the version of the rule set to use.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExclusionManagedRuleSet withRuleGroups(List<ExclusionManagedRuleGroup> ruleGroups)

Set the ruleGroups property: Defines the rule groups to apply to the rule set.

ExclusionManagedRuleSet withRuleSetType(String ruleSetType)

Set the ruleSetType property: Defines the rule set type to use.

ExclusionManagedRuleSet withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: Defines the version of the rule set to use.

Methods inherited from java.lang.Object

Constructor Details

ExclusionManagedRuleSet

public ExclusionManagedRuleSet()

Creates an instance of ExclusionManagedRuleSet class.

Method Details

fromJson

public static ExclusionManagedRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ExclusionManagedRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ruleGroups

public List ruleGroups()

Get the ruleGroups property: Defines the rule groups to apply to the rule set.

Returns:

the ruleGroups value.

ruleSetType

public String ruleSetType()

Get the ruleSetType property: Defines the rule set type to use.

Returns:

the ruleSetType value.

ruleSetVersion

public String ruleSetVersion()

Get the ruleSetVersion property: Defines the version of the rule set to use.

Returns:

the ruleSetVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRuleGroups

public ExclusionManagedRuleSet withRuleGroups(List ruleGroups)

Set the ruleGroups property: Defines the rule groups to apply to the rule set.

Parameters:

ruleGroups - the ruleGroups value to set.

Returns:

the ExclusionManagedRuleSet object itself.

withRuleSetType

public ExclusionManagedRuleSet withRuleSetType(String ruleSetType)

Set the ruleSetType property: Defines the rule set type to use.

Parameters:

ruleSetType - the ruleSetType value to set.

Returns:

the ExclusionManagedRuleSet object itself.

withRuleSetVersion

public ExclusionManagedRuleSet withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: Defines the version of the rule set to use.

Parameters:

ruleSetVersion - the ruleSetVersion value to set.

Returns:

the ExclusionManagedRuleSet object itself.

Applies to