Condividi tramite


ManagedRuleSetRuleGroup Class

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

Implements

public final class ManagedRuleSetRuleGroup
implements JsonSerializable<ManagedRuleSetRuleGroup>

Defines a managed rule set rule group.

Constructor Summary

Constructor Description
ManagedRuleSetRuleGroup()

Creates an instance of ManagedRuleSetRuleGroup class.

Method Summary

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

Reads an instance of ManagedRuleSetRuleGroup from the JsonReader.

String ruleGroupName()

Get the ruleGroupName property: Name of the rule group.

List<String> rules()

Get the rules property: List of rules within the rule group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedRuleSetRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: Name of the rule group.

ManagedRuleSetRuleGroup withRules(List<String> rules)

Set the rules property: List of rules within the rule group.

Methods inherited from java.lang.Object

Constructor Details

ManagedRuleSetRuleGroup

public ManagedRuleSetRuleGroup()

Creates an instance of ManagedRuleSetRuleGroup class.

Method Details

fromJson

public static ManagedRuleSetRuleGroup fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleSetRuleGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedRuleSetRuleGroup 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: Name of the rule group.

Returns:

the ruleGroupName value.

rules

public List<String> rules()

Get the rules property: List of rules within the rule group.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRuleGroupName

public ManagedRuleSetRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: Name of the rule group.

Parameters:

ruleGroupName - the ruleGroupName value to set.

Returns:

the ManagedRuleSetRuleGroup object itself.

withRules

public ManagedRuleSetRuleGroup withRules(List<String> rules)

Set the rules property: List of rules within the rule group.

Parameters:

rules - the rules value to set.

Returns:

the ManagedRuleSetRuleGroup object itself.

Applies to