ExceptionEntry Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ExceptionEntry
- com.
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 Exception |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Exclusion |
exceptionManagedRuleSets()
Get the exception |
static
Exception |
fromJson(JsonReader jsonReader)
Reads an instance of Exception |
Exception |
matchVariable()
Get the match |
String |
selector()
Get the selector property: When the match |
Exception |
selectorMatchOperator()
Get the selector |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Exception |
valueMatchOperator()
Get the value |
List<String> |
values()
Get the values property: Allowed values for the match |
Exception |
withExceptionManagedRuleSets(List<ExclusionManagedRuleSet> exceptionManagedRuleSets)
Set the exception |
Exception |
withMatchVariable(ExceptionEntryMatchVariable matchVariable)
Set the match |
Exception |
withSelector(String selector)
Set the selector property: When the match |
Exception |
withSelectorMatchOperator(ExceptionEntrySelectorMatchOperator selectorMatchOperator)
Set the selector |
Exception |
withValueMatchOperator(ExceptionEntryValueMatchOperator valueMatchOperator)
Set the value |
Exception |
withValues(List<String> values)
Set the values property: Allowed values for the match |
Methods inherited from java.lang.Object
Constructor Details
ExceptionEntry
public ExceptionEntry()
Creates an instance of ExceptionEntry class.
Method Details
exceptionManagedRuleSets
public List
Get the exceptionManagedRuleSets property: The managed rule sets that are associated with the exception.
Returns:
fromJson
public static ExceptionEntry fromJson(JsonReader jsonReader)
Reads an instance of ExceptionEntry from the JsonReader.
Parameters:
Returns:
Throws:
matchVariable
public ExceptionEntryMatchVariable matchVariable()
Get the matchVariable property: The variable on which we evaluate the exception condition.
Returns:
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:
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:
toJson
validate
public void validate()
Validates the instance.
valueMatchOperator
public ExceptionEntryValueMatchOperator valueMatchOperator()
Get the valueMatchOperator property: Operates on the allowed values for the matchVariable.
Returns:
values
public List
Get the values property: Allowed values for the matchVariable.
Returns:
withExceptionManagedRuleSets
public ExceptionEntry withExceptionManagedRuleSets(List
Set the exceptionManagedRuleSets property: The managed rule sets that are associated with the exception.
Parameters:
Returns:
withMatchVariable
public ExceptionEntry withMatchVariable(ExceptionEntryMatchVariable matchVariable)
Set the matchVariable property: The variable on which we evaluate the exception condition.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withValueMatchOperator
public ExceptionEntry withValueMatchOperator(ExceptionEntryValueMatchOperator valueMatchOperator)
Set the valueMatchOperator property: Operates on the allowed values for the matchVariable.
Parameters:
Returns:
withValues
public ExceptionEntry withValues(List
Set the values property: Allowed values for the matchVariable.
Parameters:
Returns:
Applies to
Azure SDK for Java