ExceptionEntry Class

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

Implements

public final class ExceptionEntry
implements JsonSerializable<ExceptionEntry>

Adds exception to allow a request when the condition is satisfied.

Constructor Summary

Constructor Description
ExceptionEntry()

Creates an instance of ExceptionEntry class.

Method Summary

Modifier and Type Method and Description
List<ExclusionManagedRuleSet> exceptionManagedRuleSets()

Get the exceptionManagedRuleSets property: The managed rule sets that are associated with the exception.

static ExceptionEntry fromJson(JsonReader jsonReader)

Reads an instance of ExceptionEntry from the JsonReader.

ExceptionEntryMatchVariable matchVariable()

Get the matchVariable property: The variable on which we evaluate the exception condition.

String selector()

Get the selector property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the key.

ExceptionEntrySelectorMatchOperator selectorMatchOperator()

Get the selectorMatchOperator property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the selector.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExceptionEntryValueMatchOperator valueMatchOperator()

Get the valueMatchOperator property: Operates on the allowed values for the matchVariable.

List<String> values()

Get the values property: Allowed values for the matchVariable.

ExceptionEntry withExceptionManagedRuleSets(List<ExclusionManagedRuleSet> exceptionManagedRuleSets)

Set the exceptionManagedRuleSets property: The managed rule sets that are associated with the exception.

ExceptionEntry withMatchVariable(ExceptionEntryMatchVariable matchVariable)

Set the matchVariable property: The variable on which we evaluate the exception condition.

ExceptionEntry withSelector(String selector)

Set the selector property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the key.

ExceptionEntry withSelectorMatchOperator(ExceptionEntrySelectorMatchOperator selectorMatchOperator)

Set the selectorMatchOperator property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the selector.

ExceptionEntry withValueMatchOperator(ExceptionEntryValueMatchOperator valueMatchOperator)

Set the valueMatchOperator property: Operates on the allowed values for the matchVariable.

ExceptionEntry withValues(List<String> values)

Set the values property: Allowed values for the matchVariable.

Methods inherited from java.lang.Object

Constructor Details

ExceptionEntry

public ExceptionEntry()

Creates an instance of ExceptionEntry class.

Method Details

exceptionManagedRuleSets

public List exceptionManagedRuleSets()

Get the exceptionManagedRuleSets property: The managed rule sets that are associated with the exception.

Returns:

the exceptionManagedRuleSets value.

fromJson

public static ExceptionEntry fromJson(JsonReader jsonReader)

Reads an instance of ExceptionEntry from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

matchVariable

public ExceptionEntryMatchVariable matchVariable()

Get the matchVariable property: The variable on which we evaluate the exception condition.

Returns:

the matchVariable value.

selector

public String selector()

Get the selector property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the key.

Returns:

the selector value.

selectorMatchOperator

public ExceptionEntrySelectorMatchOperator selectorMatchOperator()

Get the selectorMatchOperator property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the selector.

Returns:

the selectorMatchOperator value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

valueMatchOperator

public ExceptionEntryValueMatchOperator valueMatchOperator()

Get the valueMatchOperator property: Operates on the allowed values for the matchVariable.

Returns:

the valueMatchOperator value.

values

public List values()

Get the values property: Allowed values for the matchVariable.

Returns:

the values value.

withExceptionManagedRuleSets

public ExceptionEntry withExceptionManagedRuleSets(List exceptionManagedRuleSets)

Set the exceptionManagedRuleSets property: The managed rule sets that are associated with the exception.

Parameters:

exceptionManagedRuleSets - the exceptionManagedRuleSets value to set.

Returns:

the ExceptionEntry object itself.

withMatchVariable

public ExceptionEntry withMatchVariable(ExceptionEntryMatchVariable matchVariable)

Set the matchVariable property: The variable on which we evaluate the exception condition.

Parameters:

matchVariable - the matchVariable value to set.

Returns:

the ExceptionEntry object itself.

withSelector

public ExceptionEntry withSelector(String selector)

Set the selector property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the key.

Parameters:

selector - the selector value to set.

Returns:

the ExceptionEntry object itself.

withSelectorMatchOperator

public ExceptionEntry withSelectorMatchOperator(ExceptionEntrySelectorMatchOperator selectorMatchOperator)

Set the selectorMatchOperator property: When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the selector.

Parameters:

selectorMatchOperator - the selectorMatchOperator value to set.

Returns:

the ExceptionEntry object itself.

withValueMatchOperator

public ExceptionEntry withValueMatchOperator(ExceptionEntryValueMatchOperator valueMatchOperator)

Set the valueMatchOperator property: Operates on the allowed values for the matchVariable.

Parameters:

valueMatchOperator - the valueMatchOperator value to set.

Returns:

the ExceptionEntry object itself.

withValues

public ExceptionEntry withValues(List values)

Set the values property: Allowed values for the matchVariable.

Parameters:

values - the values value to set.

Returns:

the ExceptionEntry object itself.

Applies to