Class RouteMapRule
java.lang.Object
com.azure.resourcemanager.network.models.RouteMapRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteMapRule>
public final class RouteMapRule
extends Object
implements com.azure.json.JsonSerializable<RouteMapRule>
A RouteMap Rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: List of actions which will be applied on a match.static RouteMapRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteMapRule from the JsonReader.Get the matchCriteria property: List of matching criterion which will be applied to traffic.name()Get the name property: The unique name for the rule.Get the nextStepIfMatched property: Next step after rule is evaluated.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActions(List<Action> actions) Set the actions property: List of actions which will be applied on a match.withMatchCriteria(List<Criterion> matchCriteria) Set the matchCriteria property: List of matching criterion which will be applied to traffic.Set the name property: The unique name for the rule.withNextStepIfMatched(NextStep nextStepIfMatched) Set the nextStepIfMatched property: Next step after rule is evaluated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RouteMapRule
public RouteMapRule()Creates an instance of RouteMapRule class.
-
-
Method Details
-
name
Get the name property: The unique name for the rule.- Returns:
- the name value.
-
withName
Set the name property: The unique name for the rule.- Parameters:
name- the name value to set.- Returns:
- the RouteMapRule object itself.
-
matchCriteria
Get the matchCriteria property: List of matching criterion which will be applied to traffic.- Returns:
- the matchCriteria value.
-
withMatchCriteria
Set the matchCriteria property: List of matching criterion which will be applied to traffic.- Parameters:
matchCriteria- the matchCriteria value to set.- Returns:
- the RouteMapRule object itself.
-
actions
Get the actions property: List of actions which will be applied on a match.- Returns:
- the actions value.
-
withActions
Set the actions property: List of actions which will be applied on a match.- Parameters:
actions- the actions value to set.- Returns:
- the RouteMapRule object itself.
-
nextStepIfMatched
Get the nextStepIfMatched property: Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.- Returns:
- the nextStepIfMatched value.
-
withNextStepIfMatched
Set the nextStepIfMatched property: Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.- Parameters:
nextStepIfMatched- the nextStepIfMatched value to set.- Returns:
- the RouteMapRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteMapRule>- Throws:
IOException
-
fromJson
Reads an instance of RouteMapRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteMapRule 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 RouteMapRule.
-