Class AfdRouteCacheConfiguration
java.lang.Object
com.azure.resourcemanager.cdn.models.AfdRouteCacheConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdRouteCacheConfiguration>
public final class AfdRouteCacheConfiguration
extends Object
implements com.azure.json.JsonSerializable<AfdRouteCacheConfiguration>
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AfdRouteCacheConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the compressionSettings property: compression settings.static AfdRouteCacheConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdRouteCacheConfiguration from the JsonReader.Get the queryParameters property: query parameters to include or exclude (comma separated).Get the queryStringCachingBehavior property: Defines how Frontdoor caches requests that include query strings.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCompressionSettings(CompressionSettings compressionSettings) Set the compressionSettings property: compression settings.withQueryParameters(String queryParameters) Set the queryParameters property: query parameters to include or exclude (comma separated).withQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior) Set the queryStringCachingBehavior property: Defines how Frontdoor caches requests that include query strings.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AfdRouteCacheConfiguration
public AfdRouteCacheConfiguration()Creates an instance of AfdRouteCacheConfiguration class.
-
-
Method Details
-
queryStringCachingBehavior
Get the queryStringCachingBehavior property: Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.- Returns:
- the queryStringCachingBehavior value.
-
withQueryStringCachingBehavior
public AfdRouteCacheConfiguration withQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior) Set the queryStringCachingBehavior property: Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings.- Parameters:
queryStringCachingBehavior- the queryStringCachingBehavior value to set.- Returns:
- the AfdRouteCacheConfiguration 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 AfdRouteCacheConfiguration object itself.
-
compressionSettings
Get the compressionSettings property: compression settings.- Returns:
- the compressionSettings value.
-
withCompressionSettings
Set the compressionSettings property: compression settings.- Parameters:
compressionSettings- the compressionSettings value to set.- Returns:
- the AfdRouteCacheConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdRouteCacheConfiguration>- Throws:
IOException
-
fromJson
public static AfdRouteCacheConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdRouteCacheConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdRouteCacheConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AfdRouteCacheConfiguration.
-