Share via


ManagedRuleDefinition Class

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

Implements

public final class ManagedRuleDefinition
implements JsonSerializable<ManagedRuleDefinition>

Describes a managed rule definition.

Constructor Summary

Constructor Description
ManagedRuleDefinition()

Creates an instance of ManagedRuleDefinition class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Describes the functionality of the managed rule.

static ManagedRuleDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleDefinition from the JsonReader.

String ruleId()

Get the ruleId property: Identifier for the managed rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ManagedRuleDefinition

public ManagedRuleDefinition()

Creates an instance of ManagedRuleDefinition class.

Method Details

description

public String description()

Get the description property: Describes the functionality of the managed rule.

Returns:

the description value.

fromJson

public static ManagedRuleDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ruleId

public String ruleId()

Get the ruleId property: Identifier for the managed rule.

Returns:

the ruleId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to