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() |
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.
|
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 |
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 |
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 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 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–2020 Google. All rights reserved.