ExclusionManagedRule Class

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

Implements

public final class ExclusionManagedRule
implements JsonSerializable<ExclusionManagedRule>

Defines a managed rule to use for exclusion.

Constructor Summary

Constructor Description
ExclusionManagedRule()

Creates an instance of ExclusionManagedRule class.

Method Summary

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

Reads an instance of ExclusionManagedRule from the JsonReader.

String ruleId()

Get the ruleId property: Identifier for the managed rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExclusionManagedRule withRuleId(String ruleId)

Set the ruleId property: Identifier for the managed rule.

Methods inherited from java.lang.Object

Constructor Details

ExclusionManagedRule

public ExclusionManagedRule()

Creates an instance of ExclusionManagedRule class.

Method Details

fromJson

public static ExclusionManagedRule fromJson(JsonReader jsonReader)

Reads an instance of ExclusionManagedRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

withRuleId

public ExclusionManagedRule withRuleId(String ruleId)

Set the ruleId property: Identifier for the managed rule.

Parameters:

ruleId - the ruleId value to set.

Returns:

the ExclusionManagedRule object itself.

Applies to