RoutingRule Class

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 RoutingRule class.

Method Summary

Modifier and Type Method and Description
List<FrontDoorProtocol> acceptedProtocols()

Get the acceptedProtocols property: Protocol schemes to match for this rule.

RoutingRuleEnabledState enabledState()

Get the enabledState property: Whether to enable use of this rule.

List<SubResource> frontendEndpoints()

Get the frontendEndpoints property: Frontend endpoints associated with this rule.

String name()

Get the name property: Resource name.

List<String> patternsToMatch()

Get the patternsToMatch property: The route patterns of the rule.

FrontDoorResourceState resourceState()

Get the resourceState property: Resource status of the Front Door or Front Door SubResource.

RouteConfiguration routeConfiguration()

Get the routeConfiguration property: A reference to the routing configuration.

SubResource rulesEngine()

Get the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.

String type()

Get the type property: Resource type.

void validate()

Validates the instance.

RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink()

Get the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).

RoutingRule withAcceptedProtocols(List<FrontDoorProtocol> acceptedProtocols)

Set the acceptedProtocols property: Protocol schemes to match for this rule.

RoutingRule withEnabledState(RoutingRuleEnabledState enabledState)

Set the enabledState property: Whether to enable use of this rule.

RoutingRule withFrontendEndpoints(List<SubResource> frontendEndpoints)

Set the frontendEndpoints property: Frontend endpoints associated with this rule.

RoutingRule withId(String id)
RoutingRule withName(String name)

Set the name property: Resource name.

RoutingRule withPatternsToMatch(List<String> patternsToMatch)

Set the patternsToMatch property: The route patterns of the rule.

RoutingRule withRouteConfiguration(RouteConfiguration routeConfiguration)

Set the routeConfiguration property: A reference to the routing configuration.

RoutingRule withRulesEngine(SubResource rulesEngine)

Set the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.

RoutingRule withWebApplicationFirewallPolicyLink(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)

Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).

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 acceptedProtocols()

Get the acceptedProtocols property: Protocol schemes to match for this rule.

Returns:

the acceptedProtocols value.

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.

frontendEndpoints

public List frontendEndpoints()

Get the frontendEndpoints property: Frontend endpoints associated with this rule.

Returns:

the frontendEndpoints value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

patternsToMatch

public List patternsToMatch()

Get the patternsToMatch property: The route patterns of the rule.

Returns:

the patternsToMatch value.

resourceState

public FrontDoorResourceState resourceState()

Get the resourceState property: Resource status of the Front Door or Front Door SubResource.

Resource status.

Returns:

the resourceState value.

routeConfiguration

public RouteConfiguration routeConfiguration()

Get the routeConfiguration property: A reference to the routing configuration.

Returns:

the routeConfiguration value.

rulesEngine

public SubResource rulesEngine()

Get the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.

Returns:

the rulesEngine value.

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

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:

the webApplicationFirewallPolicyLink value.

withAcceptedProtocols

public RoutingRule withAcceptedProtocols(List acceptedProtocols)

Set the acceptedProtocols property: Protocol schemes to match for this rule.

Parameters:

acceptedProtocols - the acceptedProtocols value to set.

Returns:

the RoutingRule object itself.

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.

withFrontendEndpoints

public RoutingRule withFrontendEndpoints(List frontendEndpoints)

Set the frontendEndpoints property: Frontend endpoints associated with this rule.

Parameters:

frontendEndpoints - the frontendEndpoints value to set.

Returns:

the RoutingRule object itself.

withId

public RoutingRule withId(String id)

Overrides:

RoutingRule.withId(String id)

Parameters:

id

withName

public RoutingRule withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the RoutingRule object itself.

withPatternsToMatch

public RoutingRule withPatternsToMatch(List patternsToMatch)

Set the patternsToMatch property: The route patterns of the rule.

Parameters:

patternsToMatch - the patternsToMatch value to set.

Returns:

the RoutingRule object itself.

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.

withRulesEngine

public RoutingRule withRulesEngine(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.

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.

Applies to