target.apidocs.com.google.api.services.compute.model.BackendServiceCdnPolicyNegativeCachingPolicy.html Maven / Gradle / Ivy
The newest version!
BackendServiceCdnPolicyNegativeCachingPolicy (Compute Engine API v1-rev20250320-2.0.0)
com.google.api.services.compute.model
Class BackendServiceCdnPolicyNegativeCachingPolicy
- 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.BackendServiceCdnPolicyNegativeCachingPolicy
-
public final class BackendServiceCdnPolicyNegativeCachingPolicy
extends com.google.api.client.json.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
com.google.api.client.util.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
BackendServiceCdnPolicyNegativeCachingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
BackendServiceCdnPolicyNegativeCachingPolicy
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.
BackendServiceCdnPolicyNegativeCachingPolicy
set(String fieldName,
Object value)
BackendServiceCdnPolicyNegativeCachingPolicy
setCode(Integer code)
The HTTP status code to define a TTL against.
BackendServiceCdnPolicyNegativeCachingPolicy
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
-
BackendServiceCdnPolicyNegativeCachingPolicy
public BackendServiceCdnPolicyNegativeCachingPolicy()
-
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 BackendServiceCdnPolicyNegativeCachingPolicy 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 BackendServiceCdnPolicyNegativeCachingPolicy 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 BackendServiceCdnPolicyNegativeCachingPolicy set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public BackendServiceCdnPolicyNegativeCachingPolicy clone()
- Overrides:
clone in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy