Class ForwardingConfiguration
java.lang.Object
com.azure.resourcemanager.frontdoor.models.RouteConfiguration
com.azure.resourcemanager.frontdoor.models.ForwardingConfiguration
Describes Forwarding Route.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ForwardingConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResource
Get the backendPool property: A reference to the BackendPool which this rule routes to.Get the cacheConfiguration property: The caching configuration associated with this rule.Get the customForwardingPath property: A custom path used to rewrite resource paths matched by this rule.Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.void
validate()
Validates the instance.withBackendPool
(com.azure.core.management.SubResource backendPool) Set the backendPool property: A reference to the BackendPool which this rule routes to.withCacheConfiguration
(CacheConfiguration cacheConfiguration) Set the cacheConfiguration property: The caching configuration associated with this rule.withCustomForwardingPath
(String customForwardingPath) Set the customForwardingPath property: A custom path used to rewrite resource paths matched by this rule.withForwardingProtocol
(FrontDoorForwardingProtocol forwardingProtocol) Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.
-
Constructor Details
-
ForwardingConfiguration
public ForwardingConfiguration()Creates an instance of ForwardingConfiguration class.
-
-
Method Details
-
customForwardingPath
Get the customForwardingPath property: A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.- Returns:
- the customForwardingPath value.
-
withCustomForwardingPath
Set the customForwardingPath property: A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.- Parameters:
customForwardingPath
- the customForwardingPath value to set.- Returns:
- the ForwardingConfiguration object itself.
-
forwardingProtocol
Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Returns:
- the forwardingProtocol value.
-
withForwardingProtocol
public ForwardingConfiguration withForwardingProtocol(FrontDoorForwardingProtocol forwardingProtocol) Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Parameters:
forwardingProtocol
- the forwardingProtocol value to set.- Returns:
- the ForwardingConfiguration object itself.
-
cacheConfiguration
Get the cacheConfiguration property: The caching configuration associated with this rule.- Returns:
- the cacheConfiguration value.
-
withCacheConfiguration
Set the cacheConfiguration property: The caching configuration associated with this rule.- Parameters:
cacheConfiguration
- the cacheConfiguration value to set.- Returns:
- the ForwardingConfiguration object itself.
-
backendPool
public com.azure.core.management.SubResource backendPool()Get the backendPool property: A reference to the BackendPool which this rule routes to.- Returns:
- the backendPool value.
-
withBackendPool
Set the backendPool property: A reference to the BackendPool which this rule routes to.- Parameters:
backendPool
- the backendPool value to set.- Returns:
- the ForwardingConfiguration object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRouteConfiguration
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-