Class RoutingRule

java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.frontdoor.models.RoutingRule

public final class RoutingRule extends com.azure.core.management.SubResource
A routing rule represents a specification for traffic to treat and where to send it, along with health probe information.
  • Constructor Details

    • RoutingRule

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

    • name

      public String name()
      Get the name property: Resource name.
      Returns:
      the name value.
    • withName

      public RoutingRule withName(String name)
      Set the name property: Resource name.
      Parameters:
      name - the name value to set.
      Returns:
      the RoutingRule object itself.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • withId

      public RoutingRule withId(String id)
      Overrides:
      withId in class com.azure.core.management.SubResource
    • resourceState

      public FrontDoorResourceState resourceState()
      Get the resourceState property: Resource status of the Front Door or Front Door SubResource.

      Resource status.

      Returns:
      the resourceState value.
    • frontendEndpoints

      public List<com.azure.core.management.SubResource> frontendEndpoints()
      Get the frontendEndpoints property: Frontend endpoints associated with this rule.
      Returns:
      the frontendEndpoints value.
    • withFrontendEndpoints

      public RoutingRule withFrontendEndpoints(List<com.azure.core.management.SubResource> frontendEndpoints)
      Set the frontendEndpoints property: Frontend endpoints associated with this rule.
      Parameters:
      frontendEndpoints - the frontendEndpoints value to set.
      Returns:
      the RoutingRule object itself.
    • acceptedProtocols

      public List<FrontDoorProtocol> acceptedProtocols()
      Get the acceptedProtocols property: Protocol schemes to match for this rule.
      Returns:
      the acceptedProtocols value.
    • withAcceptedProtocols

      public RoutingRule withAcceptedProtocols(List<FrontDoorProtocol> acceptedProtocols)
      Set the acceptedProtocols property: Protocol schemes to match for this rule.
      Parameters:
      acceptedProtocols - the acceptedProtocols value to set.
      Returns:
      the RoutingRule object itself.
    • patternsToMatch

      public List<String> patternsToMatch()
      Get the patternsToMatch property: The route patterns of the rule.
      Returns:
      the patternsToMatch value.
    • withPatternsToMatch

      public RoutingRule withPatternsToMatch(List<String> patternsToMatch)
      Set the patternsToMatch property: The route patterns of the rule.
      Parameters:
      patternsToMatch - the patternsToMatch value to set.
      Returns:
      the RoutingRule object itself.
    • enabledState

      public RoutingRuleEnabledState enabledState()
      Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
      Returns:
      the enabledState value.
    • withEnabledState

      public RoutingRule withEnabledState(RoutingRuleEnabledState enabledState)
      Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
      Parameters:
      enabledState - the enabledState value to set.
      Returns:
      the RoutingRule object itself.
    • routeConfiguration

      public RouteConfiguration routeConfiguration()
      Get the routeConfiguration property: A reference to the routing configuration.
      Returns:
      the routeConfiguration value.
    • withRouteConfiguration

      public RoutingRule withRouteConfiguration(RouteConfiguration routeConfiguration)
      Set the routeConfiguration property: A reference to the routing configuration.
      Parameters:
      routeConfiguration - the routeConfiguration value to set.
      Returns:
      the RoutingRule object itself.
    • rulesEngine

      public com.azure.core.management.SubResource rulesEngine()
      Get the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.
      Returns:
      the rulesEngine value.
    • withRulesEngine

      public RoutingRule withRulesEngine(com.azure.core.management.SubResource rulesEngine)
      Set the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.
      Parameters:
      rulesEngine - the rulesEngine value to set.
      Returns:
      the RoutingRule object itself.
    • webApplicationFirewallPolicyLink

      public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink()
      Get the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).
      Returns:
      the webApplicationFirewallPolicyLink value.
    • withWebApplicationFirewallPolicyLink

      public RoutingRule withWebApplicationFirewallPolicyLink(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
      Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).
      Parameters:
      webApplicationFirewallPolicyLink - the webApplicationFirewallPolicyLink value to set.
      Returns:
      the RoutingRule object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.