ManagedRuleSet Class

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

Implements

public final class ManagedRuleSet
implements JsonSerializable<ManagedRuleSet>

Defines a managed rule set.

Constructor Summary

Constructor Description
ManagedRuleSet()

Creates an instance of ManagedRuleSet class.

Method Summary

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

Reads an instance of ManagedRuleSet from the JsonReader.

List<ManagedRuleGroupOverride> ruleGroupOverrides()

Get the ruleGroupOverrides property: Defines the rule group overrides 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.

ManagedRuleSet withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides)

Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.

ManagedRuleSet withRuleSetType(String ruleSetType)

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

ManagedRuleSet withRuleSetVersion(String ruleSetVersion)

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

Methods inherited from java.lang.Object

Constructor Details

ManagedRuleSet

public ManagedRuleSet()

Creates an instance of ManagedRuleSet class.

Method Details

fromJson

public static ManagedRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ruleGroupOverrides

public List ruleGroupOverrides()

Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.

Returns:

the ruleGroupOverrides 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.

withRuleGroupOverrides

public ManagedRuleSet withRuleGroupOverrides(List ruleGroupOverrides)

Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.

Parameters:

ruleGroupOverrides - the ruleGroupOverrides value to set.

Returns:

the ManagedRuleSet object itself.

withRuleSetType

public ManagedRuleSet withRuleSetType(String ruleSetType)

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

Parameters:

ruleSetType - the ruleSetType value to set.

Returns:

the ManagedRuleSet object itself.

withRuleSetVersion

public ManagedRuleSet 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 ManagedRuleSet object itself.

Applies to