Class RouteMapRule

java.lang.Object
com.azure.resourcemanager.network.models.RouteMapRule

public final class RouteMapRule extends Object
A RouteMap Rule.
  • Constructor Details

    • RouteMapRule

      public RouteMapRule()
      Creates an instance of RouteMapRule class.
  • Method Details

    • name

      public String name()
      Get the name property: The unique name for the rule.
      Returns:
      the name value.
    • withName

      public RouteMapRule withName(String name)
      Set the name property: The unique name for the rule.
      Parameters:
      name - the name value to set.
      Returns:
      the RouteMapRule object itself.
    • matchCriteria

      public List<Criterion> matchCriteria()
      Get the matchCriteria property: List of matching criterion which will be applied to traffic.
      Returns:
      the matchCriteria value.
    • withMatchCriteria

      public RouteMapRule withMatchCriteria(List<Criterion> matchCriteria)
      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

      public List<Action> actions()
      Get the actions property: List of actions which will be applied on a match.
      Returns:
      the actions value.
    • withActions

      public RouteMapRule withActions(List<Action> actions)
      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

      public NextStep 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

      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:
      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.