ManagedRuleGroupDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.ManagedRuleGroupDefinition

Implements

public final class ManagedRuleGroupDefinition
implements JsonSerializable<ManagedRuleGroupDefinition>

Describes a managed rule group.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the managed rule group.

static ManagedRuleGroupDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleGroupDefinition from the JsonReader.

String ruleGroupName()

Get the ruleGroupName property: Name of the managed rule group.

List<ManagedRuleDefinition> rules()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

description

public String description()

Get the description property: Description of the managed rule group.

Returns:

the description value.

fromJson

public static ManagedRuleGroupDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleGroupDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ManagedRuleGroupDefinition.

ruleGroupName

public String ruleGroupName()

Get the ruleGroupName property: Name of the managed rule group.

Returns:

the ruleGroupName value.

rules

public List<ManagedRuleDefinition> rules()

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

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to