RouteMapRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. RouteMapRule
- com.
Implements
public final class RouteMapRule
implements JsonSerializable<RouteMapRule>
A RouteMap Rule.
Constructor Summary
| Constructor | Description |
|---|---|
| RouteMapRule() |
Creates an instance of Route |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<Action> |
actions()
Get the actions property: List of actions which will be applied on a match. |
|
static
Route |
fromJson(JsonReader jsonReader)
Reads an instance of Route |
| List<Criterion> |
matchCriteria()
Get the match |
| String |
name()
Get the name property: The unique name for the rule. |
|
Next |
nextStepIfMatched()
Get the next |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Route |
withActions(List<Action> actions)
Set the actions property: List of actions which will be applied on a match. |
|
Route |
withMatchCriteria(List<Criterion> matchCriteria)
Set the match |
|
Route |
withName(String name)
Set the name property: The unique name for the rule. |
|
Route |
withNextStepIfMatched(NextStep nextStepIfMatched)
Set the next |
Methods inherited from java.lang.Object
Constructor Details
RouteMapRule
public RouteMapRule()
Creates an instance of RouteMapRule class.
Method Details
actions
public List<Action> actions()
Get the actions property: List of actions which will be applied on a match.
Returns:
fromJson
public static RouteMapRule fromJson(JsonReader jsonReader)
Reads an instance of RouteMapRule from the JsonReader.
Parameters:
Returns:
Throws:
matchCriteria
public List<Criterion> matchCriteria()
Get the matchCriteria property: List of matching criterion which will be applied to traffic.
Returns:
name
public String name()
Get the name property: The unique name for the rule.
Returns:
nextStepIfMatched
public NextStep nextStepIfMatched()
Get the nextStepIfMatched property: Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActions
public RouteMapRule withActions(List<Action> actions)
Set the actions property: List of actions which will be applied on a match.
Parameters:
Returns:
withMatchCriteria
public RouteMapRule withMatchCriteria(List<Criterion> matchCriteria)
Set the matchCriteria property: List of matching criterion which will be applied to traffic.
Parameters:
Returns:
withName
public RouteMapRule withName(String name)
Set the name property: The unique name for the rule.
Parameters:
Returns:
withNextStepIfMatched
public RouteMapRule withNextStepIfMatched(NextStep nextStepIfMatched)
Set the nextStepIfMatched property: Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
Parameters:
Returns: