public interface CachePolicyNegativeCachingPolicyOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getCode()
public abstract int 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 can be specified as values, and you cannot specify a status code more than once.
optional int32 code = 3059181;
| Returns | |
|---|---|
| Type | Description |
int |
The code. |
getTtl()
public abstract Duration getTtl()The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from the cache before the defined TTL.
optional .google.cloud.compute.v1.Duration ttl = 115180;
| Returns | |
|---|---|
| Type | Description |
Duration |
The ttl. |
getTtlOrBuilder()
public abstract DurationOrBuilder getTtlOrBuilder()The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from the cache before the defined TTL.
optional .google.cloud.compute.v1.Duration ttl = 115180;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasCode()
public abstract boolean hasCode()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 can be specified as values, and you cannot specify a status code more than once.
optional int32 code = 3059181;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the code field is set. |
hasTtl()
public abstract boolean hasTtl()The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from the cache before the defined TTL.
optional .google.cloud.compute.v1.Duration ttl = 115180;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ttl field is set. |