Class ForwardingConfiguration

java.lang.Object
com.azure.resourcemanager.frontdoor.models.RouteConfiguration
com.azure.resourcemanager.frontdoor.models.ForwardingConfiguration

public final class ForwardingConfiguration extends RouteConfiguration
Describes Forwarding Route.
  • Constructor Details

    • ForwardingConfiguration

      public ForwardingConfiguration()
      Creates an instance of ForwardingConfiguration class.
  • Method Details

    • customForwardingPath

      public String 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

      public ForwardingConfiguration withCustomForwardingPath(String customForwardingPath)
      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

      public FrontDoorForwardingProtocol 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

      public CacheConfiguration cacheConfiguration()
      Get the cacheConfiguration property: The caching configuration associated with this rule.
      Returns:
      the cacheConfiguration value.
    • withCacheConfiguration

      public ForwardingConfiguration withCacheConfiguration(CacheConfiguration cacheConfiguration)
      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

      public ForwardingConfiguration withBackendPool(com.azure.core.management.SubResource backendPool)
      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 class RouteConfiguration
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.