target.apidocs.com.google.api.services.compute.model.BackendBucketCdnPolicyNegativeCachingPolicy.html Maven / Gradle / Ivy
BackendBucketCdnPolicyNegativeCachingPolicy (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class BackendBucketCdnPolicyNegativeCachingPolicy
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.BackendBucketCdnPolicyNegativeCachingPolicy
-
public final class BackendBucketCdnPolicyNegativeCachingPolicy
extends GenericJson
Specify CDN TTLs for response error codes.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
BackendBucketCdnPolicyNegativeCachingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
BackendBucketCdnPolicyNegativeCachingPolicy
clone()
Integer
getCode()
The HTTP status code to define a TTL against.
Integer
getTtl()
The TTL (in seconds) for which to cache responses with the corresponding status code.
BackendBucketCdnPolicyNegativeCachingPolicy
set(String fieldName,
Object value)
BackendBucketCdnPolicyNegativeCachingPolicy
setCode(Integer code)
The HTTP status code to define a TTL against.
BackendBucketCdnPolicyNegativeCachingPolicy
setTtl(Integer ttl)
The TTL (in seconds) for which to cache responses with the corresponding status code.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
BackendBucketCdnPolicyNegativeCachingPolicy
public BackendBucketCdnPolicyNegativeCachingPolicy()
-
Method Detail
-
getCode
public Integer getCode()
The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308,
404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status
code more than once.
- Returns:
- value or
null
for none
-
setCode
public BackendBucketCdnPolicyNegativeCachingPolicy setCode(Integer code)
The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308,
404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status
code more than once.
- Parameters:
code
- code or null
for none
-
getTtl
public Integer getTtl()
The TTL (in seconds) for which to cache responses with the corresponding status code. The
maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be
evicted from the cache before the defined TTL.
- Returns:
- value or
null
for none
-
setTtl
public BackendBucketCdnPolicyNegativeCachingPolicy setTtl(Integer ttl)
The TTL (in seconds) for which to cache responses with the corresponding status code. The
maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be
evicted from the cache before the defined TTL.
- Parameters:
ttl
- ttl or null
for none
-
set
public BackendBucketCdnPolicyNegativeCachingPolicy set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public BackendBucketCdnPolicyNegativeCachingPolicy clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy