Class CacheConfiguration
java.lang.Object
com.azure.resourcemanager.frontdoor.models.CacheConfiguration
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the cacheDuration property: The duration for which the content needs to be cached.Get the dynamicCompression property: Whether to use dynamic compression for cached content.Get the queryParameters property: query parameters to include or exclude (comma separated).Get the queryParameterStripDirective property: Treatment of URL query terms when forming the cache key.void
validate()
Validates the instance.withCacheDuration
(Duration cacheDuration) Set the cacheDuration property: The duration for which the content needs to be cached.withDynamicCompression
(DynamicCompressionEnabled dynamicCompression) Set the dynamicCompression property: Whether to use dynamic compression for cached content.withQueryParameters
(String queryParameters) Set the queryParameters property: query parameters to include or exclude (comma separated).withQueryParameterStripDirective
(FrontDoorQuery queryParameterStripDirective) Set the queryParameterStripDirective property: Treatment of URL query terms when forming the cache key.
-
Constructor Details
-
CacheConfiguration
public CacheConfiguration()Creates an instance of CacheConfiguration class.
-
-
Method Details
-
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
Get the queryParameters property: query parameters to include or exclude (comma separated).- Returns:
- the queryParameters value.
-
withQueryParameters
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
Get the dynamicCompression property: Whether to use dynamic compression for cached content.- Returns:
- the dynamicCompression value.
-
withDynamicCompression
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
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
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.
-