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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the acceptedProtocols property: Protocol schemes to match for this rule.Get the enabledState property: Whether to enable use of this rule.List<com.azure.core.management.SubResource>
Get the frontendEndpoints property: Frontend endpoints associated with this rule.name()
Get the name property: Resource name.Get the patternsToMatch property: The route patterns of the rule.Get the resourceState property: Resource status of the Front Door or Front Door SubResource.Get the routeConfiguration property: A reference to the routing configuration.com.azure.core.management.SubResource
Get the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.type()
Get the type property: Resource type.void
validate()
Validates the instance.Get the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).withAcceptedProtocols
(List<FrontDoorProtocol> acceptedProtocols) Set the acceptedProtocols property: Protocol schemes to match for this rule.withEnabledState
(RoutingRuleEnabledState enabledState) Set the enabledState property: Whether to enable use of this rule.withFrontendEndpoints
(List<com.azure.core.management.SubResource> frontendEndpoints) Set the frontendEndpoints property: Frontend endpoints associated with this rule.Set the name property: Resource name.withPatternsToMatch
(List<String> patternsToMatch) Set the patternsToMatch property: The route patterns of the rule.withRouteConfiguration
(RouteConfiguration routeConfiguration) Set the routeConfiguration property: A reference to the routing configuration.withRulesEngine
(com.azure.core.management.SubResource rulesEngine) Set the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.withWebApplicationFirewallPolicyLink
(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink) Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).Methods inherited from class com.azure.core.management.SubResource
id
-
Constructor Details
-
RoutingRule
public RoutingRule()Creates an instance of RoutingRule class.
-
-
Method Details
-
name
Get the name property: Resource name.- Returns:
- the name value.
-
withName
Set the name property: Resource name.- Parameters:
name
- the name value to set.- Returns:
- the RoutingRule object itself.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
withId
- Overrides:
withId
in classcom.azure.core.management.SubResource
-
resourceState
Get the resourceState property: Resource status of the Front Door or Front Door SubResource.Resource status.
- Returns:
- the resourceState value.
-
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
Get the acceptedProtocols property: Protocol schemes to match for this rule.- Returns:
- the acceptedProtocols value.
-
withAcceptedProtocols
Set the acceptedProtocols property: Protocol schemes to match for this rule.- Parameters:
acceptedProtocols
- the acceptedProtocols value to set.- Returns:
- the RoutingRule object itself.
-
patternsToMatch
Get the patternsToMatch property: The route patterns of the rule.- Returns:
- the patternsToMatch value.
-
withPatternsToMatch
Set the patternsToMatch property: The route patterns of the rule.- Parameters:
patternsToMatch
- the patternsToMatch value to set.- Returns:
- the RoutingRule object itself.
-
enabledState
Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Returns:
- the enabledState value.
-
withEnabledState
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
Get the routeConfiguration property: A reference to the routing configuration.- Returns:
- the routeConfiguration value.
-
withRouteConfiguration
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
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.
-