Class CacheConfiguration

java.lang.Object
com.azure.resourcemanager.frontdoor.models.CacheConfiguration

public final class CacheConfiguration extends Object
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
  • Constructor Details

    • CacheConfiguration

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

    • queryParameterStripDirective

      public FrontDoorQuery queryParameterStripDirective()
      Get the queryParameterStripDirective property: Treatment of URL query terms when forming the cache key.
      Returns:
      the queryParameterStripDirective value.
    • withQueryParameterStripDirective

      public CacheConfiguration withQueryParameterStripDirective(FrontDoorQuery queryParameterStripDirective)
      Set the queryParameterStripDirective property: Treatment of URL query terms when forming the cache key.
      Parameters:
      queryParameterStripDirective - the queryParameterStripDirective value to set.
      Returns:
      the CacheConfiguration object itself.
    • queryParameters

      public String queryParameters()
      Get the queryParameters property: query parameters to include or exclude (comma separated).
      Returns:
      the queryParameters value.
    • withQueryParameters

      public CacheConfiguration withQueryParameters(String queryParameters)
      Set the queryParameters property: query parameters to include or exclude (comma separated).
      Parameters:
      queryParameters - the queryParameters value to set.
      Returns:
      the CacheConfiguration object itself.
    • dynamicCompression

      public DynamicCompressionEnabled dynamicCompression()
      Get the dynamicCompression property: Whether to use dynamic compression for cached content.
      Returns:
      the dynamicCompression value.
    • withDynamicCompression

      public CacheConfiguration withDynamicCompression(DynamicCompressionEnabled dynamicCompression)
      Set the dynamicCompression property: Whether to use dynamic compression for cached content.
      Parameters:
      dynamicCompression - the dynamicCompression value to set.
      Returns:
      the CacheConfiguration object itself.
    • cacheDuration

      public Duration cacheDuration()
      Get the cacheDuration property: The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.
      Returns:
      the cacheDuration value.
    • withCacheDuration

      public CacheConfiguration withCacheDuration(Duration cacheDuration)
      Set the cacheDuration property: The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.
      Parameters:
      cacheDuration - the cacheDuration value to set.
      Returns:
      the CacheConfiguration object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.