public final class BackendBucketCdnPolicy 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 | 
|---|
BackendBucketCdnPolicy()  | 
| Modifier and Type | Method and Description | 
|---|---|
BackendBucketCdnPolicy | 
clone()  | 
List<BackendBucketCdnPolicyBypassCacheOnRequestHeader> | 
getBypassCacheOnRequestHeaders()
Bypass the cache when the specified request headers are matched - e.g. 
 | 
String | 
getCacheMode()
Specifies the cache setting for all responses from this backend. 
 | 
Integer | 
getClientTtl()
Specifies a separate client (e.g. 
 | 
Integer | 
getDefaultTtl()
Specifies the default TTL for cached content served by this origin for responses that do not
 have an existing valid TTL (max-age or s-max-age). 
 | 
Integer | 
getMaxTtl()
Specifies the maximum allowed TTL for cached content served by this origin. 
 | 
Boolean | 
getNegativeCaching()
Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching
 for common errors or redirects. 
 | 
List<BackendBucketCdnPolicyNegativeCachingPolicy> | 
getNegativeCachingPolicy()
Sets a cache TTL for the specified HTTP status code. 
 | 
Boolean | 
getRequestCoalescing()
If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number
 of requests to the origin. 
 | 
Integer | 
getServeWhileStale()
Serve existing content from the cache (if available) when revalidating content with the origin,
 or when an error is encountered when refreshing the cache. 
 | 
Long | 
getSignedUrlCacheMaxAgeSec()
Maximum number of seconds the response to a signed URL request will be considered fresh. 
 | 
List<String> | 
getSignedUrlKeyNames()
[Output Only] Names of the keys for signing request URLs. 
 | 
BackendBucketCdnPolicy | 
set(String fieldName,
   Object value)  | 
BackendBucketCdnPolicy | 
setBypassCacheOnRequestHeaders(List<BackendBucketCdnPolicyBypassCacheOnRequestHeader> bypassCacheOnRequestHeaders)
Bypass the cache when the specified request headers are matched - e.g. 
 | 
BackendBucketCdnPolicy | 
setCacheMode(String cacheMode)
Specifies the cache setting for all responses from this backend. 
 | 
BackendBucketCdnPolicy | 
setClientTtl(Integer clientTtl)
Specifies a separate client (e.g. 
 | 
BackendBucketCdnPolicy | 
setDefaultTtl(Integer defaultTtl)
Specifies the default TTL for cached content served by this origin for responses that do not
 have an existing valid TTL (max-age or s-max-age). 
 | 
BackendBucketCdnPolicy | 
setMaxTtl(Integer maxTtl)
Specifies the maximum allowed TTL for cached content served by this origin. 
 | 
BackendBucketCdnPolicy | 
setNegativeCaching(Boolean negativeCaching)
Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching
 for common errors or redirects. 
 | 
BackendBucketCdnPolicy | 
setNegativeCachingPolicy(List<BackendBucketCdnPolicyNegativeCachingPolicy> negativeCachingPolicy)
Sets a cache TTL for the specified HTTP status code. 
 | 
BackendBucketCdnPolicy | 
setRequestCoalescing(Boolean requestCoalescing)
If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number
 of requests to the origin. 
 | 
BackendBucketCdnPolicy | 
setServeWhileStale(Integer serveWhileStale)
Serve existing content from the cache (if available) when revalidating content with the origin,
 or when an error is encountered when refreshing the cache. 
 | 
BackendBucketCdnPolicy | 
setSignedUrlCacheMaxAgeSec(Long signedUrlCacheMaxAgeSec)
Maximum number of seconds the response to a signed URL request will be considered fresh. 
 | 
BackendBucketCdnPolicy | 
setSignedUrlKeyNames(List<String> signedUrlKeyNames)
[Output Only] Names of the keys for signing request URLs. 
 | 
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<BackendBucketCdnPolicyBypassCacheOnRequestHeader> getBypassCacheOnRequestHeaders()
null for nonepublic BackendBucketCdnPolicy setBypassCacheOnRequestHeaders(List<BackendBucketCdnPolicyBypassCacheOnRequestHeader> bypassCacheOnRequestHeaders)
bypassCacheOnRequestHeaders - bypassCacheOnRequestHeaders or null for nonepublic String getCacheMode()
null for nonepublic BackendBucketCdnPolicy setCacheMode(String cacheMode)
cacheMode - cacheMode or null for nonepublic Integer getClientTtl()
null for nonepublic BackendBucketCdnPolicy setClientTtl(Integer clientTtl)
clientTtl - clientTtl or null for nonepublic Integer getDefaultTtl()
null for nonepublic BackendBucketCdnPolicy setDefaultTtl(Integer defaultTtl)
defaultTtl - defaultTtl or null for nonepublic Integer getMaxTtl()
null for nonepublic BackendBucketCdnPolicy setMaxTtl(Integer maxTtl)
maxTtl - maxTtl or null for nonepublic Boolean getNegativeCaching()
null for nonepublic BackendBucketCdnPolicy setNegativeCaching(Boolean negativeCaching)
negativeCaching - negativeCaching or null for nonepublic List<BackendBucketCdnPolicyNegativeCachingPolicy> getNegativeCachingPolicy()
null for nonepublic BackendBucketCdnPolicy setNegativeCachingPolicy(List<BackendBucketCdnPolicyNegativeCachingPolicy> negativeCachingPolicy)
negativeCachingPolicy - negativeCachingPolicy or null for nonepublic Boolean getRequestCoalescing()
null for nonepublic BackendBucketCdnPolicy setRequestCoalescing(Boolean requestCoalescing)
requestCoalescing - requestCoalescing or null for nonepublic Integer getServeWhileStale()
null for nonepublic BackendBucketCdnPolicy setServeWhileStale(Integer serveWhileStale)
serveWhileStale - serveWhileStale or null for nonepublic Long getSignedUrlCacheMaxAgeSec()
null for nonepublic BackendBucketCdnPolicy setSignedUrlCacheMaxAgeSec(Long signedUrlCacheMaxAgeSec)
signedUrlCacheMaxAgeSec - signedUrlCacheMaxAgeSec or null for nonepublic List<String> getSignedUrlKeyNames()
null for nonepublic BackendBucketCdnPolicy setSignedUrlKeyNames(List<String> signedUrlKeyNames)
signedUrlKeyNames - signedUrlKeyNames or null for nonepublic BackendBucketCdnPolicy set(String fieldName, Object value)
set in class GenericJsonpublic BackendBucketCdnPolicy clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.