public final class CacheKeyPolicy extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| CacheKeyPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| CacheKeyPolicy | clone() | 
| Boolean | getIncludeHost()If true, requests to different hosts will be cached separately. | 
| List<String> | getIncludeHttpHeaders()Allows HTTP request headers (by name) to be used in the cache key. | 
| List<String> | getIncludeNamedCookies()Allows HTTP cookies (by name) to be used in the cache key. | 
| Boolean | getIncludeProtocol()If true, http and https requests will be cached separately. | 
| Boolean | getIncludeQueryString()If true, include query string parameters in the cache key according to query_string_whitelist
 and query_string_blacklist. | 
| List<String> | getQueryStringBlacklist()Names of query string parameters to exclude in cache keys. | 
| List<String> | getQueryStringWhitelist()Names of query string parameters to include in cache keys. | 
| CacheKeyPolicy | set(String fieldName,
   Object value) | 
| CacheKeyPolicy | setIncludeHost(Boolean includeHost)If true, requests to different hosts will be cached separately. | 
| CacheKeyPolicy | setIncludeHttpHeaders(List<String> includeHttpHeaders)Allows HTTP request headers (by name) to be used in the cache key. | 
| CacheKeyPolicy | setIncludeNamedCookies(List<String> includeNamedCookies)Allows HTTP cookies (by name) to be used in the cache key. | 
| CacheKeyPolicy | setIncludeProtocol(Boolean includeProtocol)If true, http and https requests will be cached separately. | 
| CacheKeyPolicy | setIncludeQueryString(Boolean includeQueryString)If true, include query string parameters in the cache key according to query_string_whitelist
 and query_string_blacklist. | 
| CacheKeyPolicy | setQueryStringBlacklist(List<String> queryStringBlacklist)Names of query string parameters to exclude in cache keys. | 
| CacheKeyPolicy | setQueryStringWhitelist(List<String> queryStringWhitelist)Names of query string parameters to include in cache keys. | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getIncludeHost()
null for nonepublic CacheKeyPolicy setIncludeHost(Boolean includeHost)
includeHost - includeHost or null for nonepublic List<String> getIncludeHttpHeaders()
null for nonepublic CacheKeyPolicy setIncludeHttpHeaders(List<String> includeHttpHeaders)
includeHttpHeaders - includeHttpHeaders or null for nonepublic List<String> getIncludeNamedCookies()
null for nonepublic CacheKeyPolicy setIncludeNamedCookies(List<String> includeNamedCookies)
includeNamedCookies - includeNamedCookies or null for nonepublic Boolean getIncludeProtocol()
null for nonepublic CacheKeyPolicy setIncludeProtocol(Boolean includeProtocol)
includeProtocol - includeProtocol or null for nonepublic Boolean getIncludeQueryString()
null for nonepublic CacheKeyPolicy setIncludeQueryString(Boolean includeQueryString)
includeQueryString - includeQueryString or null for nonepublic List<String> getQueryStringBlacklist()
null for nonepublic CacheKeyPolicy setQueryStringBlacklist(List<String> queryStringBlacklist)
queryStringBlacklist - queryStringBlacklist or null for nonepublic List<String> getQueryStringWhitelist()
null for nonepublic CacheKeyPolicy setQueryStringWhitelist(List<String> queryStringWhitelist)
queryStringWhitelist - queryStringWhitelist or null for nonepublic CacheKeyPolicy set(String fieldName, Object value)
set in class GenericJsonpublic CacheKeyPolicy clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.