public final class BackendServiceCdnPolicy 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 | 
|---|
| BackendServiceCdnPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| BackendServiceCdnPolicy | clone() | 
| List<BackendServiceCdnPolicyBypassCacheOnRequestHeader> | getBypassCacheOnRequestHeaders()Bypass the cache when the specified request headers are matched - e.g. | 
| CacheKeyPolicy | getCacheKeyPolicy()The CacheKeyPolicy for this CdnPolicy. | 
| 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<BackendServiceCdnPolicyNegativeCachingPolicy> | 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. | 
| BackendServiceCdnPolicy | set(String fieldName,
   Object value) | 
| BackendServiceCdnPolicy | setBypassCacheOnRequestHeaders(List<BackendServiceCdnPolicyBypassCacheOnRequestHeader> bypassCacheOnRequestHeaders)Bypass the cache when the specified request headers are matched - e.g. | 
| BackendServiceCdnPolicy | setCacheKeyPolicy(CacheKeyPolicy cacheKeyPolicy)The CacheKeyPolicy for this CdnPolicy. | 
| BackendServiceCdnPolicy | setCacheMode(String cacheMode)Specifies the cache setting for all responses from this backend. | 
| BackendServiceCdnPolicy | setClientTtl(Integer clientTtl)Specifies a separate client (e.g. | 
| BackendServiceCdnPolicy | 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). | 
| BackendServiceCdnPolicy | setMaxTtl(Integer maxTtl)Specifies the maximum allowed TTL for cached content served by this origin. | 
| BackendServiceCdnPolicy | 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. | 
| BackendServiceCdnPolicy | setNegativeCachingPolicy(List<BackendServiceCdnPolicyNegativeCachingPolicy> negativeCachingPolicy)Sets a cache TTL for the specified HTTP status code. | 
| BackendServiceCdnPolicy | setRequestCoalescing(Boolean requestCoalescing)If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number
 of requests to the origin. | 
| BackendServiceCdnPolicy | 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. | 
| BackendServiceCdnPolicy | setSignedUrlCacheMaxAgeSec(Long signedUrlCacheMaxAgeSec)Maximum number of seconds the response to a signed URL request will be considered fresh. | 
| BackendServiceCdnPolicy | 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<BackendServiceCdnPolicyBypassCacheOnRequestHeader> getBypassCacheOnRequestHeaders()
null for nonepublic BackendServiceCdnPolicy setBypassCacheOnRequestHeaders(List<BackendServiceCdnPolicyBypassCacheOnRequestHeader> bypassCacheOnRequestHeaders)
bypassCacheOnRequestHeaders - bypassCacheOnRequestHeaders or null for nonepublic CacheKeyPolicy getCacheKeyPolicy()
null for nonepublic BackendServiceCdnPolicy setCacheKeyPolicy(CacheKeyPolicy cacheKeyPolicy)
cacheKeyPolicy - cacheKeyPolicy or null for nonepublic String getCacheMode()
null for nonepublic BackendServiceCdnPolicy setCacheMode(String cacheMode)
cacheMode - cacheMode or null for nonepublic Integer getClientTtl()
null for nonepublic BackendServiceCdnPolicy setClientTtl(Integer clientTtl)
clientTtl - clientTtl or null for nonepublic Integer getDefaultTtl()
null for nonepublic BackendServiceCdnPolicy setDefaultTtl(Integer defaultTtl)
defaultTtl - defaultTtl or null for nonepublic Integer getMaxTtl()
null for nonepublic BackendServiceCdnPolicy setMaxTtl(Integer maxTtl)
maxTtl - maxTtl or null for nonepublic Boolean getNegativeCaching()
null for nonepublic BackendServiceCdnPolicy setNegativeCaching(Boolean negativeCaching)
negativeCaching - negativeCaching or null for nonepublic List<BackendServiceCdnPolicyNegativeCachingPolicy> getNegativeCachingPolicy()
null for nonepublic BackendServiceCdnPolicy setNegativeCachingPolicy(List<BackendServiceCdnPolicyNegativeCachingPolicy> negativeCachingPolicy)
negativeCachingPolicy - negativeCachingPolicy or null for nonepublic Boolean getRequestCoalescing()
null for nonepublic BackendServiceCdnPolicy setRequestCoalescing(Boolean requestCoalescing)
requestCoalescing - requestCoalescing or null for nonepublic Integer getServeWhileStale()
null for nonepublic BackendServiceCdnPolicy setServeWhileStale(Integer serveWhileStale)
serveWhileStale - serveWhileStale or null for nonepublic Long getSignedUrlCacheMaxAgeSec()
null for nonepublic BackendServiceCdnPolicy setSignedUrlCacheMaxAgeSec(Long signedUrlCacheMaxAgeSec)
signedUrlCacheMaxAgeSec - signedUrlCacheMaxAgeSec or null for nonepublic List<String> getSignedUrlKeyNames()
null for nonepublic BackendServiceCdnPolicy setSignedUrlKeyNames(List<String> signedUrlKeyNames)
signedUrlKeyNames - signedUrlKeyNames or null for nonepublic BackendServiceCdnPolicy set(String fieldName, Object value)
set in class GenericJsonpublic BackendServiceCdnPolicy clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.