RoutingRule Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. frontdoor. models. RoutingRule
- com.
- com.
public final class RoutingRule
extends SubResource
A routing rule represents a specification for traffic to treat and where to send it, along with health probe information.
Constructor Summary
Constructor | Description |
---|---|
RoutingRule() |
Creates an instance of Routing |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Front |
acceptedProtocols()
Get the accepted |
Routing |
enabledState()
Get the enabled |
List<Sub |
frontendEndpoints()
Get the frontend |
String |
name()
Get the name property: Resource name. |
List<String> |
patternsToMatch()
Get the patterns |
Front |
resourceState()
Get the resource |
Route |
routeConfiguration()
Get the route |
Sub |
rulesEngine()
Get the rules |
String |
type()
Get the type property: Resource type. |
void |
validate()
Validates the instance. |
Routing |
webApplicationFirewallPolicyLink()
Get the web |
Routing |
withAcceptedProtocols(List<FrontDoorProtocol> acceptedProtocols)
Set the accepted |
Routing |
withEnabledState(RoutingRuleEnabledState enabledState)
Set the enabled |
Routing |
withFrontendEndpoints(List<SubResource> frontendEndpoints)
Set the frontend |
Routing |
withId(String id) |
Routing |
withName(String name)
Set the name property: Resource name. |
Routing |
withPatternsToMatch(List<String> patternsToMatch)
Set the patterns |
Routing |
withRouteConfiguration(RouteConfiguration routeConfiguration)
Set the route |
Routing |
withRulesEngine(SubResource rulesEngine)
Set the rules |
Routing |
withWebApplicationFirewallPolicyLink(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set the web |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
RoutingRule
public RoutingRule()
Creates an instance of RoutingRule class.
Method Details
acceptedProtocols
public List
Get the acceptedProtocols property: Protocol schemes to match for this rule.
Returns:
enabledState
public RoutingRuleEnabledState enabledState()
Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
Returns:
frontendEndpoints
public List
Get the frontendEndpoints property: Frontend endpoints associated with this rule.
Returns:
name
public String name()
Get the name property: Resource name.
Returns:
patternsToMatch
public List
Get the patternsToMatch property: The route patterns of the rule.
Returns:
resourceState
public FrontDoorResourceState resourceState()
Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
Resource status.
Returns:
routeConfiguration
public RouteConfiguration routeConfiguration()
Get the routeConfiguration property: A reference to the routing configuration.
Returns:
rulesEngine
public SubResource rulesEngine()
Get the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.
Returns:
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
webApplicationFirewallPolicyLink
public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink()
Get the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).
Returns:
withAcceptedProtocols
public RoutingRule withAcceptedProtocols(List
Set the acceptedProtocols property: Protocol schemes to match for this rule.
Parameters:
Returns:
withEnabledState
public RoutingRule withEnabledState(RoutingRuleEnabledState enabledState)
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
Parameters:
Returns:
withFrontendEndpoints
public RoutingRule withFrontendEndpoints(List
Set the frontendEndpoints property: Frontend endpoints associated with this rule.
Parameters:
Returns:
withId
public RoutingRule withId(String id)
Overrides:
RoutingRule.withId(String id)Parameters:
withName
public RoutingRule withName(String name)
Set the name property: Resource name.
Parameters:
Returns:
withPatternsToMatch
public RoutingRule withPatternsToMatch(List
Set the patternsToMatch property: The route patterns of the rule.
Parameters:
Returns:
withRouteConfiguration
public RoutingRule withRouteConfiguration(RouteConfiguration routeConfiguration)
Set the routeConfiguration property: A reference to the routing configuration.
Parameters:
Returns:
withRulesEngine
public RoutingRule withRulesEngine(SubResource rulesEngine)
Set the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.
Parameters:
Returns:
withWebApplicationFirewallPolicyLink
public RoutingRule withWebApplicationFirewallPolicyLink(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for