public final class CacheKeyPolicy
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.Flags
Constructor and Description |
---|
CacheKeyPolicy() |
Modifier and Type | Method and Description |
---|---|
CacheKeyPolicy |
clone() |
java.lang.Boolean |
getIncludeHost()
If true, requests to different hosts will be cached separately.
|
java.lang.Boolean |
getIncludeProtocol()
If true, http and https requests will be cached separately.
|
java.lang.Boolean |
getIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist
and query_string_blacklist.
|
java.util.List<java.lang.String> |
getQueryStringBlacklist()
Names of query string parameters to exclude in cache keys.
|
java.util.List<java.lang.String> |
getQueryStringWhitelist()
Names of query string parameters to include in cache keys.
|
CacheKeyPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
CacheKeyPolicy |
setIncludeHost(java.lang.Boolean includeHost)
If true, requests to different hosts will be cached separately.
|
CacheKeyPolicy |
setIncludeProtocol(java.lang.Boolean includeProtocol)
If true, http and https requests will be cached separately.
|
CacheKeyPolicy |
setIncludeQueryString(java.lang.Boolean includeQueryString)
If true, include query string parameters in the cache key according to query_string_whitelist
and query_string_blacklist.
|
CacheKeyPolicy |
setQueryStringBlacklist(java.util.List<java.lang.String> queryStringBlacklist)
Names of query string parameters to exclude in cache keys.
|
CacheKeyPolicy |
setQueryStringWhitelist(java.util.List<java.lang.String> queryStringWhitelist)
Names of query string parameters to include in cache keys.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Boolean getIncludeHost()
null
for nonepublic CacheKeyPolicy setIncludeHost(java.lang.Boolean includeHost)
includeHost
- includeHost or null
for nonepublic java.lang.Boolean getIncludeProtocol()
null
for nonepublic CacheKeyPolicy setIncludeProtocol(java.lang.Boolean includeProtocol)
includeProtocol
- includeProtocol or null
for nonepublic java.lang.Boolean getIncludeQueryString()
null
for nonepublic CacheKeyPolicy setIncludeQueryString(java.lang.Boolean includeQueryString)
includeQueryString
- includeQueryString or null
for nonepublic java.util.List<java.lang.String> getQueryStringBlacklist()
null
for nonepublic CacheKeyPolicy setQueryStringBlacklist(java.util.List<java.lang.String> queryStringBlacklist)
queryStringBlacklist
- queryStringBlacklist or null
for nonepublic java.util.List<java.lang.String> getQueryStringWhitelist()
null
for nonepublic CacheKeyPolicy setQueryStringWhitelist(java.util.List<java.lang.String> queryStringWhitelist)
queryStringWhitelist
- queryStringWhitelist or null
for nonepublic CacheKeyPolicy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CacheKeyPolicy clone()
clone
in class com.google.api.client.json.GenericJson