public final class CachePolicyCacheKeyPolicy
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CachePolicyCacheKeyPolicy() |
| Modifier and Type | Method and Description |
|---|---|
CachePolicyCacheKeyPolicy |
clone() |
List<String> |
getExcludedQueryParameters()
Names of query string parameters to exclude in cache keys.
|
List<String> |
getIncludedCookieNames()
Allows HTTP cookies (by name) to be used in the cache key.
|
List<String> |
getIncludedHeaderNames()
Allows HTTP request headers (by name) to be used in the cache key.
|
List<String> |
getIncludedQueryParameters()
Names of query string parameters to include in cache keys.
|
Boolean |
getIncludeHost()
If true, requests to different hosts will be cached separately.
|
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
`includedQueryParameters` and `excludedQueryParameters`.
|
CachePolicyCacheKeyPolicy |
set(String fieldName,
Object value) |
CachePolicyCacheKeyPolicy |
setExcludedQueryParameters(List<String> excludedQueryParameters)
Names of query string parameters to exclude in cache keys.
|
CachePolicyCacheKeyPolicy |
setIncludedCookieNames(List<String> includedCookieNames)
Allows HTTP cookies (by name) to be used in the cache key.
|
CachePolicyCacheKeyPolicy |
setIncludedHeaderNames(List<String> includedHeaderNames)
Allows HTTP request headers (by name) to be used in the cache key.
|
CachePolicyCacheKeyPolicy |
setIncludedQueryParameters(List<String> includedQueryParameters)
Names of query string parameters to include in cache keys.
|
CachePolicyCacheKeyPolicy |
setIncludeHost(Boolean includeHost)
If true, requests to different hosts will be cached separately.
|
CachePolicyCacheKeyPolicy |
setIncludeProtocol(Boolean includeProtocol)
If true, http and https requests will be cached separately.
|
CachePolicyCacheKeyPolicy |
setIncludeQueryString(Boolean includeQueryString)
If true, include query string parameters in the cache key according to
`includedQueryParameters` and `excludedQueryParameters`.
|
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 List<String> getExcludedQueryParameters()
null for nonepublic CachePolicyCacheKeyPolicy setExcludedQueryParameters(List<String> excludedQueryParameters)
excludedQueryParameters - excludedQueryParameters or null for nonepublic Boolean getIncludeHost()
null for nonepublic CachePolicyCacheKeyPolicy setIncludeHost(Boolean includeHost)
includeHost - includeHost or null for nonepublic Boolean getIncludeProtocol()
null for nonepublic CachePolicyCacheKeyPolicy setIncludeProtocol(Boolean includeProtocol)
includeProtocol - includeProtocol or null for nonepublic Boolean getIncludeQueryString()
null for nonepublic CachePolicyCacheKeyPolicy setIncludeQueryString(Boolean includeQueryString)
includeQueryString - includeQueryString or null for nonepublic List<String> getIncludedCookieNames()
null for nonepublic CachePolicyCacheKeyPolicy setIncludedCookieNames(List<String> includedCookieNames)
includedCookieNames - includedCookieNames or null for nonepublic List<String> getIncludedHeaderNames()
null for nonepublic CachePolicyCacheKeyPolicy setIncludedHeaderNames(List<String> includedHeaderNames)
includedHeaderNames - includedHeaderNames or null for nonepublic List<String> getIncludedQueryParameters()
null for nonepublic CachePolicyCacheKeyPolicy setIncludedQueryParameters(List<String> includedQueryParameters)
includedQueryParameters - includedQueryParameters or null for nonepublic CachePolicyCacheKeyPolicy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic CachePolicyCacheKeyPolicy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.