Class RoutingRuleProperties
java.lang.Object
com.azure.resourcemanager.frontdoor.models.RoutingRuleUpdateParameters
com.azure.resourcemanager.frontdoor.fluent.models.RoutingRuleProperties
The JSON object that contains the properties required to create a routing rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the resourceState property: Resource status of the Front Door or Front Door SubResource.voidvalidate()Validates the instance.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.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.resourcemanager.frontdoor.models.RoutingRuleUpdateParameters
acceptedProtocols, enabledState, frontendEndpoints, patternsToMatch, routeConfiguration, rulesEngine, webApplicationFirewallPolicyLink
-
Constructor Details
-
RoutingRuleProperties
public RoutingRuleProperties()Creates an instance of RoutingRuleProperties class.
-
-
Method Details
-
resourceState
Get the resourceState property: Resource status of the Front Door or Front Door SubResource.Resource status.
- Returns:
- the resourceState value.
-
withFrontendEndpoints
public RoutingRuleProperties withFrontendEndpoints(List<com.azure.core.management.SubResource> frontendEndpoints) Set the frontendEndpoints property: Frontend endpoints associated with this rule.- Overrides:
withFrontendEndpointsin classRoutingRuleUpdateParameters- Parameters:
frontendEndpoints- the frontendEndpoints value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
withAcceptedProtocols
Set the acceptedProtocols property: Protocol schemes to match for this rule.- Overrides:
withAcceptedProtocolsin classRoutingRuleUpdateParameters- Parameters:
acceptedProtocols- the acceptedProtocols value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
withPatternsToMatch
Set the patternsToMatch property: The route patterns of the rule.- Overrides:
withPatternsToMatchin classRoutingRuleUpdateParameters- Parameters:
patternsToMatch- the patternsToMatch value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
withEnabledState
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Overrides:
withEnabledStatein classRoutingRuleUpdateParameters- Parameters:
enabledState- the enabledState value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
withRouteConfiguration
Set the routeConfiguration property: A reference to the routing configuration.- Overrides:
withRouteConfigurationin classRoutingRuleUpdateParameters- Parameters:
routeConfiguration- the routeConfiguration value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
withRulesEngine
Set the rulesEngine property: A reference to a specific Rules Engine Configuration to apply to this route.- Overrides:
withRulesEnginein classRoutingRuleUpdateParameters- Parameters:
rulesEngine- the rulesEngine value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
withWebApplicationFirewallPolicyLink
public RoutingRuleProperties withWebApplicationFirewallPolicyLink(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink) Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for each routing rule (if applicable).- Overrides:
withWebApplicationFirewallPolicyLinkin classRoutingRuleUpdateParameters- Parameters:
webApplicationFirewallPolicyLink- the webApplicationFirewallPolicyLink value to set.- Returns:
- the RoutingRuleUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRoutingRuleUpdateParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-